Skip to main content

Epidemic network simulations in Python

Project description

https://badge.fury.io/py/epydemic.svg https://readthedocs.org/projects/pyepydemic/badge/?version=latest https://github.com/simoninireland/epydemic/actions/workflows/ci.yaml/badge.svg https://pepy.tech/badge/epydemic https://zenodo.org/badge/DOI/10.5281/zenodo.6875267.svg https://www.gnu.org/graphics/gplv3-88x31.png

Overview

epydemic is a Python library that implements simulations of epidemic (and other) processes on networks. Epidemic processes are very important in both network science and its applications. The most common application is to study the ways in which diseases progress in different network conditions, depending on their infectiousness and other properties, but epydemic can be used to study any network processes of interest.

epydemic provides simulation under synchronous and stochastic (Gillespie) dynamics, using the well-known networkx package to represent and manipulate networks. It supports a generic model for compartmented models of disease with several standard models provided and which can be extended to other, more complex, diseases. It also supports other network processes such as addition-deletion networks and pulse-coupled synchronisation, generators for several different ensembles of random networks, and a library for handling generating functions used in network analysis.

epydemic is built on top of the epyc experiment management library, allowing simulations to be conducted at scale on individual machines, multicore machines, and parallel computing clusters.

Installation

You can install epydemic directly from PyPi using pip:

pip install epydemic

The master distribution of epydemic is hosted on GitHub. To obtain a copy, just clone the repo:

git clone git@github.com:simoninireland/epydemic.git
cd epydemic
pip install .

Documentation

API documentation for epydemic is available on ReadTheDocs (please note the slightly different project name).

Author and license

Copyright (c) 2017-2024, Simon Dobson <simoninireland@gmail.com>

Licensed under the GNU General Public Licence v3.

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

epydemic-1.14.1.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

epydemic-1.14.1-py2.py3-none-any.whl (117.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file epydemic-1.14.1.tar.gz.

File metadata

  • Download URL: epydemic-1.14.1.tar.gz
  • Upload date:
  • Size: 103.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for epydemic-1.14.1.tar.gz
Algorithm Hash digest
SHA256 067f8b33f77059494c464fb25e45886444262a7f902b3719f663be3c05e64ba7
MD5 a63c994afa167b6ccde4a90e03fe2e13
BLAKE2b-256 970690036a9b7d4b4d29a28c6272b7909470dce4458c8b349e9404b7063e1f30

See more details on using hashes here.

File details

Details for the file epydemic-1.14.1-py2.py3-none-any.whl.

File metadata

  • Download URL: epydemic-1.14.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 117.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for epydemic-1.14.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0e9f1bf22a3cd36dec6971330605ad635432f4275b276df2de2562f4b1e678c8
MD5 843fbfd146855f07d49cacd4d250ea33
BLAKE2b-256 5c058ce2ec30313460eead36312c81676363dd09400530685895494d0600bbb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page