Skip to main content

RED Atlas External API

Project description

redatlas

Official Python SDK for the RED Atlas External API.

Install

pip install redatlas

Quickstart

from redatlas import RedAtlasClient

client = RedAtlasClient(
    base_url="https://your-api-base-url/external-api",
    api_key="ra_live_...",
)

health = client.health.get()
print(health.status)

Authentication

Use one of these auth options:

  • api_key for Data API and report access
  • access_token for authenticated account flows
  • refresh_token for refresh/logout flows
  • admin_key for changelog admin endpoints
from redatlas import RedAtlasClient
from redatlas.models.login_request import LoginRequest

client = RedAtlasClient(base_url="https://your-api-base-url/external-api")
session = client.auth.login(
    LoginRequest(email="you@example.com", password="secret")
)

print(session.data.access_token)

Examples

from redatlas import RedAtlasClient

client = RedAtlasClient(
    base_url="https://your-api-base-url/external-api",
    api_key="ra_live_...",
)

plans = client.plans.list()
market = client.data.market("col")
records = client.data.list("col", "listings", limit=3)

print(len(plans.data))
print(market.data.available_entities)
print(len(records.data))

Typed request models are available under redatlas.models.

Configuration

RedAtlasClient resolves the base URL in this order:

  1. explicit base_url
  2. RED_ATLAS_BASE_URL
  3. SDK default fallback

Passing base_url explicitly is recommended.

Notes

  • The public entrypoint is RedAtlasClient
  • The SDK also exposes generated typed request and response models
  • Integration tests in this repo verify that wrapper methods forward requests to the expected endpoints with the expected params

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redatlas-0.1.1.tar.gz (87.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

redatlas-0.1.1-py3-none-any.whl (219.2 kB view details)

Uploaded Python 3

File details

Details for the file redatlas-0.1.1.tar.gz.

File metadata

  • Download URL: redatlas-0.1.1.tar.gz
  • Upload date:
  • Size: 87.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for redatlas-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eb6c775f4239dd14864c29e4f4b17d48529e9732146775170a08b52f1ceb95a5
MD5 56651316ef13e9c35405e05b2de99cd1
BLAKE2b-256 536c61d42db9634ec742fd691848aac55c12d723087574ac0ae8ea7f792e93a7

See more details on using hashes here.

File details

Details for the file redatlas-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: redatlas-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 219.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for redatlas-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d84ee084e4b2dacde84251c8e3aba958bf8c76801b18d6a41548e3c3a2ff2b5
MD5 15723200581f81b413800067066113a5
BLAKE2b-256 59d79355c8cae85f28f73eadc0d008fcae4b201b40958e7ce5cd827453c5b2eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page