Skip to main content

SmartGridready CommHandler

The commhandler library provides the interfaces and drivers to access devices.

Contents

Directory Structure

  • pyproject.toml is the main project configuration file.
  • setup.py is used to build the library package using setuptools.
  • requirements.txt contains the dependencies required to use the library.
  • requirements-dev.txt contains the dependencies required to run tests.
  • src/sgr_commhandler contains the source code of the library, with sgr_commhandler being the root of the namespace.
  • tests contains unit and integration tests.
  • examples contains basic examples of using the library. See SGrPythonSamples for more detailed examples.

Build Instructions

Prerequisites

Check out the SGrPython repository, e.g. in SGrPython.

Create and activate virtual environment:

cd SGrPython
python -m venv .venv

# On Linux call this:
source ./.venv/bin/activate

# On Windows call this:
.\.venv\Scripts\Activate.ps1

Make sure you have the specification library SGrSpecificationPythontks4r installed in your virtual environment. See specification for instructions.

Run Tests

You can run tests using pytest while in virtual environment.

It is not necessary to install the package locally, if you only want to run tests.

cd SGrPython/commhandler
pip install -r requirements-dev.txt

pytest

Build and Use Package

Build package and install in virtual environment:

cd SGrPython/commhandler
pip install -e .

You can use the package SGrPythontks4r from within the virtual environment now.

Note: The designated package name sgr-commhandler must not be used until the PyPI administrators have approved a SmartGridready organization account!

Clean Up

Deactivate the virtual environment after use:

cd SGrPython
deactivate

Metadata

Release files for SGrPythontks4r 0.3.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 SGrPythontks4r 0.3.1
File Size Uploaded
sgrpythontks4r-0.3.1.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for SGrPythontks4r 0.3.1
File Interpreter ABI Platform
SGrPythontks4r-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 55.7 kB

Release files / sgrpythontks4r-0.3.1.tar.gz

Download URL sgrpythontks4r-0.3.1.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ce1816dc4f159a3b8c4db091fcf599c4ab6c35de5de2041a756dd02e8cab0d3
BLAKE2b-256 checksum
How to use checksums
bef649aad65a8892dc6afed480930209df7c2c9742e6c98359a442855b1d9c01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / SGrPythontks4r-0.3.1-py3-none-any.whl

Download URL SGrPythontks4r-0.3.1-py3-none-any.whl
Size 33.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ec8e3b3cf904b38e70811311b63c797086e4ea007e32d39e906d9b194446228
BLAKE2b-256 checksum
How to use checksums
251f2634392d2615be374a2d76c9e7b4d10e0c2afdb93bf20f5e7efd40af7f7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8
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