{"id":15286020,"url":"https://github.com/hochfrequenz/malo-ident-python-models","last_synced_at":"2025-05-07T03:46:57.484Z","repository":{"id":257802501,"uuid":"863006093","full_name":"Hochfrequenz/malo-ident-python-models","owner":"Hochfrequenz","description":"Pydantic Model Classes for the EDI@Energy MaLo Ident API","archived":false,"fork":false,"pushed_at":"2025-05-05T20:27:10.000Z","size":119,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-07T03:46:50.611Z","etag":null,"topics":["bdew","codegeneration","edi-energy","energiewirtschaft","malo","malo-id","maloident","marktkommunikation","marktlokation","openapi","pydantic"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hochfrequenz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-25T14:56:24.000Z","updated_at":"2025-05-05T20:26:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab86190e-d4db-42e8-9b7d-773b9cff8217","html_url":"https://github.com/Hochfrequenz/malo-ident-python-models","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.38095238095238093","last_synced_commit":"93e40c2269a9f08e5dca6d22f9f39d746b02d4de"},"previous_names":["hochfrequenz/malo-ident-python-models"],"tags_count":9,"template":false,"template_full_name":"Hochfrequenz/python_template_repository","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hochfrequenz%2Fmalo-ident-python-models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hochfrequenz%2Fmalo-ident-python-models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hochfrequenz%2Fmalo-ident-python-models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hochfrequenz%2Fmalo-ident-python-models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hochfrequenz","download_url":"https://codeload.github.com/Hochfrequenz/malo-ident-python-models/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810275,"owners_count":21807759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdew","codegeneration","edi-energy","energiewirtschaft","malo","malo-id","maloident","marktkommunikation","marktlokation","openapi","pydantic"],"created_at":"2024-09-30T15:09:33.395Z","updated_at":"2025-05-07T03:46:57.468Z","avatar_url":"https://github.com/Hochfrequenz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MaLo Ident Python Models\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n![Python Versions (officially) supported](https://img.shields.io/pypi/pyversions/maloident.svg)\n![Pypi status badge](https://img.shields.io/pypi/v/maloident)\n![Unittests status badge](https://github.com/Hochfrequenz/malo-ident-python-models/workflows/Unittests/badge.svg)\n![Coverage status badge](https://github.com/Hochfrequenz/malo-ident-python-models/workflows/Coverage/badge.svg)\n![Linting status badge](https://github.com/Hochfrequenz/malo-ident-python-models/workflows/Linting/badge.svg)\n![Black status badge](https://github.com/Hochfrequenz/malo-ident-python-models/workflows/Formatting/badge.svg)\n\nThis package provides mostly autogenerated [pydantic](https://docs.pydantic.dev/latest/)-based model classes for the MaLo ident API.\n\nWe also maintain a [C#/.NET Version of this data model](https://github.com/Hochfrequenz/malo-ident-net-models).\n\nIt does not provide you with an HTTP client.\n\n## Installation\n\nInstall it from [PyPI](https://pypi.org/project/maloident)\n\n```bash\npip install maloident\n```\n\nThen use it:\n\n```python\nfrom maloident.v1.models import ResultNegative\n\nmy_json = {\n    \"decisionTree\": \"E_0594\",\n    \"responseCode\": \"A10\",\n    \"reason\": \"Ich bin ein Freitext.\",\n    \"networkOperator\": 9900987654321,\n}\nresult = ResultNegative.model_validate(my_json)\n```\n\nThe request payload type for the Lieferant➡️Netzbetreiber identification request is `maloident.models.IdentificationParameter`.\n\nSee the [tests](unittests/test_models.py) for more examples.\n\n## Project Structure\n\nThis project is based on [`datamodel-code-generator`](https://github.com/koxudaxi/datamodel-code-generator/).\nMost of the classes are autogenerated from the [`openapi.yml`](openapi/v1/openapi.yml) which can be found on [SwaggerHub](https://app.swaggerhub.com/apis/edi-energy/MaLoIdent_2024-07-03/v1.0.0).\n\nNote that we fixed some errors in the official OpenAPI spec.\nOur changes are mentioned at the beginning of the [`openapi.yml`](openapi/v1/openapi.yml) file.\n\nhttps://github.com/Hochfrequenz/malo-ident-python-models/blob/3cfe0aea3cff051303ef5e513d06ab6c5741f21a/openapi/openapi.yml#L4-L10\n\nAfter updating the `openapi.yml` file, use\n\n```bash\ntox -e codegen\n```\n\nto re-generate the model classes.\n\n## Contribute\n\nYou are very welcome to contribute to this template repository by opening a pull request against the main branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhochfrequenz%2Fmalo-ident-python-models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhochfrequenz%2Fmalo-ident-python-models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhochfrequenz%2Fmalo-ident-python-models/lists"}