Skip to main content

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.

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.

https://github.com/Hochfrequenz/malo-ident-python-models/blob/3cfe0aea3cff051303ef5e513d06ab6c5741f21a/openapi/openapi.yml#L4-L10

After updating the openapi.yml file, use (this requires Python >=3.10, since datamodel-code-generator dropped support for Python 3.9)

uv sync --group codegen
uv run datamodel-codegen --encoding utf-8 --input openapi/v1/openapi.yml --output src/maloident/v1/_autogenerated.py --input-file-type openapi --output-model-type pydantic_v2.BaseModel --output-datetime-class AwareDatetime
uv run black src/maloident/v1/_autogenerated.py
uv run isort src/maloident/v1/_autogenerated.py

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.

Download files

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

Source Distribution

maloident-2026.7.1.1.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maloident-2026.7.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: maloident-2026.7.1.1.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for maloident-2026.7.1.1.tar.gz
Algorithm Hash digest
SHA256 ab2e48912d5bffac70b6821605ffaeb6de79d61f8e61d6eb894648d884735173
MD5 7e7bf3fc3f0ce3007cdc5524f5fe80cc
BLAKE2b-256 af1e3b0ed3f4ea35ae61da795cd0c73ae3d9372eaa8440dc873cdd1ecae228e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for maloident-2026.7.1.1.tar.gz:

Publisher: python-publish.yml on Hochfrequenz/malo-ident-python-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: maloident-2026.7.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for maloident-2026.7.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c5122f9580813c43a5f08c622bfec1db289e224159c9f9f1acf73e2e4cdbe7a
MD5 279648242bf28e97778478f74aeda5eb
BLAKE2b-256 4c985545a37337faa4e3ac9eb40904d7194fee0ec738e202cb94bcd5c187cccf

See more details on using hashes here.

Provenance

The following attestation bundles were made for maloident-2026.7.1.1-py3-none-any.whl:

Publisher: python-publish.yml on Hochfrequenz/malo-ident-python-models

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2026.7.1.1 This release

2 files

2024.7.3.6

2 files

2024.7.3.4

2 files

2024.7.3.3

2 files

2024.7.3.2

2 files

2024.7.3.1

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page