Skip to main content

Pop2net is a Python package designed to generate and manage relations between agents in agent-based models in a simple and flexible way.

Project description

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} }

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

pop2net-1.2.3.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pop2net-1.2.3-py3-none-any.whl (37.4 kB view details)

Uploaded Python 3

File details

Details for the file pop2net-1.2.3.tar.gz.

File metadata

  • Download URL: pop2net-1.2.3.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pop2net-1.2.3.tar.gz
Algorithm Hash digest
SHA256 9d7932548a7c454db79b8e2da06d7ee814855c21f25ee2ffe7edee3e75175e2e
MD5 ffdcc4a8f326e93bd4378f317478d19b
BLAKE2b-256 68820dd79961500a4770b14437011efb8684a7d99a2d2118c160e8a6f117be03

See more details on using hashes here.

Provenance

The following attestation bundles were made for pop2net-1.2.3.tar.gz:

Publisher: release.yml on mariuzka/pop2net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pop2net-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: pop2net-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 37.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pop2net-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 252630ef6ea673b509ce31b5f3241131b783a5b835662ba816e83148fee7f6ab
MD5 60d9eea11d397006c2c4f4773ee08c6e
BLAKE2b-256 2df654933880f5fd679893ceca90e0e6ed7fa2f9af339f7227fc0907c9e4896d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pop2net-1.2.3-py3-none-any.whl:

Publisher: release.yml on mariuzka/pop2net

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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