Skip to main content

toggly-fastapi

Feature variants

Requires toggly 1.0.0+. Feature variants are assigned locally from the same cached definitions used for is_enabled — there is no separate "variants mode" to enable.

from toggly_fastapi import configure_toggly, get_toggly_client

configure_toggly(
    app_key="your-app-key",
    identity="user-123",  # Default identity used when a request/user_id isn't supplied.
)  # Call during application startup.

client = get_toggly_client()
variant = client.get_variant("checkout-flow", user_id="user-123")
if variant is not None and variant.enabled and variant.name == "B":
    ...

See the core toggly package README for the full get_variant / get_variant_value API and the Microsoft.FeatureManagement-parity assignment rules.

Metadata

Release files for toggly-fastapi 0.4.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 toggly-fastapi 0.4.0
File Size Uploaded Provenance Actions
toggly_fastapi-0.4.0.tar.gz 13.7 kB With provenance Details for toggly_fastapi-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toggly-fastapi 0.4.0
File Interpreter ABI Platform Actions
toggly_fastapi-0.4.0-py3-none-any.whl Python 3 none any Details for toggly_fastapi-0.4.0-py3-none-any.whl

Total release size: 25.0 kB

Release files / toggly_fastapi-0.4.0.tar.gz

Download URL toggly_fastapi-0.4.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
db29a5819aef436c8fcc09bb3ff8ea5aa5b6e9febebef9fd9c3cc3e1c85cc49c
BLAKE2b-256 checksum
How to use checksums
6b642d9c3ab7c9973090e1c68f79498525caf5ccfa1b6efd028da0408cd77907
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 23, 2026.

Transparency log

Release files / toggly_fastapi-0.4.0-py3-none-any.whl

Download URL toggly_fastapi-0.4.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c54b32bb428c677d51006e3dd77235d4f0cde1a82818f9fb118d7f2c680249f8
BLAKE2b-256 checksum
How to use checksums
74add65d7047d7265d2651ecbf049de0c649a1af0d62c72ca2cb939ff7f0c220
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 23, 2026.

Transparency log

Security for toggly-fastapi 0.4.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 toggly_fastapi-0.4.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 Sep 23, 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.

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