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:
Metadata
Release files for pypsatopo 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypsatopo-1.1.2.tar.gz | 17.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypsatopo-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 34.3 kB
Release files / pypsatopo-1.1.2.tar.gz
| Download URL | pypsatopo-1.1.2.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
189ad4e482664c8306697a7ac2945277cef7ddee6c524fd16a3806351efdc09e
|
|
BLAKE2b-256 checksum How to use checksums |
2a76430f336c0773a18e82a743ef36ade45b4a22d8ec4537244fae1e62b4ccc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pypsatopo-1.1.2-py3-none-any.whl
| Download URL | pypsatopo-1.1.2-py3-none-any.whl |
|---|---|
| Size | 17.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1df87a20b8993767a9ae440428cc4f9768ee4a875a6153dd0112f0985c8a696
|
|
BLAKE2b-256 checksum How to use checksums |
2aded1089fd1770e0a2e4c3288abdaef2cd84e32f543255eafeaa872ad43cc71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|