Welcome to the PyPSA-Zambia documentation¶
Open Tools to Improve Grid Planning and Operation in Africa¶
Zambia’s national electricity utility ZESCO and the non-profit Open Energy Transition are developing an open-source energy modelling tool aimed at improving data-driven power system planning in Zambia. The project will support the national grid operators and utilities in adopting transparent, climate-resilient planning approaches while strengthening local technical capacity.
Open Energy Transition are developing this customized energy system model based on PyPSA (Python for Power System Analysis), tailored to the Zambian energy system and designed with scaling potential for other African utilities. Tool development will be guided by local insights to ensure the resulting solutions are practical, accessible, and trusted by those who rely on them. Other partners include Association of Power Utilities in Africa (APUA), the Zambian Ministry of Energy, and academic partners.
The collaboration will run for 36 months. Initial concept development began in Q4 2025 and is now in implementation. The project is funded by the Quadrature Climate Foundation.
As Africa’s electricity systems expand rapidly, planning decisions made today will shape reliability, affordability, and emissions for decades. Zambia is an ideal pilot country as energy shocks and multi-day blackouts have highlighted the urgent need for resilient energy planning. Meanwhile, the African Continental Master Plan depends on local capacity to develop national plans.
The open-source modelling framework PyPSA is particularly well suited to this context. It is cost-efficient, transparent, and reproducible – ideal to tackle the complexity of modern energy systems and the move towards a just and sustainable energy transition.
Motivation¶
Closed-source models are the current standard for most policy and industry decisions. However, open models have proven to be competitive alternatives that promote science, robust technical analysis, collaboration and transparent policy decision making. Yet, two issues slow the adoption: open models are often designed with limited geographic scope, hindering synergies to collaborate, or are based on low spatially resolved data, limiting their utility.
PyPSA-Earth is the first open-source global cross-sectoral energy system model with high spatial and temporal resolution. The workflow provides capabilities for modelling the energy systems of any country in the world, enabling large-scale collaboration and transparent analysis for an inclusive and sustainable energy future. PyPSA-Earth is suitable for both operational studies and capacity expansion studies. Its sector-coupled modeling capabilities enable features for the detailed optimization of multi-energy systems, covering electricity, heating, transport, industry, hydrogen and more.
The PyPSA meets Earth initiative members are maintaining the PyPSA-Earth repository as well as many other tools. The website provides more context of the initiative and the associated projects.
Figure: Example power systems built with PyPSA-Earth. See images of ~193 more countries at https://zenodo.org/records/10080766
Get Involved¶
There are multiple ways to get involved and learn more about our work:
-
Join our forum and communication platform on PyPSA-meets-Earth Discord Server
-
Chat on Discord with us in the following meetings:
- General initiative meeting for project news and high-level code updates. Held every fourth Thursday 16-17:00 (UK time) and is a perfect place to meet the community and get a high-level update on PyPSA ecosystem relevant for PyPSA-Earth developments.
- Weekly developers meetings:
- Eastern-Hemisphere friendly Morning meeting every Thursday at 09:00 (UK time).
- Western-Hemisphere friendly Evening meeting every Thursday 16:00 (UK time). Every fourth Thursday is replaced by the General initiative meeting which has a more high-level perspective, but you can also join to discuss more particular questions.
-
Look at public materials at Google Drive to share minutes, presentations, lists and documents. Feel free to get a look!
-
Notify your interest to on-demand meetings:
- Demand creation and prediction meeting
- AI asset detection meeting
- Outreach meeting for planning, discussing events, workshops, communication, community activities
-
Join us and propose your stream.
Documentation¶
Getting Started¶
- Introduction - What is PyPSA-Earth and why use it
- Installation - Set up your environment
- Quick Start - Run your first model
Tutorials¶
- Electricity Model - Build an electricity-only model
- Sector-Coupled Model - Create a multi-sector model
- Model Customization - General Modeling Guidelines
- Examples - Jupyter notebooks and use cases
User Guide¶
- Structure - Project structure and workflow
- Data Workflow - Data processing pipeline
- Configuration - Configure your model settings
- Wildcards - Understand wildcard patterns
- Costs - Technology cost assumptions
- Custom Data Integration - Integrate custom datasets into the model
- Data Versioning - Manage different versions of data
- Rules Overview - Snakemake rules explained
- Rules Reference - Detailed rule descriptions
Educational Materials¶
- Optimization - Optimization theory and methods
Utilities¶
- Monte Carlo - Uncertainty quantification and sensitivity analysis
Community & Resources¶
- Contributing - How to contribute to the project
- Project Structure - Credits and architecture
- Users List - Who's using PyPSA-Earth
- Talks & Papers - Publications and presentations
- Learning Materials - Additional resources
- Software Hints - Tips and troubleshooting
API Reference¶
- API Documentation - Complete API reference