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.tomlis the main project configuration file.setup.pyis used to build the library package using setuptools.src/sgr_specificationcontains 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 -r requirements-dev.txt
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.3.20260528
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_specification-2.3.20260528.tar.gz | 43.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgr_specification-2.3.20260528-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.6 kB
Release files / sgr_specification-2.3.20260528.tar.gz
| Download URL | sgr_specification-2.3.20260528.tar.gz |
|---|---|
| Size | 43.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4520743f6b02ce9cfd97ee048af531a5fc0a36af316683d8aac555ed3b90b4a6
|
|
BLAKE2b-256 checksum How to use checksums |
8798e4a3d4341fbebe345c8aa5e499a7dfb186ccb6ce913907ad5d67831887c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / sgr_specification-2.3.20260528-py3-none-any.whl
| Download URL | sgr_specification-2.3.20260528-py3-none-any.whl |
|---|---|
| Size | 67.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c80adfbaaf6485a8e6d43b4fb4805437ddd8fdd873c3ad18cfae2a3641e1be44
|
|
BLAKE2b-256 checksum How to use checksums |
12cbd4649a9a70bc1e65a608898b1e39c928ad68e38c5794e200579c3c4f4a81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|