PyPSA Logo PyPSA
New PyPSA 1.0 is here! 🎉

Welcome to the
PyPSA Community!

PyPSA stands for Python for Power System Analysis.
Free. Open-Source. Batteries included.

pypsa-demo python example.py
import pypsa

# Create a new network
n = pypsa.Network()

# Add components
n.add("Bus""mybus")
n.add("Load""myload", bus="mybus", p_set=100)
n.add("Generator""mygen", bus="mybus", p_nom=100, marginal_cost=20)

# Optimize the network
n.optimize()

# Get statistics
n.statistics()
n.statistics.energy_balance()

# Plot results
n.plot()
n.explore()

# Start your journey here ...

Features

PyPSA Framework

An open-source Python framework for optimising modern power systems with conventional generators, renewable energy, storage, and multi-sector coupling - designed for researchers and planners.

Ecosystem

Framework and Tools

PyPSA and its complementary tools for power system modeling

Contributors

Community

The people who power PyPSA

Ready to join our Community?
Connect with other PyPSA users, developers, and researchers. Get help, share ideas, and stay updated on the latest developments.

References

Related Research

Numerous research publications are built on the PyPSA environment. Here we highlight some of them. For an extended list, have a look at the up-to-date Google Scholar query.

Page 1 of 167

Last updated: Sep 30, 2025

FAQ

Frequently Asked Questions

Still have questions? Check out the full FAQ