Model classes for the Verzeichnisdienst API by EDI@Energy
Project description
Verzeichnisdienst Python Models
This package provides mostly autogenerated pydantic-based model classes for the Verzeichnisdienst API.
It does not provide you with an HTTP client.
Installation
Install it from PyPI
pip install verzeichnisdienst
Then use it:
from verzeichnisdienst.v1.models import ApiRecord
my_json = {
"providerId": "1234567890123",
"apiId": "example",
"majorVersion": 1,
"url": "https://www.example.org/api/resource/v1",
"additionalMetadata": None,
"lastUpdated": "2024-10-01T00:00:00+00:00",
"revision": 1,
"status": "Test",
}
my_strongly_typed_record = ApiRecord.model_validate(my_json)
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.
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 verzeichnisdienst-0.0.2.tar.gz
.
File metadata
- Download URL: verzeichnisdienst-0.0.2.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6cebb04ca3e26ab71fb62fb9708baf11216afedb39bcde2568bd44055374bb8 |
|
MD5 | fdbc576db7adf0183c388a705746d30a |
|
BLAKE2b-256 | b7a255dec8e0743034fc118d4509c695855e33c439436bd56ab0e818d8cb71f4 |
Provenance
The following attestation bundles were made for verzeichnisdienst-0.0.2.tar.gz
:
Publisher:
python-publish.yml
on Hochfrequenz/verzeichnisdienst-python-models
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
verzeichnisdienst-0.0.2.tar.gz
- Subject digest:
b6cebb04ca3e26ab71fb62fb9708baf11216afedb39bcde2568bd44055374bb8
- Sigstore transparency entry: 149469506
- Sigstore integration time:
- Predicate type:
File details
Details for the file verzeichnisdienst-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: verzeichnisdienst-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 2f189078522382bc09b323cd3f87ca4542328f39f27187dc4e921dfab6b00961 |
|
MD5 | 4499c1e4546218d4dfc4898c11d82c85 |
|
BLAKE2b-256 | a144f70f82f2b2913a3c8a589e606cfe0a0027e873bf6c99b3aaad058016bff0 |
Provenance
The following attestation bundles were made for verzeichnisdienst-0.0.2-py3-none-any.whl
:
Publisher:
python-publish.yml
on Hochfrequenz/verzeichnisdienst-python-models
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
verzeichnisdienst-0.0.2-py3-none-any.whl
- Subject digest:
2f189078522382bc09b323cd3f87ca4542328f39f27187dc4e921dfab6b00961
- Sigstore transparency entry: 149469507
- Sigstore integration time:
- Predicate type: