Skip to main content

Split.io Admin API wrapper

Project description

Current version License PyPI - Python Version Downloads count

Split.io is feature experimentation platform and it has it’s public API, allowing it’s customers to interact with their resources.

splitio-requests package makes it easy to interact with Admin API by wrapping endpoint requests and providing simplified way to access response data and much more.


Quick example on how to use it

>>> admin_api = AdminAPI("ADMIN_API_TOKEN")
>>> resp = admin_api.splits.get_split("awesome_split", "wsid-123")
>>> resp.status_code
200
>>> resp.json()
{"name": "awesome_split","description": "Great feature",...
>>> resp.url
'https://api.split.io/internal/api/v2/splits/ws/wsid-123/'
>>> resp.headers
'{"X-RATE-LIMIT":"12"...'
>>> bool(resp) # When request was successful
True

What’s great about splitio-requests is that it handles Split.io Admin API throttling system with polling and retires.

Those functionalities are configured by default but changes can be made by the user if necessary.

Other key features

  • Model classes for resources

  • Schemas and serializers for payload data validation

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

splitio-requests-1.2.1.tar.gz (19.3 kB view hashes)

Uploaded Source

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