Skip to main content

versedb

The official Python SDK for the VerseDB comic book database API.

pip install versedb

Requires Python 3.11 or later.

Authentication

Create a personal access token from your VerseDB dashboard (Generate API token), then pass it to AuthenticatedClient:

from versedb import AuthenticatedClient

client = AuthenticatedClient(base_url="https://versedb.com", token="YOUR_TOKEN")

Usage

Every endpoint is a module under versedb.api, grouped by tag. Each module has four functions: sync and asyncio return the parsed body, and sync_detailed and asyncio_detailed return a Response that also carries the status code and headers.

from versedb.api.series import list_series, get_series_details

with client as client:
    page = list_series.sync(client=client, q="Saga")
    series = get_series_details.sync(client=client, series_id=123)

Async:

from versedb.api.issues import get_issue_details

async with client as client:
    issue = await get_issue_details.asyncio(client=client, issue_id=5432)

Error responses the API documents (401, 404, 422, 429 and so on) come back as typed models such as UnauthorizedError. Pass raise_on_unexpected_status=True to the client to raise versedb.errors.UnexpectedStatus on anything undocumented.

The full endpoint reference lives at versedb.com/api/docs.

Development

The versedb/ package is generated by openapi-python-client from the live User API spec. Don't edit it by hand; regenerate it instead:

./scripts/generate.sh
uv run pytest

scripts/prepare_spec.py patches a few spec shapes the generator can't parse, and templates/ overrides one generator template. Both explain why in their own files. A nightly GitHub Action runs the same script and opens a PR when the spec changes.

Releasing

  1. Bump version in pyproject.toml and merge it to main.
  2. Publish a GitHub release tagged v<version> (for example v0.1.0).

The Publish to PyPI workflow checks the tag against pyproject.toml, runs the tests, builds, and uploads to PyPI through trusted publishing.

License

MIT

Release files for versedb 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for versedb 0.1.0
File Size Uploaded
versedb-0.1.0.tar.gz 154.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for versedb 0.1.0
File Interpreter ABI Platform
versedb-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 768.5 kB

Release files / versedb-0.1.0.tar.gz

Download URL versedb-0.1.0.tar.gz
Size 154.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4f75cd641bb084d8053049e84cfa73fb892bae71b2aa1e6cd1ceaabcf4ac9344
BLAKE2b-256 checksum
How to use checksums
09a33b90b42873d58cad7e9efb5ef378c5b9ae8027913a058fb54ec50f3e5889
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release files / versedb-0.1.0-py3-none-any.whl

Download URL versedb-0.1.0-py3-none-any.whl
Size 614.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11deed80069ca3f01df9ed4d38754a7bebe956408431997ffa48b5378e8c60fd
BLAKE2b-256 checksum
How to use checksums
d82399c1987a29a69aee8fd45ad4c7211473b45f9ce283018157a512797913d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page