Skip to main content

pyatlassdk

Python SDKs for MongoDB Atlas APIs, generated automatically:

  • Atlas Administration API v2
  • Atlas App Services Admin API v3
  • Atlas Status API v2

src/pyatlassdk/admin/, src/pyatlassdk/app/, and src/pyatlassdk/status/ are generated by mongo-atlas-sdk. Do not edit them by hand.

Installation

pip install pyatlassdk

Packages and clients

API Package Client Authentication
Atlas Administration API v2 pyatlassdk.admin AtlasAdminClient Digest API keys or OAuth 2.0 service accounts
App Services Admin API v3 pyatlassdk.app AtlasAppAdminClient Bearer access token, or API-key login
Atlas Status API v2 pyatlassdk.status AtlasStatusClient None (public API)
from pyatlassdk import AtlasAdminClient, AtlasAppAdminClient, AtlasStatusClient

Atlas Administration API

from pyatlassdk import AtlasAdminClient
from pyatlassdk.admin.models.cluster_description20240805 import ClusterDescription20240805

# Digest authentication with Atlas API keys
with AtlasAdminClient(public_key="...", private_key="...") as client:
    cluster = client.clusters.create_group_cluster(
        group_id="...",
        body=ClusterDescription20240805(name="demo", cluster_type="REPLICASET"),
    )

# OAuth 2.0 client credentials with Atlas service account credentials
with AtlasAdminClient(client_id="...", client_secret="...") as client:
    cluster = client.clusters.create_group_cluster(
        group_id="...",
        body=ClusterDescription20240805(name="demo", cluster_type="REPLICASET"),
    )

App Services Admin API

from pyatlassdk import AtlasAppAdminClient

# Exchange API-key credentials for an access token
client = AtlasAppAdminClient.login(username="...", api_key="...")
apps = client.apps.admin_list_applications(group_id="...")

# Or reuse an existing access token
with AtlasAppAdminClient(access_token="...") as client:
    apps = client.apps.admin_list_applications(group_id="...")
  • base_url defaults to https://services.cloud.mongodb.com/api/admin/v3.0.
  • AtlasAppAdminClient.login posts to /auth/providers/mongodb-cloud/login and returns a client holding the access_token.

Atlas Status API

from pyatlassdk import AtlasStatusClient

with AtlasStatusClient() as client:
    summary = client.status.get_status_summary()
    print(summary.status.indicator)  # none | minor | major | critical

The Status API is public and requires no authentication. base_url defaults to https://status.mongodb.com/api/v2.

Shared behavior

  • Models are pydantic v2 with snake_case fields; serialization uses the original Atlas field names (aliases).
  • datetime / date values are serialized to ISO 8601 strings, so they can be passed directly in request bodies.
  • Enum values are case-insensitive for uppercase code enums ("secondary" becomes "SECONDARY").
  • Map-like fields (for example connectionStrings.awsPrivateLink) are typed as dict[str, str].
  • Admin methods send the versioned Accept header declared by each endpoint; App Services and Status methods use application/json.
  • AtlasClient is an alias for AtlasAdminClient for backwards compatibility.
  • Each generated package exports its own AtlasApiError.

Regenerating

Run these commands from the mongo-atlas-sdk repository:

make pipeline          # all APIs
# or one at a time:
make pipeline-admin    # Admin API
make pipeline-app      # App Services API
make pipeline-status   # Status API

# equivalent CLI commands
uv run mongo-atlas crawl --api admin && uv run mongo-atlas normalize --api admin && uv run mongo-atlas pygen --api admin
uv run mongo-atlas crawl --api app && uv run mongo-atlas normalize --api app && uv run mongo-atlas pygen --api app
uv run mongo-atlas crawl --api status && uv run mongo-atlas normalize --api status && uv run mongo-atlas pygen --api status

Normalized documents live in .data/api_docs*.json and .data/normalized_api_docs*.json.

Releasing

  1. Bump version in pyproject.toml.
  2. Commit, tag, and push:
git tag v0.1.0
git push origin main --tags
  1. Create a GitHub Release from the tag. Publishing it triggers .github/workflows/release.yml, which builds the sdist and wheel, validates the metadata, and publishes to PyPI.

The workflow uses PyPI trusted publishing (OIDC), so no API token is stored. Configure a trusted publisher at https://pypi.org/manage/account/publishing/ with:

  • owner: zhangyaoxing
  • repository: pyatlassdk
  • workflow: release.yml
  • environment: pypi

The release tag must be v plus the version in pyproject.toml; the workflow fails if they differ.

Development

uv sync
uv run pytest

Metadata

Release files for pyatlassdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyatlassdk 0.1.0
File Size Uploaded Provenance Actions
pyatlassdk-0.1.0.tar.gz 465.0 kB With provenance Details for pyatlassdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyatlassdk 0.1.0
File Interpreter ABI Platform Actions
pyatlassdk-0.1.0-py3-none-any.whl Python 3 none any Details for pyatlassdk-0.1.0-py3-none-any.whl

Total release size: 1.8 MB

Release files / pyatlassdk-0.1.0.tar.gz

Download URL pyatlassdk-0.1.0.tar.gz
Size 465.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1dae87de5907f8fbc857064f8d5e34d472c48e0e57311f8139dad585b1ecf85c
BLAKE2b-256 checksum
How to use checksums
4df0231d852f43c2d7cb035c933081e59666875fc0d7f4472b9501fe6c4d6c66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / pyatlassdk-0.1.0-py3-none-any.whl

Download URL pyatlassdk-0.1.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2a727cf050373c17184bcfa748e703b11ec05b75c96e75726f4595022cc87dc8
BLAKE2b-256 checksum
How to use checksums
3606177a27441404ff8a02bd5d24f877889c877f9515527317e6f132ae3fd7ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for pyatlassdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyatlassdk-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page