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_keyfor Data API and report accessaccess_tokenfor authenticated account flowsrefresh_tokenfor refresh/logout flowsadmin_keyfor 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:
- explicit
base_url RED_ATLAS_BASE_URL- 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
redatlas-0.1.1-py3-none-any.whl
(219.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb6c775f4239dd14864c29e4f4b17d48529e9732146775170a08b52f1ceb95a5
|
|
| MD5 |
56651316ef13e9c35405e05b2de99cd1
|
|
| BLAKE2b-256 |
536c61d42db9634ec742fd691848aac55c12d723087574ac0ae8ea7f792e93a7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d84ee084e4b2dacde84251c8e3aba958bf8c76801b18d6a41548e3c3a2ff2b5
|
|
| MD5 |
15723200581f81b413800067066113a5
|
|
| BLAKE2b-256 |
59d79355c8cae85f28f73eadc0d008fcae4b201b40958e7ce5cd827453c5b2eb
|