{"id":18729904,"url":"https://github.com/openflagr/pyflagr","last_synced_at":"2026-02-27T09:09:44.900Z","repository":{"id":71790827,"uuid":"393568911","full_name":"openflagr/pyflagr","owner":"openflagr","description":null,"archived":false,"fork":false,"pushed_at":"2021-08-07T03:38:28.000Z","size":131,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-07T14:36:53.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/openflagr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-07T03:38:22.000Z","updated_at":"2024-07-11T12:33:50.000Z","dependencies_parsed_at":"2023-02-27T17:31:04.031Z","dependency_job_id":null,"html_url":"https://github.com/openflagr/pyflagr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Fpyflagr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Fpyflagr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Fpyflagr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openflagr%2Fpyflagr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openflagr","download_url":"https://codeload.github.com/openflagr/pyflagr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231639035,"owners_count":18404265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T14:29:36.254Z","updated_at":"2026-02-27T09:09:39.878Z","avatar_url":"https://github.com/openflagr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flagr\nFlagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \\\"/api/v1\\\". \n\nThis Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:\n\n- API version: 1.1.10\n- Package version: 1.1.10\n- Build package: io.swagger.codegen.languages.PythonClientCodegen\n\n## Requirements.\n\nPython 2.7 and 3.4+\n\n## Installation \u0026 Usage\n### pip install\n\nIf the python package is hosted on Github, you can install directly from Github\n\n```sh\npip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git\n```\n(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)\n\nThen import the package:\n```python\nimport flagr \n```\n\n### Setuptools\n\nInstall via [Setuptools](http://pypi.python.org/pypi/setuptools).\n\n```sh\npython setup.py install --user\n```\n(or `sudo python setup.py install` to install the package for all users)\n\nThen import the package:\n```python\nimport flagr\n```\n\n## Getting Started\n\nPlease follow the [installation procedure](#installation--usage) and then run the following:\n\n```python\nfrom __future__ import print_function\nimport time\nimport flagr\nfrom flagr.rest import ApiException\nfrom pprint import pprint\n\n# create an instance of the API class\napi_instance = flagr.ConstraintApi(flagr.ApiClient(configuration))\nflag_id = 789 # int | numeric ID of the flag\nsegment_id = 789 # int | numeric ID of the segment\nbody = flagr.CreateConstraintRequest() # CreateConstraintRequest | create a constraint\n\ntry:\n    api_response = api_instance.create_constraint(flag_id, segment_id, body)\n    pprint(api_response)\nexcept ApiException as e:\n    print(\"Exception when calling ConstraintApi-\u003ecreate_constraint: %s\\n\" % e)\n\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *http://localhost/api/v1*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*ConstraintApi* | [**create_constraint**](docs/ConstraintApi.md#create_constraint) | **POST** /flags/{flagID}/segments/{segmentID}/constraints | \n*ConstraintApi* | [**delete_constraint**](docs/ConstraintApi.md#delete_constraint) | **DELETE** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | \n*ConstraintApi* | [**find_constraints**](docs/ConstraintApi.md#find_constraints) | **GET** /flags/{flagID}/segments/{segmentID}/constraints | \n*ConstraintApi* | [**put_constraint**](docs/ConstraintApi.md#put_constraint) | **PUT** /flags/{flagID}/segments/{segmentID}/constraints/{constraintID} | \n*DistributionApi* | [**find_distributions**](docs/DistributionApi.md#find_distributions) | **GET** /flags/{flagID}/segments/{segmentID}/distributions | \n*DistributionApi* | [**put_distributions**](docs/DistributionApi.md#put_distributions) | **PUT** /flags/{flagID}/segments/{segmentID}/distributions | \n*EvaluationApi* | [**post_evaluation**](docs/EvaluationApi.md#post_evaluation) | **POST** /evaluation | \n*EvaluationApi* | [**post_evaluation_batch**](docs/EvaluationApi.md#post_evaluation_batch) | **POST** /evaluation/batch | \n*ExportApi* | [**get_export_eval_cache_json**](docs/ExportApi.md#get_export_eval_cache_json) | **GET** /export/eval_cache/json | \n*ExportApi* | [**get_export_sqlite**](docs/ExportApi.md#get_export_sqlite) | **GET** /export/sqlite | \n*FlagApi* | [**create_flag**](docs/FlagApi.md#create_flag) | **POST** /flags | \n*FlagApi* | [**delete_flag**](docs/FlagApi.md#delete_flag) | **DELETE** /flags/{flagID} | \n*FlagApi* | [**find_flags**](docs/FlagApi.md#find_flags) | **GET** /flags | \n*FlagApi* | [**get_flag**](docs/FlagApi.md#get_flag) | **GET** /flags/{flagID} | \n*FlagApi* | [**get_flag_entity_types**](docs/FlagApi.md#get_flag_entity_types) | **GET** /flags/entity_types | \n*FlagApi* | [**get_flag_snapshots**](docs/FlagApi.md#get_flag_snapshots) | **GET** /flags/{flagID}/snapshots | \n*FlagApi* | [**put_flag**](docs/FlagApi.md#put_flag) | **PUT** /flags/{flagID} | \n*FlagApi* | [**set_flag_enabled**](docs/FlagApi.md#set_flag_enabled) | **PUT** /flags/{flagID}/enabled | \n*HealthApi* | [**get_health**](docs/HealthApi.md#get_health) | **GET** /health | \n*SegmentApi* | [**create_segment**](docs/SegmentApi.md#create_segment) | **POST** /flags/{flagID}/segments | \n*SegmentApi* | [**delete_segment**](docs/SegmentApi.md#delete_segment) | **DELETE** /flags/{flagID}/segments/{segmentID} | \n*SegmentApi* | [**find_segments**](docs/SegmentApi.md#find_segments) | **GET** /flags/{flagID}/segments | \n*SegmentApi* | [**put_segment**](docs/SegmentApi.md#put_segment) | **PUT** /flags/{flagID}/segments/{segmentID} | \n*SegmentApi* | [**put_segments_reorder**](docs/SegmentApi.md#put_segments_reorder) | **PUT** /flags/{flagID}/segments/reorder | \n*TagApi* | [**create_tag**](docs/TagApi.md#create_tag) | **POST** /flags/{flagID}/tags | \n*TagApi* | [**delete_tag**](docs/TagApi.md#delete_tag) | **DELETE** /flags/{flagID}/tags/{tagID} | \n*TagApi* | [**find_all_tags**](docs/TagApi.md#find_all_tags) | **GET** /tags | \n*TagApi* | [**find_tags**](docs/TagApi.md#find_tags) | **GET** /flags/{flagID}/tags | \n*VariantApi* | [**create_variant**](docs/VariantApi.md#create_variant) | **POST** /flags/{flagID}/variants | \n*VariantApi* | [**delete_variant**](docs/VariantApi.md#delete_variant) | **DELETE** /flags/{flagID}/variants/{variantID} | \n*VariantApi* | [**find_variants**](docs/VariantApi.md#find_variants) | **GET** /flags/{flagID}/variants | \n*VariantApi* | [**put_variant**](docs/VariantApi.md#put_variant) | **PUT** /flags/{flagID}/variants/{variantID} | \n\n\n## Documentation For Models\n\n - [Constraint](docs/Constraint.md)\n - [CreateConstraintRequest](docs/CreateConstraintRequest.md)\n - [CreateFlagRequest](docs/CreateFlagRequest.md)\n - [CreateSegmentRequest](docs/CreateSegmentRequest.md)\n - [CreateTagRequest](docs/CreateTagRequest.md)\n - [CreateVariantRequest](docs/CreateVariantRequest.md)\n - [Distribution](docs/Distribution.md)\n - [Error](docs/Error.md)\n - [EvalContext](docs/EvalContext.md)\n - [EvalDebugLog](docs/EvalDebugLog.md)\n - [EvalResult](docs/EvalResult.md)\n - [EvaluationBatchRequest](docs/EvaluationBatchRequest.md)\n - [EvaluationBatchResponse](docs/EvaluationBatchResponse.md)\n - [EvaluationEntity](docs/EvaluationEntity.md)\n - [Flag](docs/Flag.md)\n - [FlagSnapshot](docs/FlagSnapshot.md)\n - [Health](docs/Health.md)\n - [PutDistributionsRequest](docs/PutDistributionsRequest.md)\n - [PutFlagRequest](docs/PutFlagRequest.md)\n - [PutSegmentReorderRequest](docs/PutSegmentReorderRequest.md)\n - [PutSegmentRequest](docs/PutSegmentRequest.md)\n - [PutVariantRequest](docs/PutVariantRequest.md)\n - [Segment](docs/Segment.md)\n - [SegmentDebugLog](docs/SegmentDebugLog.md)\n - [SetFlagEnabledRequest](docs/SetFlagEnabledRequest.md)\n - [Tag](docs/Tag.md)\n - [Variant](docs/Variant.md)\n\n\n## Documentation For Authorization\n\n All endpoints do not require authorization.\n\n\n## Author\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflagr%2Fpyflagr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenflagr%2Fpyflagr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflagr%2Fpyflagr/lists"}