Skip to main content

Official Python client for the Nolgia API (generative media: image, audio, video)

Project description

nolgia — Python SDK

Official Python client for the Nolgia API, generated from api/openapi.yaml with openapi-python-client (httpx-based).

Not yet published to PyPI. Install from the repo for now.

Install

pip install "git+https://github.com/nolgiainc/nolgia-api.git#subdirectory=sdk/python"
# or, inside a checkout:
pip install -e sdk/python

Usage

Authenticate with a personal access token (nol_...) or a JWT:

from nolgia import AuthenticatedClient
from nolgia.api.auth import get_current_user
from nolgia.api.generate import generate_image
from nolgia.models import GenerateImageRequest, ImageModel

client = AuthenticatedClient(base_url="https://api.nolgia.ai/v1", token="nol_...")

me = get_current_user.sync(client=client)
print(me.email)

image = generate_image.sync(
    client=client,
    body=GenerateImageRequest(prompt="a red fox in the snow", model=ImageModel.IMAGEN_4),
)

Every endpoint module exposes sync, sync_detailed, asyncio, and asyncio_detailed variants. Point at staging with base_url="https://api.stg.nolgia.ai/v1".

Layout

  • nolgia/generated, do not edit; regenerate with make sdk-python from the repo root
  • pyproject.toml, README.md, config.yaml — hand-written

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

nolgia-0.1.0.tar.gz (41.5 kB view details)

Uploaded Source

Built Distribution

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

nolgia-0.1.0-py3-none-any.whl (134.5 kB view details)

Uploaded Python 3

File details

Details for the file nolgia-0.1.0.tar.gz.

File metadata

  • Download URL: nolgia-0.1.0.tar.gz
  • Upload date:
  • Size: 41.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nolgia-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d34746fa6e717f3a2f39ae002e6c50900fb9a80fca3de867e689cecfd256f224
MD5 c9a7c5c4c62b2ad4b7308f113797a90e
BLAKE2b-256 600cd5341523a68ab5ec55a90fb272da7f5b9e2b836b659b43fb67b2bbb7c22a

See more details on using hashes here.

Provenance

The following attestation bundles were made for nolgia-0.1.0.tar.gz:

Publisher: sdk-publish.yml on nolgiainc/nolgia-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nolgia-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nolgia-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 134.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nolgia-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fa9e9da943b3f116ab87519ab1624bfa36688d88e40ffee27e70ad65c25cd93
MD5 7c9949995642f1b480e84b9754553d80
BLAKE2b-256 9a7aa8a27a45935c9c44528ab28e1b170c5c8445be7ed22a99559f0c89bf54c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for nolgia-0.1.0-py3-none-any.whl:

Publisher: sdk-publish.yml on nolgiainc/nolgia-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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