Skip to main content

SmartGridready Specification Library

Project description

zsh: no matches found: xsdata[cli]# SmartGridready Specification

The specification library contains the classes generated from the SGr XML schema.

The actual XML schema files reside in the separate SGrSpecifications repository .

Contents

Directory Structure

  • pyproject.toml is the main project configuration file.
  • setup.py is used to build the library package using setuptools.
  • src/sgr_specification contains the generated sources of the specification, with sgr_specification being the root of the namespace. The directory is empty, unless the sources are generated from the XML schema.

Build Instructions

Prerequisites

Install xsdata CLI:

pip install xsdata[cli]

Check out both the SGrPython and the SGrSpecifications repositories alongside each other, e.g. in SGrSpecifications and SGrPython.

Generate Sources

Generate specification source code from XML schema:

cd SGrPython/specification/src
rm -rf ./sgr_specification/v0
xsdata generate ../../../SGrSpecifications/SchemaDatabase/SGr -r --package sgr_specification.v0

Build and Use Package

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

Build package and install in virtual environment:

cd SGrPython/specification
pip install -e .

You can use the package sgr-specification from within the virtual environment now.

Note: The designated package name sgr-specification 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_specification-2.1.20250902.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

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

sgr_specification-2.1.20250902-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file sgr_specification-2.1.20250902.tar.gz.

File metadata

File hashes

Hashes for sgr_specification-2.1.20250902.tar.gz
Algorithm Hash digest
SHA256 ac23260da5ed7b2cc6bd8e348a4f7c4379dae0637649c5ac2bb3e417a39fa21f
MD5 a64dede6fc9823c12262e6c18d851ad9
BLAKE2b-256 3e3dd2cbb29c1d4562d31280adb1b9d3d1041259323ba9d7e18ec0c5f0ffbc8e

See more details on using hashes here.

File details

Details for the file sgr_specification-2.1.20250902-py3-none-any.whl.

File metadata

File hashes

Hashes for sgr_specification-2.1.20250902-py3-none-any.whl
Algorithm Hash digest
SHA256 694df59482173e68db67de323d97f10fd452f2bd5ae85d6f3f177be79efcbee0
MD5 ca8e32fd26b29e4c67970280c59370a1
BLAKE2b-256 57a45cc8494c7d3b8fb5ea573990f0013e663abc505854718dcb9abf1fc5c15e

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