Influenzanet Survey Management
influenzanet.surveys is a python library to work with influenzanet surveys, mainly validation and transformation
The purpose of this library is to work with existing surveys in json, it's not designed to create new survey json from scratch (for this use the typescript libraries).
Installation
pip install influenzanet.surveys
# To use validation
pip install influenzanet.surveys[validator]
Features
- Parse json Survey definition into python object
- Parse standards survey definition, standards define the common questions/responses encoding for Influenzanet
- Export survey in several format : html document, readable yaml (see formats)
- Check survey internal consistency (reference for keys) and compliance to a standard definition
Format
- html : view of a survey definition in a static html document (this is survey definition for humans)
- readable : a simplified view of a survey to see survey structure. Expression are transformed into function call-like text to be more readable.
Each format accepts a "context" for the transformation, allowing, for example, to select the languages to be used in the output.
An helper is provided to build html for all json in a directory :
from influenzanet.surveys.html import build_html_from_dir
## Accept glob patterns and transform all surveys json into html (if a json is not a survey it will be ignored)
## Creates an html file in the same directory for each json, replacing existing html if already exists
build_html_from_dir("output/**/surveys", languages=["en","fr"])
Validation and Survey check
TBD
Metadata
Release files for influenzanet.surveys 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| influenzanet_surveys-1.2.0.tar.gz | 43.9 kB | Without provenance | Details for influenzanet_surveys-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| influenzanet_surveys-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for influenzanet_surveys-1.2.0-py3-none-any.whl |
Total release size: 97.8 kB
Release files / influenzanet_surveys-1.2.0.tar.gz
| Download URL | influenzanet_surveys-1.2.0.tar.gz |
|---|---|
| Size | 43.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd1913afa82271ef842550f029f2740a74f8aadce27bc0447246d36921252f2f
|
|
BLAKE2b-256 checksum How to use checksums |
5ed4a18feecd4ab61979d70b3fb735346b01908ac6954f1ac9e0a3137a44b068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Release files / influenzanet_surveys-1.2.0-py3-none-any.whl
| Download URL | influenzanet_surveys-1.2.0-py3-none-any.whl |
|---|---|
| Size | 53.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
401f37e0a9df892b81fa18c1756c6ebddf5d0651d4041a3207a4f0edacdb6106
|
|
BLAKE2b-256 checksum How to use checksums |
5cbef5aa9b8f04f3ddb6f8b30c2d1b4e6dac0f59d41c03cf91845e17d8b90f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.12
|
Security for influenzanet.surveys 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.