Skip to main content

keyvane (Python)

Python SDK for Keyvane: license keys, plans, feature access and usage limits for software you sell, kept in sync with Stripe. Standard library only; Python 3.9+.

pip install keyvane
from keyvane import Keyvane

kv = Keyvane()  # KEYVANE_URL and KEYVANE_SECRET_KEY from the environment

kv.customers.upsert(external_id=user.id, email=user.email)

access = kv.entitlements.get(customer=user.id)
if not access.can("export"):
    raise PermissionError("Export is on the Pro plan")

usage = kv.usage.record(customer=user.id, feature="ai_requests", idempotency_key=request_id)
if not usage["allowed"]:
    return {"error": usage["message"]}, 402

Full documentation: docs/python.md. MIT licensed.

Metadata

Release files for keyvane 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 keyvane 0.1.0
File Size Uploaded Provenance Actions
keyvane-0.1.0.tar.gz 9.2 kB With provenance Details for keyvane-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 16.5 kB

Release files / keyvane-0.1.0.tar.gz

Download URL keyvane-0.1.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fb6e7e5017dc48d6f3069a8d56c7615e64fbedc31e3dc49e59e2b33a93644756
BLAKE2b-256 checksum
How to use checksums
3535d1926fde9a5e1a3c898bdbc8082b121965c73a3adeef656d2267165dffb2
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 5, 2026.

Transparency log

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

Download URL keyvane-0.1.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70f34afa946fba4daa94f2948e5456329c3af641f60d841c6348d9aadf3ac56c
BLAKE2b-256 checksum
How to use checksums
a2fbd4a93dba97a03a529f49fe7afa818255f76aaaeee9d4d91f8776b65d98d8
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 5, 2026.

Transparency log

Security for keyvane 0.1.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 keyvane-0.1.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 5, 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

0.1.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