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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sgr_commhandler-0.6.0.tar.gz | 34.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgr_commhandler-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 80.8 kB
Release files / sgr_commhandler-0.6.0.tar.gz
| Download URL | sgr_commhandler-0.6.0.tar.gz |
|---|---|
| Size | 34.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e64004ccf307cc9dc041a56c3bef6872f7a137fdff7b1ea1884db8fe7080c0f
|
|
BLAKE2b-256 checksum How to use checksums |
1cde4f5d343734176f6626cf84fad81979eb9cf2c472632767b3db7351b9b489
|
| 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.0-py3-none-any.whl
| Download URL | sgr_commhandler-0.6.0-py3-none-any.whl |
|---|---|
| Size | 46.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62ea8a52c368cdfffbccd356796ea93ea7790a3c47dd78bb08a8164b682bb287
|
|
BLAKE2b-256 checksum How to use checksums |
aee1ea7691a807052b0699b4ec51fadd70968ffce70a0211a90e27fd31fd9b9d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|