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-0.0.3.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: maloident-0.0.3.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-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2ef8790daf1cef8f26a67c2c6c71eb47ba0c1eac49406a5b2d3beb0509ecb048
MD5 0ea01b2b4165f6122eed9ffaf6806e80
BLAKE2b-256 61df1d2d4d4d7ace9caa69bd182978b5d7409c6fd25e6196262e71aea8d95f57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: maloident-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for maloident-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e622c73709a5b059817026e7d8d242159944e5dec141402303e4543214c025df
MD5 c95561e4365c892dcd21702cce921c92
BLAKE2b-256 189e3dd712fe66e98a3896e8ca10c78d4aebd7da01b27b67306ec3b8d2c11b1b

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