Co-Simulation Toolbox to push advances in the field.
Installation
cosim_toolbox can be installed using pip:
$ pip install cosim_toolbox
However, in order to be useful, cosim_toolbox needs custom versions of GridLAB-D and other federates that work with HELICS. It also requires Python 3.10 or later, with HELICS, NumPy, MongoDB, Pandas, and Psycopg. There is reposistory of the complete Co-Simulation for Windows, Linux and Mac OS X on GitHub. A Docker version is also available for users.
Development Work Flow for cosim_toolbox
From this directory, ‘pip install -e .’ points Python to this cloned repository for any calls to cosim_toolbox functions
See the https://github.com/pnnl/cst for a roadmap of existing Python source files, and some documentation. Any changes or additions to the code need to be made in this directory.
Run tests from any other directory on this computer
When ready, edit the cosim_toolbox version number and dependencies in setup.py
- To deploy follow the instructions in the Python Packaging Guide:
Create an account on PyPI if you haven’t yet.
Install twine and build: pip install twine build
Create the source distribution, change to ‘src’ directory execute: python3 -m build .
Check your distribution files for errors: twine check dist/*
(Optional) Upload to the PyPI test server first (note: separate user registration required): twine upload –repository-url https://test.pypi.org/legacy/ dist/*
Upload to PyPI: twine upload dist/*
Any user gets the changes with ‘pip install cosim_toolbox –upgrade’
Use ‘pip show cosim_toolbox’ to verify the version and location on your computer
Using Co-Simulation Toolbox
This is a developer’s platform for electric power grid research. See http://cosimtoolbox.readthedocs.io/en/latest/ for user instructions, and https://[github]/copper for source code.
Links to Dependencies
Subdirectories
cosim_toolbox; utilities for building and running co-simulations using HELICS federates.
test; scripts that support testing the package; not automated.
License & Copyright
Copyright (c) 2022-2025 Battelle Memorial Institute
Metadata
Release files for cosim-toolbox 1.0.1
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 |
|---|---|---|---|---|
| cosim_toolbox-1.0.1.tar.gz | 72.7 kB | Without provenance | Details for cosim_toolbox-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cosim_toolbox-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for cosim_toolbox-1.0.1-py3-none-any.whl |
Total release size: 210.6 kB
Release files / cosim_toolbox-1.0.1.tar.gz
| Download URL | cosim_toolbox-1.0.1.tar.gz |
|---|---|
| Size | 72.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b093f277ff1dc1cdcbfebdad5d39e71c8e56ae3ae05e93495a4a4005a49fa622
|
|
BLAKE2b-256 checksum How to use checksums |
d4bad52fb19aa1e3e5ae2fd34ccdb2561a88962adebf62aec3e10adadb1eadd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Release files / cosim_toolbox-1.0.1-py3-none-any.whl
| Download URL | cosim_toolbox-1.0.1-py3-none-any.whl |
|---|---|
| Size | 137.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d22bd5b9a4736cc58cacc94513b314dd80c0d29674f1274c3f0f848665845cac
|
|
BLAKE2b-256 checksum How to use checksums |
6d48f9870226b6a91e93d0c4f06359bcfdeef3ac4727f5e97db58dedae7b5369
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.19
|
Security for cosim-toolbox 1.0.1
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.