Skip to main content

status Python 3.11+

Pop2net

Pop2net is a Python package that combines many steps related to network generation and management for agent-based modeling using a bipartite approach: In Pop2net, relations are represented as a graph of actors and locations. While actors are the active entities within an agent-based model, locations act as a contact layer, representing specific contexts through which actors connect. This makes it easy to generate and manage custom network structures in an agent-based model.

Pop2net can be used within custom modeling frameworks and also integrates seamlessly with the agent-based modeling frameworks AgentPy and Mesa.

Installation

You can install Pop2net using pip:

pip install pop2net

Python 3.14.1 has a bug which causes networkX to crash, see this issue. If you use Python 3.14, make sure to use any other path version that 3.14.1.

Documentation

Detailed documentation of all features and a collection of example analyses can be found here.

How to contribute

Contributions are welcome!
See this guide for details on how to get started.

Citation

If you are using Pop2net, please cite the corresponding software release paper in the Journal of Open Source Software:

BibTeX:

@article{Kaffai2026, doi = {10.21105/joss.07897}, url = {https://doi.org/10.21105/joss.07897}, year = {2026}, publisher = {The Open Journal}, volume = {11}, number = {117}, pages = {7897}, author = {Kaffai, Marius and Erhard, Lukas and Richter, Maximilian}, title = {Pop2net: Bipartite network generation for agent-based modeling}, journal = {Journal of Open Source Software} }

Metadata

Release files for pop2net 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pop2net 1.3.1
File Size Uploaded Provenance Actions
pop2net-1.3.1.tar.gz 34.6 kB With provenance Details for pop2net-1.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pop2net 1.3.1
File Interpreter ABI Platform Actions
pop2net-1.3.1-py3-none-any.whl Python 3 none any Details for pop2net-1.3.1-py3-none-any.whl

Total release size: 73.4 kB

Release files / pop2net-1.3.1.tar.gz

Download URL pop2net-1.3.1.tar.gz
Size 34.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f9d26e3a1871dff82882f36566038766772ca49236f9a66ee55644a5e1c025d8
BLAKE2b-256 checksum
How to use checksums
ee4e4aae2400f6f46c5c2ae9d07e9b98fca81a9e2bbb1aacf71b9b39d3ad6fd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / pop2net-1.3.1-py3-none-any.whl

Download URL pop2net-1.3.1-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
312c5a3d440937b9f0038ff61599b9503ba679924308bc0ea7d98a435eafd851
BLAKE2b-256 checksum
How to use checksums
4edc1dd555c9470a83a53d8f5c9a66b09c6c9d5a9bc97074534cce2d1b1847be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for pop2net 1.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pop2net-1.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page