Model classes for the Marktlokation ID Identification API by EDI@Energy (manually fixed)
Project description
MaLo Ident Python Models
This package provides mostly autogenerated pydantic-based model classes for the MaLo ident API.
We also maintain a C#/.NET Version of this data model.
It does not provide you with an HTTP client.
Installation
Install it from PyPI
pip install maloident
Then use it:
from maloident.v1.models import ResultNegative
my_json = {
"decisionTree": "E_0594",
"responseCode": "A10",
"reason": "Ich bin ein Freitext.",
"networkOperator": 9900987654321,
}
result = ResultNegative.model_validate(my_json)
The request payload type for the Lieferant➡️Netzbetreiber identification request is maloident.models.IdentificationParameter
.
See the tests for more examples.
Project Structure
This project is based on datamodel-code-generator
.
Most of the classes are autogenerated from the openapi.yml
which can be found on SwaggerHub.
Note that we fixed some errors in the official OpenAPI spec.
Our changes are mentioned at the beginning of the openapi.yml
file.
After updating the openapi.yml
file, use
tox -e codegen
to re-generate the model classes.
Contribute
You are very welcome to contribute to this template repository by opening a pull request against the main branch.
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
File details
Details for the file maloident-2024.7.3.6.tar.gz
.
File metadata
- Download URL: maloident-2024.7.3.6.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccf1bd1d434a961cfd67a149a692d47f203a98e16240151852522c79bbe6f8ad |
|
MD5 | c9eec30029ff7359dc8fdc20a78adf23 |
|
BLAKE2b-256 | 97957c35c24aa482eb0055e3cc79eff27a479a1dd82c85bbbf9e2f381d99da11 |
Provenance
The following attestation bundles were made for maloident-2024.7.3.6.tar.gz
:
Publisher:
python-publish.yml
on Hochfrequenz/malo-ident-python-models
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
maloident-2024.7.3.6.tar.gz
- Subject digest:
ccf1bd1d434a961cfd67a149a692d47f203a98e16240151852522c79bbe6f8ad
- Sigstore transparency entry: 149062614
- Sigstore integration time:
- Predicate type:
File details
Details for the file maloident-2024.7.3.6-py3-none-any.whl
.
File metadata
- Download URL: maloident-2024.7.3.6-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c7e69b501a85025fa25d1e892c35beac31092773a22d23151077c71bf7028db |
|
MD5 | 8b6eb4b0c45b9609e60d7606b3d674a7 |
|
BLAKE2b-256 | 884bbf23b0b7918a15209ed70dd37e9491a9d27f393cc04d63d23b69a67222f9 |
Provenance
The following attestation bundles were made for maloident-2024.7.3.6-py3-none-any.whl
:
Publisher:
python-publish.yml
on Hochfrequenz/malo-ident-python-models
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
maloident-2024.7.3.6-py3-none-any.whl
- Subject digest:
1c7e69b501a85025fa25d1e892c35beac31092773a22d23151077c71bf7028db
- Sigstore transparency entry: 149062615
- Sigstore integration time:
- Predicate type: