Skip to main content

Atlas client for Python

A client for the Atlas service registry. It needs only the standard library and covers the whole HTTP API: registration with idempotency keys, heartbeats, revision-checked updates, draining, routed lookups, metadata filters, history, resumable watch streams and admin calls. An asyncio variant is included.

pip install atlas-service-discovery
from atlas import AtlasClient, AtlasError

client = AtlasClient("https://atlas.example:8080", token="...", ca_file="ca.crt")

# Safe to retry: the same idempotency key always maps to the same record.
me = client.register("payments", "10.0.0.7:8443", ttl_seconds=15,
                     idempotency_key="payments-host-7", metadata={"team": "payments"})
client.heartbeat(me["id"])                 # call every ~5 s from your service

instance = client.lookup("payments", region="eu", metadata={"team": "payments"})
print(instance["address"])

try:
    client.update(me["id"], version="2.0.0", if_revision=me["revision"])
except AtlasError as err:
    if err.code == "precondition_failed":
        ...                                # someone changed it first; re-read and retry

for event in client.watch(kinds=["service"], service="payments"):   # reconnects and resumes
    print(event["type"], event["service"]["address"])
from atlas import AsyncAtlasClient

client = AsyncAtlasClient("https://atlas.example:8080", token="...")
instance = await client.lookup("payments")

For a private CA or mutual TLS, pass ca_file, client_cert and client_key. The import name is atlas. Licensed under Apache-2.0.

Metadata

Release files for atlas-service-discovery 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 atlas-service-discovery 0.1.0
File Size Uploaded Provenance Actions
atlas_service_discovery-0.1.0.tar.gz 12.4 kB With provenance Details for atlas_service_discovery-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.4 kB

Release files / atlas_service_discovery-0.1.0.tar.gz

Download URL atlas_service_discovery-0.1.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
312f11c9d213066e52a509cdd01505c31e6c81877a3d5fc2448e4a42a5392952
BLAKE2b-256 checksum
How to use checksums
317a956ba59e13100e3a03c7d80ea08da577506774eebe7f5b14ff94871ba910
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 Nov 18, 2026.

Transparency log

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

Download URL atlas_service_discovery-0.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5818f67d06ad164b0e07d34ed96250cb53eb204f2bf02e4b69462e5caa4edf77
BLAKE2b-256 checksum
How to use checksums
c160269c7f489cb4896bb1e93039ec17ca0013ab4d92c6af242c0512a0a46a02
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 Nov 18, 2026.

Transparency log

Security for atlas-service-discovery 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 atlas_service_discovery-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 Nov 18, 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