🚀 Performance: Built with modern async/await support
🔧 Dependencies: Minimal, modern stack
📈 Stability: Production-ready
📦 Installation
Production Use
# Latest stable version
pip install pyatlan
# Specific version
pip install pyatlan==7.1.3
# With uv (faster) - install uv first: curl -LsSf https://astral.sh/uv/install.sh | sh
uv add pyatlan
Development Setup
# Clone the repository
git clone https://github.com/atlanhq/atlan-python.git
cd atlan-python
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install with development dependencies
uv sync --group dev
# Run quality checks
uv run ./qa-checks
# Run tests
uv run pytest tests/unit
Dependency Groups
This project uses uv dependency groups for better dependency management:
Core dependencies: Always installed (uv sync)
Development dependencies: Testing, linting, formatting (uv sync --group dev)
# Run all unit tests
uv run pytest tests/unit
# Run with coverage
uv run pytest tests/unit --cov=pyatlan --cov-report=html
Integration Tests
# Set up environment
cp .env.example .env
# Edit .env with your Atlan credentials
# Run integration tests
uv run pytest tests/integration
Quality Assurance
# Run all QA checks (formatting, linting, type checking)
uv run ./qa-checks
# Individual checks
uv run ruff format . # Code formatting
uv run ruff check . # Linting
uv run mypy . # Type checking
🤝 Contributing
We welcome contributions! Here's how to get started:
Development Setup
# Fork and clone the repository
git clone https://github.com/your-username/atlan-python.git
cd atlan-python
# Install uv (if not already installed)
curl -LsSf https://astral.sh/uv/install.sh | sh
# Install development dependencies
uv sync --group dev
# Install pre-commit hooks
uv run pre-commit install
Making Changes
# Create a feature branch
git checkout -b feature/amazing-feature
# Make your changes and test
uv run ./formatter
uv run ./qa-checks
uv run pytest tests/unit
# Commit with conventional commits
git commit -m "feat: add amazing feature"
# Push and create a pull request
git push origin feature/amazing-feature
# Generate models automatically
uv run ./generator
# Force re-download typedefs (bypass cache)
uv run ./generator --override
# Use custom typedefs file
uv run ./generator ./my-typedefs.json
# Both flags can be combined
uv run ./generator --override ./my-typedefs.json
This will:
📥 Retrieve typedefs from your Atlan instance
🏗️ Generate asset models, enums, and structures
🎨 Format code automatically
⚡ Support incremental updates
App Builders Generator
Generate the app builders in pyatlan.model.apps (one per connector
app) from your tenant's UI configmaps. Each app gets a typed *Inputs model and a
fluent, UI-equivalent builder (Credential → Connection → Metadata), plus a matching
unit-test module under tests/unit/apps/.
# Needs a tenant with the apps installed
export ATLAN_BASE_URL=https://<your-tenant-host>
export ATLAN_API_KEY=<your-api-key>
# Regenerate all app builders + their tests
uv run generate-apps
This will:
🔎 Discover installed apps (live discovery ∪ the manifest in generate_apps.py)
🧩 Read each app's UI configmaps for fields, labels, enums, and the credential form
🏗️ Emit a {App}Inputs model + {App} builder per app (hand-written builders are never overwritten)
🧪 Generate a per-app config-assertion test module
🎨 Format code automatically
To cover an app that isn't currently running on the tenant, add its (app_id, entrypoint)
to MANIFEST in pyatlan/generator/generate_apps.py.
🏗️ pyatlan_v9 Model Generation (msgspec)
The pyatlan_v9 package uses msgspecStruct-based models generated from Pkl type definitions in the atlanhq/models repo.
Using Claude Code
The recommended way to regenerate models is via the Claude Code skill:
# From the atlan-python repo root:
/generate-v9-models # Generate from models@master
/generate-v9-models <branch> # Generate from a specific models branch
/generate-v9-models test # Generate and run tests
/generate-v9-models <branch> test
The skill will:
Clone/update atlanhq/models at ../models
Run the Pkl code generator with SDK mode (pkl eval typedefs/*.pkl -m . -p sdk=true)
Selectively sync generated files to pyatlan_v9/model/assets/ (excluding hand-written types)
Apply post-sync patches (e.g., set[str] fields in asset.py)
Optionally run tests_v9/unit/ tests
Overlay Files
Custom methods (creator(), updater(), policy helpers, etc.) live in pyatlan_v9/model/assets/_overlays/. These are Python files read by the Pkl renderer and injected into generated classes. Each overlay file uses import directives:
# IMPORT: — external imports (not remapped)
# INTERNAL_IMPORT: — internal imports (remapped to pyatlan_v9.*)
# STDLIB_IMPORT: — standard library imports
Hand-written Types
Some types are not yet fully generated and are maintained by hand: