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", "electricity")
network.add("Bus", "hydrogen")
network.add("Generator", "wind", bus = "electricity")
network.add("Generator", "solar", bus = "electricity")
network.add("Load", "transport", bus = "electricity")
network.add("Load", "industry", bus = "hydrogen")
network.add("Store", "battery", bus = "electricity")
network.add("StorageUnit", "hydro", bus = "electricity")
network.add("Link", "electrolysis", bus0 = "electricity", bus1 = "hydrogen")

... 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.1.1.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

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

pypsatopo-1.1.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pypsatopo-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4b95a5a792170dd5522a91f3010e0f3a3159780e37a920e719a90bfbf9b36946
MD5 5bf875a9aa4db75bc97e46e5a57bc8d7
BLAKE2b-256 ea7c8390b67d96bd994a9e9a33272dfca6f0763f134f18b2cc74e0c54ba4efd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypsatopo-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36e13b5ac9a042308effcdde48d06bfcc7781098754d0bc505fd4e5209820ce1
MD5 71d7528e1b8c87fb17c550a91119e891
BLAKE2b-256 4b762f9521e46e112d53b5c2b283b6e815adc10eb643e3f30c779c035bfda53a

See more details on using hashes here.

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