Skip to main content

PyPSATopo is a tool that allows generating the topographical representation of any arbitrary PyPSA-based network

Project description

PyPSATopo is a tool that allows generating the topographical representation of any arbitrary PyPSA-based network (thanks to the DOT language). Besides easing the understanding of a network by providing its graphical representation, the tool helps debug it given that broken links and missing buses are shown in (slightly) different shapes and colors. Technically speaking, PyPSATopo can be thought of as a reverse engineering tool for PyPSA-based networks.

To get a quick overview of the capabilities of PyPSATopo, simply launch it in a terminal as follows:

python pypsatopo.py

This will create a PyPSA-based network made of the following components:

# create dummy (PyPSA-based) network
network = pypsa.Network(name = "My Dummy Network")

# add some dummy components to dummy network
network.add("Bus", "oil")
network.add("Bus", "electricity")
network.add("Bus", "transport")
network.add("Generator", "oil", bus = "oil")
network.add("Generator", "solar", bus = "electricity")
network.add("Load", "vehicle", bus = "transport")
network.add("Store", "battery", bus = "electricity")
network.add("StorageUnit", "hydro", bus = "electricity")
network.add("Link", "ICEV", bus0 = "oil", bus1 = "transport")
network.add("Link", "BEV", bus0 = "electricity", bus1 = "transport")

... as well as generate the corresponding topographical representation of the network in the SVG format:

Topographical representation of network 'My Dummy Network'

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

pypsatopo-1.0.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

pypsatopo-1.0.3-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pypsatopo-1.0.3.tar.gz.

File metadata

  • Download URL: pypsatopo-1.0.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pypsatopo-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0a16e7238f10b3e370b708e0f2ccf03278d04b0c98b2e3e6cba2bd00d46e7dfc
MD5 0ddba9b2cf5ad62848bcb9b3c4859165
BLAKE2b-256 ddc7e23c4a450cf7635966549b4ff32dcf53c0508943c70eb039a4982a2d5d71

See more details on using hashes here.

File details

Details for the file pypsatopo-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pypsatopo-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pypsatopo-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 475895af62624c6b80839fe7485d0aed72c7213257602286a2aaca90c99f6fe3
MD5 7625a687c66a8cd3219f3a16501e6ab8
BLAKE2b-256 a5c93b4580eac0931950e648ff7b2ac0e6ff73b28a9e06f420853a8013a76be4

See more details on using hashes here.

Supported by

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