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 at versedb.com/api/v1/openapi.json. 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

Metadata

Release files for versedb 1.0.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 1.0.0
File Size Uploaded Provenance Actions
versedb-1.0.0.tar.gz 395.8 kB With provenance Details for versedb-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.7 MB

Release files / versedb-1.0.0.tar.gz

Download URL versedb-1.0.0.tar.gz
Size 395.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7bc994b4e59a5ab081bb28e9c29de295913413d57003141fd4a11014339a44f3
BLAKE2b-256 checksum
How to use checksums
47a84348867f7ba1ba5101bbbd7964c3bc17cf23174f516ec462e48b96c70b31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

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

Download URL versedb-1.0.0-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
78238183a161862365008b1db1033ca0cd70cd01ec4193a38800ea4ff64e66af
BLAKE2b-256 checksum
How to use checksums
d79ac921bb5f0620dd1a00e07d4961ff78dc401b87b5a4df765bcfe5c0a55877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for versedb 1.0.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for versedb-1.0.0.tar.gz

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 Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

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