Skip to main content

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 : 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)

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.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

influenzanet.api-1.3-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file influenzanet_api-1.3.tar.gz.

File metadata

  • Download URL: influenzanet_api-1.3.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for influenzanet_api-1.3.tar.gz
Algorithm Hash digest
SHA256 e3363ee031d3d8a85f8a513c64ebc7a851a4f98cd4b4e8abfd8fc27a4a09fb3a
MD5 14a63f689821aa3b645d0b9230e9516b
BLAKE2b-256 8a9a1e7a9323c74f1b1c6e09e5d4349b97653f0e6f6f16baf7f5eae47d226d53

See more details on using hashes here.

File details

Details for the file influenzanet.api-1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for influenzanet.api-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62712e8d90eaee989f9dfc22f2a5c4a6928af3ff559f809b61e14babfe017aad
MD5 d36d3223cf709512e0da65349eb8e728
BLAKE2b-256 63877924a73a8766f9d258ca14389d202bf0d2b995e331788fe92541ad2af354

See more details on using hashes here.

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