Skip to main content

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

Metadata

Release files for sgr-specification 2.1.20250415

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sgr-specification 2.1.20250415
File Size Uploaded
sgr_specification-2.1.20250415.tar.gz 43.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sgr-specification 2.1.20250415
File Interpreter ABI Platform
sgr_specification-2.1.20250415-py3-none-any.whl Python 3 none any Details

Total release size: 111.1 kB

Release files / sgr_specification-2.1.20250415.tar.gz

Download URL sgr_specification-2.1.20250415.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a84494448745fd66571bcdee675394c87e2051fd7adb0dd967887e91aa344048
BLAKE2b-256 checksum
How to use checksums
ecaacdba250334f1e59a3dec30002c3520e6da425796671e0e61bf0935c250d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release files / sgr_specification-2.1.20250415-py3-none-any.whl

Download URL sgr_specification-2.1.20250415-py3-none-any.whl
Size 67.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
079968e7bd1b850937708a99702564d87a864012bdf7b02364cce9610045e250
BLAKE2b-256 checksum
How to use checksums
1903c2a3c5767e6396cc81ffe57ec29f404282eeb3815834225314c197b406e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.7

Release history Release notifications | RSS feed

This release

2.1.20250415 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page