Skip to main content

toggly-django

Initial context for remote variants

Requires toggly 0.7.0 and toggly-django 0.3.0 (release pending; these APIs are not in the currently published packages).

# settings.py: application-wide startup defaults, not incoming request values.
TOGGLY = {
    "APP_KEY": "your-app-key",
    "ENABLE_VARIANTS": True,
    "IDENTITY": "user-123",           # Stable variants identity.
    "VARIANT_GROUPS": ["beta"],        # Targeting membership.
    "VARIANT_CLAIMS": {"plan": "pro"}, # String rule attributes.
}
# Programmatic configure_toggly also accepts identity, variant_groups, variant_claims.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

toggly_django-0.3.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

toggly_django-0.3.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file toggly_django-0.3.0.tar.gz.

File metadata

  • Download URL: toggly_django-0.3.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for toggly_django-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9d2d0293590b1a4936b5ce6769ee11e402bda51e29c8b202ffe9e1fcb095b9b2
MD5 19379eb5fe07328c7ecb882a878a5895
BLAKE2b-256 4e1f095cc5ed6685eb9fe95d267542e89bc292dcf9105824013a586fe2b2f07d

See more details on using hashes here.

Provenance

The following attestation bundles were made for toggly_django-0.3.0.tar.gz:

Publisher: sdk-python-release.yml on ops-ai/Toggly.FeatureManagement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file toggly_django-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: toggly_django-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for toggly_django-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2d9de1d34188d59b366b7326582873efc2aa25c1f585b5ef28ec4bf106b6f4
MD5 7d4a64579dfd594f161ab559f776a2af
BLAKE2b-256 fa6595f9a19eb6f24915151b40ced7548aba57ac3c2181c823ab52104cd28e7a

See more details on using hashes here.

Provenance

The following attestation bundles were made for toggly_django-0.3.0-py3-none-any.whl:

Publisher: sdk-python-release.yml on ops-ai/Toggly.FeatureManagement

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

0.0.1

2 files

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