Power Station Dictionary
A power station dictionary that enables mapping between various naming conventions and associated plant metadata
The core output of this project is a clean power plant dataset that includes relevant attributes such as location and capacity, as well as id mappings that can be used to connect them to other datasets. Currently the focus of this work are plants within the GB power system. The powerdict module provides a programmatic way in which to combine the raw datasets and apply any additional updates specified in the files contained within the three data directories:
- raw - source datasets as csvs
- updates - JSON mappings from an osuked_id to a new attribute value
- definitions - JSON specification of how to process the raw sources and what the output should look like
CI/CD is set-up so that any changes in this repository will trigger a reconstruction of the output dataset, additionally a new GitHub release will automatically trigger a new release on Zenodo and produce an updated DOI. The output dataset can be found here. As with projects such as the Global Power Plant Database, powerdict provides a clear data lineage from the raw sources/updates to the output. Furthermore, integrating this with GitHub enables version control of the underlying datasets and updates/corrections.
Installation
To install the powerdict library please run:
pip install powerdict
Development Set-Up
To set-up a new environment you can run the following from the batch_scripts directory
pypi_publish
Alternatively you can run these commands
call conda env create -f environment.yml
call conda activate PowerDict
call ipython kernel install --user --name=PowerDict
Publishing to PyPi
To publish the powerdict module to PyPi simply run the following from the batch_scripts directory
pypi_publish
or follow these commands
call conda activate PowerDict
call python setup.py sdist bdist_wheel
call twine upload --skip-existing dist/*
When prompted you should enter your PyPi username and password
After this you will be able to install the latest version of powerdict using pip install powerdict
Metadata
Release files for powerdict 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| powerdict-1.3.0.tar.gz | 6.5 kB | Without provenance | Details for powerdict-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerdict-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for powerdict-1.3.0-py3-none-any.whl |
Total release size: 15.9 kB
Release files / powerdict-1.3.0.tar.gz
| Download URL | powerdict-1.3.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3f7088224483837bff56c011407c7390f0059b9dc21854d98c1521cbbef973d
|
|
BLAKE2b-256 checksum How to use checksums |
848200fbeb3ed2de7ab20c61633e5028c69cb8f363c45580ac78b1b109f82d37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.7
|
Release files / powerdict-1.3.0-py3-none-any.whl
| Download URL | powerdict-1.3.0-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
704e4fb6eef29bc184785d325c5a0b80d25e01ea65a61535e913228dec8159e5
|
|
BLAKE2b-256 checksum How to use checksums |
a35acf38aa0caa7c2d407ed0930f61d1731e9ddc3c75825024e5d76d217a0cd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.7
|
Security for powerdict 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.