{"id":20617904,"url":"https://github.com/lucasmccabe/contagion","last_synced_at":"2026-04-16T21:34:45.977Z","repository":{"id":62564610,"uuid":"288802408","full_name":"lucasmccabe/contagion","owner":"lucasmccabe","description":"Python package for node immunization and network contagion simulation","archived":false,"fork":false,"pushed_at":"2022-01-13T01:37:17.000Z","size":795,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-15T18:16:52.694Z","etag":null,"topics":["disease-simulation","epidemics","graphs","mathematical-modelling","networks","simulation"],"latest_commit_sha":null,"homepage":"https://lucasmccabe.github.io/projects/contagion/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucasmccabe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-19T18:05:23.000Z","updated_at":"2025-12-02T20:33:01.000Z","dependencies_parsed_at":"2022-11-03T16:00:54.048Z","dependency_job_id":null,"html_url":"https://github.com/lucasmccabe/contagion","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lucasmccabe/contagion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmccabe%2Fcontagion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmccabe%2Fcontagion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmccabe%2Fcontagion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmccabe%2Fcontagion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucasmccabe","download_url":"https://codeload.github.com/lucasmccabe/contagion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucasmccabe%2Fcontagion/sbom","scorecard":{"id":602087,"data":{"date":"2025-08-11","repo":{"name":"github.com/lucasmccabe/contagion","commit":"39db3ad49cb47d2887728dcd8a3dd79ec6bf1a21"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T00:42:27.283Z","repository_id":62564610,"created_at":"2025-08-21T00:42:27.283Z","updated_at":"2025-08-21T00:42:27.283Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31905810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["disease-simulation","epidemics","graphs","mathematical-modelling","networks","simulation"],"created_at":"2024-11-16T12:06:27.894Z","updated_at":"2026-04-16T21:34:45.958Z","avatar_url":"https://github.com/lucasmccabe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/contagion.svg)](https://badge.fury.io/py/contagion)\n[![Documentation Status](https://readthedocs.org/projects/contagion/badge/?version=latest)](https://contagion.readthedocs.io/en/latest/?badge=latest)\n[![Build Status](https://travis-ci.com/lucasmccabe/contagion.svg?branch=master)](https://travis-ci.com/lucasmccabe/contagion)\n[![Downloads](https://pepy.tech/badge/contagion)](https://pepy.tech/project/contagion)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.3993314.svg)](https://doi.org/10.5281/zenodo.3993314)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n# contagion\n\n\u003e `contagion` is a Python package for node immunization and network contagion simulation.\n\n![Carbon Snippet](https://raw.githubusercontent.com/lucasmccabe/contagion/master/images/carbon_snippet.png)\n\n\nHere are a few things we love about `contagion`:\n\n- accessible interface for incorporating node immunization into contagion simulations\n- supports immunization with delayed effect and variable immunity durations\n- handles partial immunity and time-varying transmission rates\n- can track symptom onset\n- implements node testing policies (random, contact tracing)\n\n\n## Table of Contents\n* [Table of Contents](#table-of-contents)\n* [Getting Started](#getting-started)\n* [Documentation](#documentation)\n* [Example Usage](#example-usage)\n* [Contributing to contagion](#contributing-to-contagion)\n* [Contact](#contact)\n* [Citing contagion](#citing-contagion)\n* [Requirements](#requirements)\n* [License](#license)\n\n\n## Getting Started\nInstall `contagion` with [pip](https://pypi.org/project/contagion/):\n\n```bash\npip install contagion\n```\n\n\n## Documentation\nOfficial documentation - including a [tutorial](https://contagion.readthedocs.io/en/latest/tutorial.html), [API reference](https://contagion.readthedocs.io/en/latest/apiref.html), and a few worked [examples](https://contagion.readthedocs.io/en/latest/examples.html) - is available on [Read the Docs](https://contagion.readthedocs.io).\n\n\n## Requirements\nThis project was created with:\n- `matplotlib==3.3.3`\n- `numpy==1.19.3`\n- `networkx==2.5`\n- `scipy\u003e=1.5.0`\n- `seaborn==0.11.1`\n\n\n## Contributing to contagion\n\nWe'd love your help! If you'd like to make an addition or improvement, please submit a [pull request](https://github.com/lucasmccabe/contagion/pulls) 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](https://github.com/lucasmccabe/contagion/issues). For other questions or comments, feel free to [contact me](#contact) directly.\n\n\n## Contact\n- Lucas Hurley McCabe ([email](mailto:lucasmccabe@gwu.edu))\n\n\n## Citing contagion\nIf you find `contagion` useful in your work, please use the [Zenodo](https://zenodo.org/record/3993314) software citation:\n\n```bash\n@software{lucas_mccabe_2021_4456181,\n  author       = {Lucas McCabe},\n  title        = {lucasmccabe/contagion: v1.3.3},\n  month        = jan,\n  year         = 2021,\n  publisher    = {Zenodo},\n  version      = {v1.3.3},\n  doi          = {10.5281/zenodo.4456181},\n  url          = {https://doi.org/10.5281/zenodo.4456181}\n}\n```\n\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmccabe%2Fcontagion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasmccabe%2Fcontagion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasmccabe%2Fcontagion/lists"}