Skip to main content

Model classes for the Marktlokation ID Identification API by EDI@Energy (manually fixed)

Project description

MaLo Ident 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 MaLo ident API.

It does not provide you with an HTTP client.

Installation

Install it from PyPI

pip install maloident

Then use it:

from maloident.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


Download files

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

Source Distribution

maloident-2024.7.3.1.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

maloident-2024.7.3.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file maloident-2024.7.3.1.tar.gz.

File metadata

  • Download URL: maloident-2024.7.3.1.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for maloident-2024.7.3.1.tar.gz
Algorithm Hash digest
SHA256 1c88c1cae95d0147834d537c66901851766f59c2934d4ca0c3c4dfb5853066b4
MD5 97fb6d51fbc219ab6f945516e24c88ac
BLAKE2b-256 37592e3f6b5a979df1b669d94d2022da0c0b36f1cf96946d14ffb0bce4eabea5

See more details on using hashes here.

File details

Details for the file maloident-2024.7.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for maloident-2024.7.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 241c0d1f41cea8b7952d8f2e719e31531f8bf6b0de0445f1d0c775640554bcf2
MD5 06db20d7f98e1b308d0d711e5ff40bfb
BLAKE2b-256 6ca0af30696c2e3c647e0a275f0401a322c76643c505f79f59066f019a14f721

See more details on using hashes here.

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