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 withmake sdk-pythonfrom the repo rootpyproject.toml,README.md,config.yaml— hand-written
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d34746fa6e717f3a2f39ae002e6c50900fb9a80fca3de867e689cecfd256f224
|
|
| MD5 |
c9a7c5c4c62b2ad4b7308f113797a90e
|
|
| BLAKE2b-256 |
600cd5341523a68ab5ec55a90fb272da7f5b9e2b836b659b43fb67b2bbb7c22a
|
Provenance
The following attestation bundles were made for nolgia-0.1.0.tar.gz:
Publisher:
sdk-publish.yml on nolgiainc/nolgia-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nolgia-0.1.0.tar.gz -
Subject digest:
d34746fa6e717f3a2f39ae002e6c50900fb9a80fca3de867e689cecfd256f224 - Sigstore transparency entry: 2112905797
- Sigstore integration time:
-
Permalink:
nolgiainc/nolgia-api@3685896eee43e6f45b1fbd2163987cb3ac34e47a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nolgiainc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@3685896eee43e6f45b1fbd2163987cb3ac34e47a -
Trigger Event:
workflow_dispatch
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa9e9da943b3f116ab87519ab1624bfa36688d88e40ffee27e70ad65c25cd93
|
|
| MD5 |
7c9949995642f1b480e84b9754553d80
|
|
| BLAKE2b-256 |
9a7aa8a27a45935c9c44528ab28e1b170c5c8445be7ed22a99559f0c89bf54c7
|
Provenance
The following attestation bundles were made for nolgia-0.1.0-py3-none-any.whl:
Publisher:
sdk-publish.yml on nolgiainc/nolgia-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nolgia-0.1.0-py3-none-any.whl -
Subject digest:
2fa9e9da943b3f116ab87519ab1624bfa36688d88e40ffee27e70ad65c25cd93 - Sigstore transparency entry: 2112905819
- Sigstore integration time:
-
Permalink:
nolgiainc/nolgia-api@3685896eee43e6f45b1fbd2163987cb3ac34e47a -
Branch / Tag:
refs/heads/main - Owner: https://github.com/nolgiainc
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
sdk-publish.yml@3685896eee43e6f45b1fbd2163987cb3ac34e47a -
Trigger Event:
workflow_dispatch
-
Statement type: