contagion
contagionis a Python package supporting node immunization and network contagion simulation
contagion is designed to be easy-to-use and full-featured, supporting computer scientists, public health researchers, network theorists, and more. Here are a few things we love about contagion:
- accessible interface for incorporating node immunization into contagion simulations
- supports immunization with delayed effect and variable immunity durations
- handles partial immunity and time-varying transmission rates
- can track symptom onset
- implements node testing policies (random, contact tracing)
Table of Contents
- Table of Contents
- Getting Started
- Documentation
- Example Usage
- Citing contagion
- Contributing to contagion
- Contact
- Requirements
- License
Getting Started
Install contagion with pip:
pip install contagion
Once contagion is installed, import NetworkX and contagion:
import networkx
from contagion import contagion
Documentation
Official documentation - including a tutorial, API reference, and a few worked examples - is available on Read the Docs.
Citing contagion
If you find contagion useful in your work, please use the Zenodo software citation.
Requirements
This project was created with:
matplotlib==3.3.3numpy==1.19.3networkx==2.5scipy>=1.5.0seaborn==0.11.1
Contributing to contagion
We'd love your help! If you'd like to make an addition or improvement, please submit a pull request consisting of an atomic commit and a brief message describing your contribution. If you find something wrong, please submit a bug report to the issue tracker. For other questions or comments, feel free to contact me directly.
Thanks for helping make contagion better!
Contact
- Lucas McCabe (lucas.mccabe@jhu.edu)
License
Metadata
Release files for contagion 1.3.3
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 | |
|---|---|---|---|---|
| contagion-1.3.3.tar.gz | 10.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| contagion-1.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.1 kB
Release files / contagion-1.3.3.tar.gz
| Download URL | contagion-1.3.3.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e0b496a5be926f8298832dab2d9e695f1b8640fc50f70f83ebdeb871ee771ed
|
|
BLAKE2b-256 checksum How to use checksums |
20dd629bf98824869fdfd226a8ade86c7761daf87d1c93afc828420833b6efe7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.3
|
Release files / contagion-1.3.3-py3-none-any.whl
| Download URL | contagion-1.3.3-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b0ba3aa85a4e46e4f1d74aa367da632ea0efe5228ace0796e09a09f6ea57f93
|
|
BLAKE2b-256 checksum How to use checksums |
1cf642e5d9f1dd10c28daea4adfb3b13c2f7351eaf069162aa3dcfecee2f5dd7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.3
|
Security for contagion 1.3.3
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.