Skip to main content

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 : call get_participant_state_paginated with 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)

Metadata

Release files for influenzanet.api 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for influenzanet.api 1.3.1
File Size Uploaded
influenzanet_api-1.3.1.tar.gz 14.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for influenzanet.api 1.3.1
File Interpreter ABI Platform
influenzanet_api-1.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.5 kB

Release files / influenzanet_api-1.3.1.tar.gz

Download URL influenzanet_api-1.3.1.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b8947b926357d2b2cdd166a9b6310c8e513c69974c258efef3e0ecef6f304138
BLAKE2b-256 checksum
How to use checksums
b13258582cd8be10bc0d59a24e5b480c08098c7fc52c1d2cea6083989559e0d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release files / influenzanet_api-1.3.1-py3-none-any.whl

Download URL influenzanet_api-1.3.1-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a2136015d7d574c919979409efd3a8b894ee19bc676bed9089e12ed20472e94
BLAKE2b-256 checksum
How to use checksums
c73a92f367ae07d4c8d0c9523cc36ca944f734f7b50b521e08aeeaa9ede8cab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

1.3.1 This release

2 release files

1.3

2 release files

1.2

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.0

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page