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 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.20250902
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.1.20250902.tar.gz | 43.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgr_specification-2.1.20250902-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.0 kB
Release files / sgr_specification-2.1.20250902.tar.gz
| Download URL | sgr_specification-2.1.20250902.tar.gz |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac23260da5ed7b2cc6bd8e348a4f7c4379dae0637649c5ac2bb3e417a39fa21f
|
|
BLAKE2b-256 checksum How to use checksums |
3e3dd2cbb29c1d4562d31280adb1b9d3d1041259323ba9d7e18ec0c5f0ffbc8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / sgr_specification-2.1.20250902-py3-none-any.whl
| Download URL | sgr_specification-2.1.20250902-py3-none-any.whl |
|---|---|
| Size | 66.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
694df59482173e68db67de323d97f10fd452f2bd5ae85d6f3f177be79efcbee0
|
|
BLAKE2b-256 checksum How to use checksums |
57a45cc8494c7d3b8fb5ea573990f0013e663abc505854718dcb9abf1fc5c15e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|