Skip to main content

Model classes for the Verzeichnisdienst API by EDI@Energy

Project description

Verzeichnisdienst Python Models

License: MIT Python Versions (officially) supported Pypi status badge Unittests status badge Coverage status badge Linting status badge Black status badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

verzeichnisdienst-0.0.2.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

verzeichnisdienst-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for verzeichnisdienst-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b6cebb04ca3e26ab71fb62fb9708baf11216afedb39bcde2568bd44055374bb8
MD5 fdbc576db7adf0183c388a705746d30a
BLAKE2b-256 b7a255dec8e0743034fc118d4509c695855e33c439436bd56ab0e818d8cb71f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for verzeichnisdienst-0.0.2.tar.gz:

Publisher: python-publish.yml on Hochfrequenz/verzeichnisdienst-python-models

Attestations:

File details

Details for the file verzeichnisdienst-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for verzeichnisdienst-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f189078522382bc09b323cd3f87ca4542328f39f27187dc4e921dfab6b00961
MD5 4499c1e4546218d4dfc4898c11d82c85
BLAKE2b-256 a144f70f82f2b2913a3c8a589e606cfe0a0027e873bf6c99b3aaad058016bff0

See more details on using hashes here.

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

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page