Skip to main content

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:
    1. Create an account on PyPI if you haven’t yet.

    2. Install twine and build: pip install twine build

    3. Create the source distribution, change to ‘src’ directory execute: python3 -m build .

    4. Check your distribution files for errors: twine check dist/*

    5. (Optional) Upload to the PyPI test server first (note: separate user registration required): twine upload –repository-url https://test.pypi.org/legacy/ dist/*

    6. 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.

Subdirectories

  • cosim_toolbox; utilities for building and running co-simulations using HELICS federates.

  • test; scripts that support testing the package; not automated.

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)

Source distribution for cosim-toolbox 1.0.1
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)

Table of built distributions (wheels) for cosim-toolbox 1.0.1
File Interpreter ABI Platform Actions
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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page