Generated Python SDK for the AuditHub API.
Project description
audithub-sdk
audithub-sdk is the generated Python SDK for the AuditHub API at https://audithub.dev.veridise.tools/api/v1.
This repository is intended to be the core dependency used by other Python repos that need a typed client for interacting with AuditHub.
Generation
The client code in this repository is generated from the live OpenAPI document:
https://audithub.dev.veridise.tools/api/v1/openapi.json
The repository contents are produced with OpenAPI Generator 7.20.0 using:
openapi-generator generate \
-i https://audithub.dev.veridise.tools/api/v1/openapi.json \
-g python \
-o . \
--additional-properties=packageName=audithub_sdk,projectName=audithub-sdk,packageVersion=0.1.0,hideGenerationTimestamp=true,library=httpx
Regenerating
When the AuditHub API schema changes, regenerate the SDK from the repository root with the command above.
Manual changes in this repo should stay limited to repository-specific files such as:
README.md- packaging metadata
- CI workflows
Generated source, models, docs, and tests should be replaced by regeneration rather than edited by hand.
Installation
From PyPI:
pip install audithub-sdk
From the repository:
pip install .
Usage
import audithub_sdk
configuration = audithub_sdk.Configuration(
host="https://audithub.dev.veridise.tools/api/v1"
)
async with audithub_sdk.ApiClient(configuration) as api_client:
api = audithub_sdk.AdminApi(api_client)
print(await api.about_admin_about_get())
For OIDC client-credentials authentication, use the handwritten extension package:
import audithub_sdk
from audithub_sdk_ext import AuthenticatedApiClient, OIDCClientCredentialsContext
configuration = audithub_sdk.Configuration(
host="https://audithub.dev.veridise.tools/api/v1"
)
auth_context = OIDCClientCredentialsContext(
oidc_configuration_url="https://issuer.example/.well-known/openid-configuration",
client_id="your-client-id",
client_secret="your-client-secret",
)
async with AuthenticatedApiClient(configuration, auth_context=auth_context) as api_client:
api = audithub_sdk.AdminApi(api_client)
print(await api.about_admin_about_get())
Testing
Install dependencies and run the generated test suite:
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test-requirements.txt
pytest --cov=audithub_sdk
Publishing
The repository includes pyproject.toml and setup.py so the package can be built and published to PyPI with standard Python packaging tools.
To build distributions locally:
python -m build
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 audithub_sdk-0.1.0.tar.gz.
File metadata
- Download URL: audithub_sdk-0.1.0.tar.gz
- Upload date:
- Size: 163.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8c082405d8d1f4a81bf3239f664341a91b7b14d66033bc75a99ec80581db757
|
|
| MD5 |
f5ef0be691d2aebf5f6a9d8bd7877aad
|
|
| BLAKE2b-256 |
22125ec47c6d4c922230f1088c40cce9d2fdee153920eff2f74079f70f36c00f
|
Provenance
The following attestation bundles were made for audithub_sdk-0.1.0.tar.gz:
Publisher:
publish.yml on Veridise/audithub-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
audithub_sdk-0.1.0.tar.gz -
Subject digest:
e8c082405d8d1f4a81bf3239f664341a91b7b14d66033bc75a99ec80581db757 - Sigstore transparency entry: 1202909761
- Sigstore integration time:
-
Permalink:
Veridise/audithub-sdk@91d43aa10229de287fbf229cbaa154d0108b6925 -
Branch / Tag:
refs/heads/publish-pypi - Owner: https://github.com/Veridise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@91d43aa10229de287fbf229cbaa154d0108b6925 -
Trigger Event:
push
-
Statement type:
File details
Details for the file audithub_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: audithub_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 356.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ece741468872ca109252ebc81fc75bab674792e8b23371b691fcc24e028f8d
|
|
| MD5 |
f3e9ca84ee7eed9308a05bbd67500156
|
|
| BLAKE2b-256 |
ac557d08e32cebbf98b476e17f47d61e67845a9d64166e206b4c1e19aee85c11
|
Provenance
The following attestation bundles were made for audithub_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on Veridise/audithub-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
audithub_sdk-0.1.0-py3-none-any.whl -
Subject digest:
06ece741468872ca109252ebc81fc75bab674792e8b23371b691fcc24e028f8d - Sigstore transparency entry: 1202909788
- Sigstore integration time:
-
Permalink:
Veridise/audithub-sdk@91d43aa10229de287fbf229cbaa154d0108b6925 -
Branch / Tag:
refs/heads/publish-pypi - Owner: https://github.com/Veridise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@91d43aa10229de287fbf229cbaa154d0108b6925 -
Trigger Event:
push
-
Statement type: