ZEN-creator allows for the creation and management of datasets for ZEN-garden.
Project description
ZEN-creator
Lightweight utilities for creating and managing ZEN energy-system models and associated datasets. Full developer and user documentation is available online.
Quick start
Installation (recommended)
- Create the conda environment included with the repository:
conda env create -f zen_creator_env.yml
conda activate zen-creator-env
- Or install in editable mode with pip:
python -m pip install -e .
Basic usage
Programmatic usage is the recommended way to build and manipulate ZEN
models. The central entry point is the Model class which can be constructed
in several ways: directly, from a configuration file, or by loading an
existing ZEN-garden input folder.
from pathlib import Path
from zen_creator.model import Model
# 1) Create a model from a configuration file
model = Model.from_config(Path("config.yaml"))
model.build()
model.validate()
model.write()
# 2) Load an existing ZEN-garden input folder and update
existing = Path("existing_model")
model2 = Model.from_existing(existing)
model2.name = "updated_model"
model2.build()
model2.write()
# 3) Create an empty model and add sectors/elements programmatically
m = Model()
m.add_sector_by_name("electricity")
m.add_element_by_name("electricity", generic="carrier")
m.build()
Useful properties
model.carriers,model.technologies: dictionaries of elementsmodel.output_path: path where the model will be written
Documentation
The full documentation (API reference, developer guide and examples) is hosted online: ZEN-creator documentation
Contributing
project Contribution Guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zen_creator-1.4.0.tar.gz.
File metadata
- Download URL: zen_creator-1.4.0.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d94883b47c51a85366ad71e2b4863a50f53f17c6bd35e3ff35748df18c8bfe74
|
|
| MD5 |
95812a9143e0db819cb7d112e711b267
|
|
| BLAKE2b-256 |
83f829b397b8b56a16700bfbcd808e4e607e4f7974e164e8c034955ed179cf16
|
Provenance
The following attestation bundles were made for zen_creator-1.4.0.tar.gz:
Publisher:
bump_and_release.yml on ZEN-universe/ZEN-creator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zen_creator-1.4.0.tar.gz -
Subject digest:
d94883b47c51a85366ad71e2b4863a50f53f17c6bd35e3ff35748df18c8bfe74 - Sigstore transparency entry: 1825438364
- Sigstore integration time:
-
Permalink:
ZEN-universe/ZEN-creator@a2b6bd9d104d4e3516f71e2bc1ca5350dbf5355b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ZEN-universe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bump_and_release.yml@a2b6bd9d104d4e3516f71e2bc1ca5350dbf5355b -
Trigger Event:
push
-
Statement type:
File details
Details for the file zen_creator-1.4.0-py3-none-any.whl.
File metadata
- Download URL: zen_creator-1.4.0-py3-none-any.whl
- Upload date:
- Size: 61.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28cf5884a7720eaef1ba85c436117c5c4a9028480d79130451a523fefe1be590
|
|
| MD5 |
ea717b85e7273e9c20533ef1fa2d3c52
|
|
| BLAKE2b-256 |
d39d8d917617a54241e6766742893aa32d4943172dd428e820888888c9ca20bb
|
Provenance
The following attestation bundles were made for zen_creator-1.4.0-py3-none-any.whl:
Publisher:
bump_and_release.yml on ZEN-universe/ZEN-creator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zen_creator-1.4.0-py3-none-any.whl -
Subject digest:
28cf5884a7720eaef1ba85c436117c5c4a9028480d79130451a523fefe1be590 - Sigstore transparency entry: 1825438464
- Sigstore integration time:
-
Permalink:
ZEN-universe/ZEN-creator@a2b6bd9d104d4e3516f71e2bc1ca5350dbf5355b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ZEN-universe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
bump_and_release.yml@a2b6bd9d104d4e3516f71e2bc1ca5350dbf5355b -
Trigger Event:
push
-
Statement type: