Tggl Python Client
Install
Intall the package using the package manager of your choice:
pip install tggl
Quick Start
from tggl import TgglClient
client = TgglClient('<Your API key>')
flags = client.eval_context({
'user_id': 123,
'email': 'foo@gmail.com',
'plan': 'PRO'
})
# On/Off flags
if (flags.is_active('feature_1')):
print('Feature 1 is active')
# A/B tests
if (flags.get('feature_2') == 'Variation A'):
print('Should display variation A to user')
# A/B test with default value
if (flags.get('feature_2', 'Variation A') == 'Variation B'):
print('Should display variation B to user')
Metadata
Release files for tggl 1.1.2
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 | |
|---|---|---|---|---|
| tggl-1.1.2.tar.gz | 1.9 kB | Without provenance | Details |
Release files / tggl-1.1.2.tar.gz
| Download URL | tggl-1.1.2.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
560c304e4ddec2d8530d559a4aec3434e831d7e140bc3d925a62f5934d94877d
|
|
BLAKE2b-256 checksum How to use checksums |
53a95442d3c68e148dd93c285b57579c3e5e532356798d9bd16527a45357b8d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for tggl 1.1.2
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.