toggly-flask
Initial context for remote variants
Requires toggly 0.7.0 and toggly-flask 0.3.0 (release pending; these APIs are not in the currently published packages).
from flask import Flask
from toggly_flask import Toggly
app = Flask(__name__)
app.config.update(
TOGGLY_APP_KEY="your-app-key",
TOGGLY_ENABLE_VARIANTS=True,
TOGGLY_IDENTITY="user-123", # Stable variants identity.
TOGGLY_VARIANT_GROUPS=["beta"], # Targeting membership.
TOGGLY_VARIANT_CLAIMS={"plan": "pro"}, # String rule attributes.
)
Toggly(app) # Context is present before the first request.
Startup context avoids an initial variants fetch with incomplete targeting followed by a second fetch. Use one variants client per fixed application-wide context; never change a shared server client's identity for each incoming request. These defaults do not replace request-local EvaluationContext for ordinary local boolean evaluation. Enabling remote variants retains the SDK's existing client-wide evaluated-flag behavior.
Groups are trimmed and sent as repeated parameters. Claims must be string-to-string mappings: empty names/values are omitted, whitespace is preserved, and the first 20 claim names in sorted order are sent. Omitted or empty collections send no targeting parameters. Caller collections are copied. Variants caches and conditional validators match the complete context; legacy unscoped variants caches require a fresh fetch. Global definition caches retain their existing behavior.
Metadata
Release files for toggly-flask 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| toggly_flask-0.3.1.tar.gz | 11.8 kB | With provenance | Details for toggly_flask-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toggly_flask-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for toggly_flask-0.3.1-py3-none-any.whl |
Total release size: 20.3 kB
Release files / toggly_flask-0.3.1.tar.gz
| Download URL | toggly_flask-0.3.1.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dbf1e8262ad334e19035c37c40268dcd802f0d7a323b176d3159225f04ee2c5
|
|
BLAKE2b-256 checksum How to use checksums |
a8295fdcc951f36c379c18021b0476d2472854499541ed1467db1c45ad70febf
|
| 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 15, 2026.
Transparency logRelease files / toggly_flask-0.3.1-py3-none-any.whl
| Download URL | toggly_flask-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bf669f1d73071bee4ea89b04fb8bf7cf750112beb6d7504be91eb3d303740d1
|
|
BLAKE2b-256 checksum How to use checksums |
4be4d3ed6448caa390ed6aa85b567c5a155290025e154bc2ad14116fc4cd7a7c
|
| 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 15, 2026.
Transparency logSecurity for toggly-flask 0.3.1
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.
Attestation for toggly_flask-0.3.1.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 15, 2026.
Transparency logA 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.