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.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sgr_specification-2.2.20251027.tar.gz.
File metadata
- Download URL: sgr_specification-2.2.20251027.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00488bc313529fd82158581b8e1c910db1d56101cf63fbeae2e979de16db8771
|
|
| MD5 |
2bbcf26900febfecaf76ed8e824c137d
|
|
| BLAKE2b-256 |
7a20b7fc7a09ad5e89ac1761e7b2cdd94fcd4d5b71e19b26815cd72fe0e31f94
|
File details
Details for the file sgr_specification-2.2.20251027-py3-none-any.whl.
File metadata
- Download URL: sgr_specification-2.2.20251027-py3-none-any.whl
- Upload date:
- Size: 67.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
280f276c39193717163a05eb2f2be1ccc28bb5a05c9bf7c51510f75c5a7ff81c
|
|
| MD5 |
53d5535f3f086d99ed4c0af40ebf33d2
|
|
| BLAKE2b-256 |
d1686e873aefed314da92d9c46122f33cdd5fb2ec62c0fe53e4a0166e55738fc
|