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 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

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

sgr_commhandler-0.5.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

sgr_commhandler-0.5.0-py3-none-any.whl (46.5 kB view details)

Uploaded Python 3

File details

Details for the file sgr_commhandler-0.5.0.tar.gz.

File metadata

  • Download URL: sgr_commhandler-0.5.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sgr_commhandler-0.5.0.tar.gz
Algorithm Hash digest
SHA256 36f4c6523c8f7e11acaf4934d443f73594f1fc2d5e3271de984cf1018a4808a8
MD5 59c85de53fe184df1726a14b10687086
BLAKE2b-256 4bf5ee63118785ec8ae4ceb592dcf02a10b9c711e2f7f83de59597f66ea779dd

See more details on using hashes here.

File details

Details for the file sgr_commhandler-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sgr_commhandler-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9da7862bf6e117a66d7e596cfbe307e09521796f7bdbc350bc26e1962cb3e0e3
MD5 f5993c6d01a9a126b9f601e6ec9a30ab
BLAKE2b-256 67a4704a597d458791c277634c6bc6155f7b9b4e2e0619ed389f67541ddd9833

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