Skip to main content

SmartGridready CommHandler Library

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgrpythontks4r-0.2.dev20250304.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

SGrPythontks4r-0.2.dev20250304-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file sgrpythontks4r-0.2.dev20250304.tar.gz.

File metadata

File hashes

Hashes for sgrpythontks4r-0.2.dev20250304.tar.gz
Algorithm Hash digest
SHA256 d55af3fea3ad62bef317800b1f873779f8d77c0968131be48c60b8330d138d09
MD5 c7292a573363f73498b42c80c8a90481
BLAKE2b-256 dbc2923aad302cbf5cb07318404d34e8f40beeb3c429642a83bf648997bd836c

See more details on using hashes here.

File details

Details for the file SGrPythontks4r-0.2.dev20250304-py3-none-any.whl.

File metadata

File hashes

Hashes for SGrPythontks4r-0.2.dev20250304-py3-none-any.whl
Algorithm Hash digest
SHA256 ad2e3385e0b8c9bc8f9cb00474eab375f2b2da636329b944f4a1b287b822d6c2
MD5 799e4b5bca77560b3b15bb3f9705ebfd
BLAKE2b-256 f7b882be4bb1d42c81d4e35c4e2d6ef90f09eb6b23a7aeefa1a81c95a91220ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page