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.0

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.0
File Size Uploaded
pop2net-1.3.0.tar.gz 34.5 kB Details

Built distribution (wheel)

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

Total release size: 73.2 kB

Release files / pop2net-1.3.0.tar.gz

Download URL pop2net-1.3.0.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
737ced069141a5254e9f18a2ce55673356b3d5ce1d651bfe9b1d9c2a2d17ec99
BLAKE2b-256 checksum
How to use checksums
396c2a186e806db111509c48332bc304277edd94c3193fe93ba5f80a119cef12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

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

Download URL pop2net-1.3.0-py3-none-any.whl
Size 38.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2a0f361f55417f6c3b1bbad6d0cd88b20b8298f10e66e247b5dacafc4dcc910
BLAKE2b-256 checksum
How to use checksums
95c14c1bef7d1e55b10ff5ee7fc85d6c1a73a1b09ab96105a48ef7d937c7f165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 29, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

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