Influenzanet API python library
Project description
Influenzanet API Library
influenzanet.api is a python library to work with influenzanet API
Installation
pip install influenzanet.api
Contents
ManagementAPIClient: is the main class handling connection and operations of the platform's Management API
Paginated Helpers
Some helpers class are provided to handle the pagination and iter over fetched results using for ... in
ParticpantStatePaginaged: callget_participant_state_paginatedwith pagi
from influenzanet.api import ManagementAPIClient, ParticpantStatePaginaged
client = ManagementAPIClient('https://admin.example.com', credentials)
pager = ParticpantStatePaginaged(client, page_size=5, study_key='my_study')
# By default, intial page is 1, but it's possible to change it using
# pager.page = 10 # start from page 10 (you must be sure of the page count...)
for result in pager:
print("Fetched page %d with %d" % (result.page, len(result)))
for item in result:
print(item)
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
influenzanet_api-1.3.1.tar.gz
(14.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file influenzanet_api-1.3.1.tar.gz.
File metadata
- Download URL: influenzanet_api-1.3.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8947b926357d2b2cdd166a9b6310c8e513c69974c258efef3e0ecef6f304138
|
|
| MD5 |
e9a038eb33b88d8f15d058af4345f033
|
|
| BLAKE2b-256 |
b13258582cd8be10bc0d59a24e5b480c08098c7fc52c1d2cea6083989559e0d8
|
File details
Details for the file influenzanet_api-1.3.1-py3-none-any.whl.
File metadata
- Download URL: influenzanet_api-1.3.1-py3-none-any.whl
- Upload date:
- Size: 14.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2136015d7d574c919979409efd3a8b894ee19bc676bed9089e12ed20472e94
|
|
| MD5 |
aae400ddbb2cf399a18b6f5c10562079
|
|
| BLAKE2b-256 |
c73a92f367ae07d4c8d0c9523cc36ca944f734f7b50b521e08aeeaa9ede8cab1
|