Skip to main content

console-vylth

VYLTH Console SDK for Python — entitlements and billing enforcement for FastAPI services.

Install

pip install console-vylth

# With FastAPI support
pip install "console-vylth[fastapi]"

Usage

from console_vylth import ConsoleClient

console = ConsoleClient()

# Fetch entitlements
ent = await console.get_entitlements(user_id, access_token)

# Check ecosystem access
if not ent.has_ecosystem("alpha"):
    raise HTTPException(status_code=403, detail="No access")

# Record usage (fire and forget)
await console.record_usage(user_id, product="alpha", strategy="sol-arb", call_count=1)

FastAPI dependency

from console_vylth import ConsoleClient

console = ConsoleClient()

@app.get("/strategies")
async def list_strategies(
    ent = Depends(console.fastapi_dependency(ecosystem="alpha"))
):
    ...

Metadata

Release files for console-vylth 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 console-vylth 0.1.0
File Size Uploaded Provenance
console_vylth-0.1.0.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / console_vylth-0.1.0.tar.gz

Download URL console_vylth-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c4cf86eaf1e4107ba8041b0b90177da923b66950748721a7ef58b0c43b6dbb30
BLAKE2b-256 checksum
How to use checksums
2b188d12e77438691f45a994bbf9100058996ce308409b8a02184d021cf859be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

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

Download URL console_vylth-0.1.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
30851f3ef57cb4881e9abade0a189ce52cc9ca56df9cd8be0aea4173dc030610
BLAKE2b-256 checksum
How to use checksums
c20b90ad2a699d6a382ecdc38086477f2f5e46024284a1da78e1a18b8df7b1f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for console-vylth 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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 No 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