{"id":13468866,"url":"https://github.com/tefra/xsdata","last_synced_at":"2025-05-14T13:05:43.422Z","repository":{"id":37733052,"uuid":"217130848","full_name":"tefra/xsdata","owner":"tefra","description":"Naive XML \u0026 JSON Bindings for python","archived":false,"fork":false,"pushed_at":"2025-03-24T13:51:05.000Z","size":6166,"stargazers_count":364,"open_issues_count":15,"forks_count":64,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-12T23:29:42.552Z","etag":null,"topics":["binding","code-generator","dataclass","parser","python","python-library","schema","serializer","soap","wsdl","xml","xsd"],"latest_commit_sha":null,"homepage":"https://xsdata.readthedocs.io","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/tefra.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"tefra","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-10-23T18:51:12.000Z","updated_at":"2025-04-07T01:16:51.000Z","dependencies_parsed_at":"2023-02-18T23:01:45.458Z","dependency_job_id":"ff95e8c4-59e0-44e1-86a1-b54ae4fc4cc6","html_url":"https://github.com/tefra/xsdata","commit_stats":{"total_commits":1106,"total_committers":12,"mean_commits":92.16666666666667,"dds":0.01898734177215189,"last_synced_commit":"4dc9b41f6e85616927f74bddead80ebee33a995b"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tefra","download_url":"https://codeload.github.com/tefra/xsdata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149903,"owners_count":22022851,"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":["binding","code-generator","dataclass","parser","python","python-library","schema","serializer","soap","wsdl","xml","xsd"],"created_at":"2024-07-31T15:01:20.809Z","updated_at":"2025-05-14T13:05:43.393Z","avatar_url":"https://github.com/tefra.png","language":"Python","readme":"[![image](https://github.com/tefra/xsdata/raw/main/docs/logo.svg)](https://xsdata.readthedocs.io/)\n\n# Naive XML Bindings for python\n\n[![image](https://github.com/tefra/xsdata/workflows/tests/badge.svg)](https://github.com/tefra/xsdata/actions)\n[![image](https://readthedocs.org/projects/xsdata/badge)](https://xsdata.readthedocs.io/)\n[![image](https://codecov.io/gh/tefra/xsdata/branch/main/graph/badge.svg)](https://codecov.io/gh/tefra/xsdata)\n[![image](https://www.codefactor.io/repository/github/tefra/xsdata/badge)](https://www.codefactor.io/repository/github/tefra/xsdata)\n[![image](https://img.shields.io/pypi/pyversions/xsdata.svg)](https://pypi.org/pypi/xsdata/)\n[![image](https://img.shields.io/pypi/v/xsdata.svg)](https://pypi.org/pypi/xsdata/)\n\n---\n\nxsData is a complete data binding library for python allowing developers to access and\nuse XML and JSON documents as simple objects rather than using DOM.\n\nThe code generator supports XML schemas, DTD, WSDL definitions, XML \u0026 JSON documents. It\nproduces simple dataclasses with type hints and simple binding metadata.\n\nThe included XML and JSON parser/serializer are highly optimized and adaptable, with\nmultiple handlers and configuration properties.\n\nxsData is constantly tested against the\n[W3C XML Schema 1.1 test suite](https://github.com/tefra/xsdata-w3c-tests).\n\n## Getting started\n\n```console\n$ # Install all dependencies\n$ pip install xsdata[cli,lxml,soap]\n```\n\n```console\n$ # Generate models\n$ xsdata generate tests/fixtures/primer/order.xsd --package tests.fixtures.primer\n```\n\n```python\n\u003e\u003e\u003e from tests.fixtures.primer import PurchaseOrder\n\u003e\u003e\u003e from xsdata.formats.dataclass.parsers import XmlParser\n\u003e\u003e\u003e\n\u003e\u003e\u003e parser = XmlParser()\n\u003e\u003e\u003e order = parser.parse(\"tests/fixtures/primer/sample.xml\", PurchaseOrder)\n\u003e\u003e\u003e order.bill_to\nUsaddress(name='Robert Smith', street='8 Oak Avenue', city='Old Town', state='PA', zip=Decimal('95819'), country='US')\n```\n\nCheck the [documentation](https://xsdata.readthedocs.io) for more ✨✨✨\n\n## Features\n\n**Code Generator**\n\n- XML Schemas 1.0 \u0026 1.1\n- WSDL 1.1 definitions with SOAP 1.1 bindings\n- DTD external definitions\n- Directly from XML and JSON Documents\n- Extensive configuration to customize output\n- Pluggable code writer for custom output formats\n\n**Default Output**\n\n- Pure python dataclasses with metadata\n- Type hints with support for forward references and unions\n- Enumerations and inner classes\n- Support namespace qualified elements and attributes\n\n**Data Binding**\n\n- XML and JSON parser, serializer\n- PyCode serializer\n- Handlers and Writers based on lxml and native xml python\n- Support wildcard elements and attributes\n- Support xinclude statements and unknown properties\n- Customize behaviour through config\n\n## Changelog: 25.4 (2025-04-13)\n\n**Features**\n\n- Allow extensions to match module paths\n  ([#1132](https://github.com/tefra/xsdata/pull/1132))\n\n- Improve duplicate class names detection and resolution\n  ([#1127](https://github.com/tefra/xsdata/pull/1127))\n\n**Fixes**\n\n- Resolve Code Quality Issue\n","funding_links":["https://github.com/sponsors/tefra"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftefra%2Fxsdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata/lists"}