Split.io Admin API wrapper
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file splitio-requests-1.2.1.tar.gz
.
File metadata
- Download URL: splitio-requests-1.2.1.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c079aab1b1b7b0b3e71f82974a2a8589a442b773ad2a5d813099af9d05dde8cf |
|
MD5 | d8b9e58ae4a1f398478c47382e1987ee |
|
BLAKE2b-256 | 031355439254d12804b5a6f2e917fd1b87aae523f402faa60b6d1814dfd1dd12 |