{"id":31974688,"url":"https://github.com/splitio/wrapped-python","last_synced_at":"2025-10-14T20:20:25.286Z","repository":{"id":45365235,"uuid":"438289581","full_name":"splitio/wrapped-python","owner":"splitio","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-17T16:34:48.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-21T14:38:32.383Z","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/splitio.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}},"created_at":"2021-12-14T14:45:23.000Z","updated_at":"2021-12-16T21:23:54.000Z","dependencies_parsed_at":"2022-08-04T14:15:30.953Z","dependency_job_id":null,"html_url":"https://github.com/splitio/wrapped-python","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splitio/wrapped-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fwrapped-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fwrapped-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fwrapped-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fwrapped-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitio","download_url":"https://codeload.github.com/splitio/wrapped-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitio%2Fwrapped-python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021032,"owners_count":26086947,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-14T20:20:15.127Z","updated_at":"2025-10-14T20:20:25.281Z","avatar_url":"https://github.com/splitio.png","language":"Python","readme":"# wrapped-python\n\n## Compatibility\n\nThis SDK is compatible with **Python 3 and higher**.\n\n## Getting started\n\nBelow is a simple example that describes the instantiation and most basic usage of our SDK:\n\nRun `pip install splitio_client\u003e=9.1.1`\n\n```python\nfrom splitio_wrapper import get_factory\nfrom splitio.exceptions import TimeoutException\n\nfactory = get_factory('YOUR_SDK_TYPE_API_KEY', config=config)\ntry:\n    factory.block_until_ready(5) # wait up to 5 seconds\n    split = factory.client()\n    treatment = split.get_treatment('CUSTOMER_ID', 'SPLIT_NAME')\n    if treatment == \"on\": \n        # insert code here to show on treatment\n    elif treatment == \"off\":\n        # insert code here to show off treatment\n    else:\n        # insert your control treatment code here\nexcept TimeoutException:\n    # Now the user can choose whether to abort the whole execution, or just keep going\n    # without a ready client, which if configured properly, should become ready at some point.\n    pass\n```\n\nIf you want to bypass evaluations you can call the method `disable_evaluations()` and you can turn it back by calling `enabling_evaluations()`\n\n```python\nsplit.disable_evaluations()  # After disabling, everything will return Control\n\nsplit.enable_evaluations()  # After enabling, all the logic will be done again to evaluate features \n```\n\n```python\nfrom splitio_wrapper import get_factory\n\nfactory = get_factory('YOUR_SDK_TYPE_API_KEY', config=config)\nsplit = factory.client()\nsplit.disable_evaluations() if disable_redis else split.enable_evaluations()\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitio%2Fwrapped-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitio%2Fwrapped-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitio%2Fwrapped-python/lists"}