Skip to main content

Flipt Server SDK

Project description

Flipt Python

pypi

This directory contains the Python source code for the Flipt server-side client.

Documentation

API documentation is available at https://www.flipt.io/docs/reference/overview.

Installation

pip install flipt=={version}

Usage

In your Python code you can import this client and use it as so:

from flipt import FliptClient
from flipt.evaluation import BatchEvaluationRequest, EvaluationRequest

flipt_client = FliptClient()

variant_flag = flipt_client.evaluation.variant(
    EvaluationRequest(
        namespace_key="default",
        flag_key="flagll",
        entity_id="entity",
        context={"fizz": "buzz"},
    )
)

print(variant_flag)

There is a more detailed example in the examples directory.

For developers

After adding new code, please don't forget to add unit tests for new features. To format the code, check it with linters and run tests, use the make check command.

Please keep the Python PEP8 in mind while adding new code.

Project details


Download files

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

Source Distribution

flipt-1.4.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

flipt-1.4.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file flipt-1.4.0.tar.gz.

File metadata

  • Download URL: flipt-1.4.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.9 Linux/6.5.0-1017-azure

File hashes

Hashes for flipt-1.4.0.tar.gz
Algorithm Hash digest
SHA256 5c5ceff9d9f10ee97b46c90aa788b24f8427db62c340dcd80fab5fb49278c8e3
MD5 86f2a1f85fd290ec73e8bd8ce56687b6
BLAKE2b-256 1d23fb86635671806543259f0a6c9eab05c63974e032712cf056efbc6e97cb2e

See more details on using hashes here.

File details

Details for the file flipt-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: flipt-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.9 Linux/6.5.0-1017-azure

File hashes

Hashes for flipt-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 868abaf486afee906885db4d6501fb80e6b400fc29f4e788b04a241fa9a18775
MD5 b5b9eaa6d3573337760b729fff853a8a
BLAKE2b-256 8a654d1e1ae33b70e87ca7503660a9bc8d710d9fa77a7eccda59cb302ad915e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page