pydantic openapi v2 rest client for Atamya
  • Python 94.5%
  • PowerShell 3.1%
  • Shell 2.4%
Find a file
2026-07-23 11:23:35 +02:00
.vscode Project initialized 2026-07-23 08:19:33 +02:00
docs feat: Client docs 2026-07-23 11:23:35 +02:00
examples upt: DOX tree 2026-07-23 11:19:50 +02:00
src/atamya_client upt: DOX tree 2026-07-23 11:19:50 +02:00
tests upt: DOX tree 2026-07-23 11:19:50 +02:00
.gitignore initial creation 2026-07-23 09:09:45 +02:00
.pypirc.example initial creation 2026-07-23 09:09:45 +02:00
AGENTS.md upt: DOX tree 2026-07-23 11:19:50 +02:00
build_requirements.txt initial creation 2026-07-23 09:09:45 +02:00
build_wheel.ps1 initial creation 2026-07-23 09:09:45 +02:00
build_wheel.py initial creation 2026-07-23 09:09:45 +02:00
build_wheel.sh initial creation 2026-07-23 09:09:45 +02:00
LICENSE Initial commit 2026-07-21 06:03:54 +00:00
openapi.json Project initialized 2026-07-23 08:19:33 +02:00
pyproject.toml initial creation 2026-07-23 09:09:45 +02:00
README.md initial creation 2026-07-23 09:09:45 +02:00
requirements-dev.txt Project initialized 2026-07-23 08:19:33 +02:00
requirements.txt initial creation 2026-07-23 09:09:45 +02:00
upload_to_forgejo_pypi.ps1 initial creation 2026-07-23 09:09:45 +02:00
upload_to_forgejo_pypi.py initial creation 2026-07-23 09:09:45 +02:00
upload_to_forgejo_pypi.sh initial creation 2026-07-23 09:09:45 +02:00

atamya_client

Typed Python REST client for the Atamya Neo API (v2).

Generated from the OpenAPI 3.0.3 specification. Uses pydantic>=2.0 for models and requests for HTTP transport. MIT license.

Quick Start

from atamya_client import AtamyaClient

# Configure from environment variables:
#   ATAMYA_BASE_URL (default: https://hoerl.internal.atamya.cloud/api/v2)
#   ATAMYA_API_KEY   or ATAMYA_TOKEN
client = AtamyaClient()

# List domains
domains = client.get_domains()
for d in domains.content:
    print(d.id, d.name)

# Get a single domain
domain = client.get_domain_by_id("bikes")
print(domain.id)

# Don't forget to close
client.close()

# Or use as a context manager:
with AtamyaClient() as c:
    bo_page = c.get_business_objects("bikes")
    for bo in bo_page.content:
        print(bo.id)

Installation

pip install atamya-client

Development

# Install dev dependencies
pip install -r requirements-dev.txt

# Run tests
pytest --cov=atamya_client

# Type check
mypy src/atamya_client

# Format
black src/ tests/
ruff check src/ tests/

# Build wheel
python build_wheel.py

Regenerate

If the openapi.json specification changes, re-run the generator to keep models and client methods in sync.