SmartGridready CommHandler
The commhandler library provides the interfaces and drivers to access devices.
Contents
Directory Structure
pyproject.tomlis the main project configuration file.setup.pyis used to build the library package using setuptools.requirements.txtcontains the dependencies required to use the library.requirements-dev.txtcontains the dependencies required to run tests.src/sgr_commhandlercontains the source code of the library, with sgr_commhandler being the root of the namespace.testscontains unit and integration tests.examplescontains 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.6.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 |
|---|---|---|---|---|
| sgr_commhandler-0.6.1.tar.gz | 34.2 kB | Without provenance | Details for sgr_commhandler-0.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sgr_commhandler-0.6.1-py3-none-any.whl | Python 3 | none | any | Details for sgr_commhandler-0.6.1-py3-none-any.whl |
Total release size: 80.8 kB
Release files / sgr_commhandler-0.6.1.tar.gz
| Download URL | sgr_commhandler-0.6.1.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b4ecee7444ea1d8a409957904ad393c6a055b6a3041449d1071c614aa9b64a2
|
|
BLAKE2b-256 checksum How to use checksums |
e8c0fb55368cbc7c639582533c0a43d80fae88867a93da0ac0e96111c49c91ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / sgr_commhandler-0.6.1-py3-none-any.whl
| Download URL | sgr_commhandler-0.6.1-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51883231029d9c23b8e5750630e8db3ef2ae4abc48e7d9cbde24bb46896ebb35
|
|
BLAKE2b-256 checksum How to use checksums |
2e18394f8f85d04ae115fc133a975b2fb95a059de7d97979ff707c4818d27092
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for sgr-commhandler 0.6.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.