Name | flipt JSON |
Version |
1.4.0
JSON |
| download |
home_page | None |
Summary | Flipt Server SDK |
upload_time | 2024-04-12 00:32:57 |
maintainer | None |
docs_url | None |
author | Flipt Devs |
requires_python | <4.0,>=3.11 |
license | MIT |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Flipt Python
[](https://pypi.org/project/flipt)
This directory contains the Python source code for the Flipt [server-side](https://www.flipt.io/docs/integration/server/rest) client.
## Documentation
API documentation is available at <https://www.flipt.io/docs/reference/overview>.
## Installation
```sh
pip install flipt=={version}
```
## Usage
In your Python code you can import this client and use it as so:
```python
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](./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](https://peps.python.org/pep-0008/) in mind while adding new code.
Raw data
{
"_id": null,
"home_page": null,
"name": "flipt",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.11",
"maintainer_email": null,
"keywords": null,
"author": "Flipt Devs",
"author_email": "dev@flipt.io",
"download_url": "https://files.pythonhosted.org/packages/1d/23/fb86635671806543259f0a6c9eab05c63974e032712cf056efbc6e97cb2e/flipt-1.4.0.tar.gz",
"platform": null,
"description": "# Flipt Python\n\n[](https://pypi.org/project/flipt)\n\n\nThis directory contains the Python source code for the Flipt [server-side](https://www.flipt.io/docs/integration/server/rest) client.\n\n## Documentation\n\nAPI documentation is available at <https://www.flipt.io/docs/reference/overview>.\n\n## Installation\n\n```sh\npip install flipt=={version}\n```\n\n## Usage\n\nIn your Python code you can import this client and use it as so:\n\n```python\nfrom flipt import FliptClient\nfrom flipt.evaluation import BatchEvaluationRequest, EvaluationRequest\n\nflipt_client = FliptClient()\n\nvariant_flag = flipt_client.evaluation.variant(\n EvaluationRequest(\n namespace_key=\"default\",\n flag_key=\"flagll\",\n entity_id=\"entity\",\n context={\"fizz\": \"buzz\"},\n )\n)\n\nprint(variant_flag)\n```\n\nThere is a more detailed example in the [examples](./examples) directory.\n\n## For developers\n\nAfter adding new code, please don't forget to add unit tests for new features.\nTo format the code, check it with linters and run tests, use the `make check` command.\n\nPlease keep the Python [PEP8](https://peps.python.org/pep-0008/) in mind while adding new code.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Flipt Server SDK",
"version": "1.4.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8a654d1e1ae33b70e87ca7503660a9bc8d710d9fa77a7eccda59cb302ad915e6",
"md5": "b5b9eaa6d3573337760b729fff853a8a",
"sha256": "868abaf486afee906885db4d6501fb80e6b400fc29f4e788b04a241fa9a18775"
},
"downloads": -1,
"filename": "flipt-1.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b5b9eaa6d3573337760b729fff853a8a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.11",
"size": 9151,
"upload_time": "2024-04-12T00:32:55",
"upload_time_iso_8601": "2024-04-12T00:32:55.462478Z",
"url": "https://files.pythonhosted.org/packages/8a/65/4d1e1ae33b70e87ca7503660a9bc8d710d9fa77a7eccda59cb302ad915e6/flipt-1.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1d23fb86635671806543259f0a6c9eab05c63974e032712cf056efbc6e97cb2e",
"md5": "86f2a1f85fd290ec73e8bd8ce56687b6",
"sha256": "5c5ceff9d9f10ee97b46c90aa788b24f8427db62c340dcd80fab5fb49278c8e3"
},
"downloads": -1,
"filename": "flipt-1.4.0.tar.gz",
"has_sig": false,
"md5_digest": "86f2a1f85fd290ec73e8bd8ce56687b6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.11",
"size": 5303,
"upload_time": "2024-04-12T00:32:57",
"upload_time_iso_8601": "2024-04-12T00:32:57.549730Z",
"url": "https://files.pythonhosted.org/packages/1d/23/fb86635671806543259f0a6c9eab05c63974e032712cf056efbc6e97cb2e/flipt-1.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-12 00:32:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "flipt"
}