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 sgr-specification 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 sgr-commhandler 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 sgr-commhandler 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sgr-commhandler 0.5.2
File Size Uploaded
sgr_commhandler-0.5.2.tar.gz 34.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sgr-commhandler 0.5.2
File Interpreter ABI Platform
sgr_commhandler-0.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 81.0 kB

Release files / sgr_commhandler-0.5.2.tar.gz

Download URL sgr_commhandler-0.5.2.tar.gz
Size 34.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64364378ce5a5b1b9284f282a49a7041810cacba0db4316f6d05ec2ea71f1065
BLAKE2b-256 checksum
How to use checksums
ed391a06797c0757c6f3a85cb754e170a013c70e2c244c7a459bd02df425fd44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / sgr_commhandler-0.5.2-py3-none-any.whl

Download URL sgr_commhandler-0.5.2-py3-none-any.whl
Size 46.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26af9534eb025693ba6d87e4fa4405a563bf4cb253d72047395bec7d938abd6e
BLAKE2b-256 checksum
How to use checksums
183fd90e0d3b19cd4e0c1c204d9ca700dffc82fac887f2dbe1f0a47b9f2ac7f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
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