Skip to main content

toggly-flask

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 flask import Flask
from toggly_flask import Toggly, get_client

app = Flask(__name__)
app.config.update(
    TOGGLY_APP_KEY="your-app-key",
    TOGGLY_IDENTITY="user-123",  # Default identity used when a request/user_id isn't supplied.
)
Toggly(app)

client = get_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-flask 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-flask 0.4.0
File Size Uploaded Provenance Actions
toggly_flask-0.4.0.tar.gz 10.8 kB With provenance Details for toggly_flask-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 19.0 kB

Release files / toggly_flask-0.4.0.tar.gz

Download URL toggly_flask-0.4.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a7949535b7e127ab4fadfcf8d92afc1a984e915a1d5b721f327f197b1a1142df
BLAKE2b-256 checksum
How to use checksums
68a84a0e100537b43a59540c422ba9b5babcc13abab11328c99f5b4ffa6eef78
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_flask-0.4.0-py3-none-any.whl

Download URL toggly_flask-0.4.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
97f708fef285c33471f908aa5fcb8d987cfaeee392d7049412fcd88633f1bc90
BLAKE2b-256 checksum
How to use checksums
0d8d3cec23eafe87091444b1c2e758659f6c740aa22c6c31800f4564afd363d8
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-flask 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_flask-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