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.4.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.0.4-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pypsatopo-1.0.4.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.9.13

File hashes

Hashes for pypsatopo-1.0.4.tar.gz
Algorithm Hash digest
SHA256 7bde79211c101f9246c4bca508f8e2be169c07454aad854d3cdeae0f360fdd3e
MD5 d987de0b6ca1a2365fa157523019d17b
BLAKE2b-256 5dc43826833bec7b69cbe5e7b4c236988eb81eaed3fb96458b13665d15ddf47c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pypsatopo-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.28.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/3.9.13

File hashes

Hashes for pypsatopo-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6fa3fba963418af44c6d45afdfe76a17948d95aa73cbe7e394052dbd6be80513
MD5 3aab7f589da60c084f317b414948aca8
BLAKE2b-256 05f835a0376cefbb7125f0a3ee67ddfe71617b350e68adba4fc75ff06bf082b7

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