{"id":23317582,"url":"https://github.com/tefra/xsdata-pydantic","last_synced_at":"2025-04-04T20:08:32.958Z","repository":{"id":41502043,"uuid":"424566979","full_name":"tefra/xsdata-pydantic","owner":"tefra","description":"Naive XML \u0026 JSON Bindings for python pydantic classes!","archived":false,"fork":false,"pushed_at":"2024-12-01T13:35:53.000Z","size":55,"stargazers_count":65,"open_issues_count":6,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T19:05:58.725Z","etag":null,"topics":["bindings","code-generator","json","parser","pydantic","python","schema","wsdl","xml","xsd"],"latest_commit_sha":null,"homepage":"https://xsdata-pydantic.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":"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},"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":"2021-11-04T11:15:58.000Z","updated_at":"2025-03-23T14:52:56.000Z","dependencies_parsed_at":"2024-03-10T15:44:20.232Z","dependency_job_id":"cb7edbdd-201f-4c9c-bfd8-0e4f9de5ecc8","html_url":"https://github.com/tefra/xsdata-pydantic","commit_stats":{"total_commits":21,"total_committers":1,"mean_commits":21.0,"dds":0.0,"last_synced_commit":"f5a4e140940f3a184b06d3260bf924bc9f43f279"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-pydantic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-pydantic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-pydantic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-pydantic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tefra","download_url":"https://codeload.github.com/tefra/xsdata-pydantic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247242678,"owners_count":20907134,"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":["bindings","code-generator","json","parser","pydantic","python","schema","wsdl","xml","xsd"],"created_at":"2024-12-20T16:34:41.676Z","updated_at":"2025-04-04T20:08:32.915Z","avatar_url":"https://github.com/tefra.png","language":"Python","funding_links":["https://github.com/sponsors/tefra"],"categories":[],"sub_categories":[],"readme":"[![image](https://github.com/tefra/xsdata-pydantic/raw/main/docs/logo.svg)](https://xsdata-pydantic.readthedocs.io/)\n\n# xsdata powered by pydantic!\n\n[![image](https://github.com/tefra/xsdata-pydantic/workflows/tests/badge.svg)](https://github.com/tefra/xsdata-pydantic/actions)\n[![image](https://readthedocs.org/projects/xsdata-pydantic/badge)](https://xsdata-pydantic.readthedocs.io/)\n[![image](https://codecov.io/gh/tefra/xsdata-pydantic/branch/main/graph/badge.svg)](https://codecov.io/gh/tefra/xsdata-pydantic)\n[![image](https://www.codefactor.io/repository/github/tefra/xsdata-pydantic/badge)](https://www.codefactor.io/repository/github/tefra/xsdata-pydantic)\n[![image](https://img.shields.io/pypi/pyversions/xsdata-pydantic.svg)](https://pypi.org/pypi/xsdata-pydantic/)\n[![image](https://img.shields.io/pypi/v/xsdata-pydantic.svg)](https://pypi.org/pypi/xsdata-pydantic/)\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\nNow powered by pydantic!\n\n```console\n$ xsdata http://rss.cnn.com/rss/edition.rss --output pydantic\nParsing document edition.rss\nAnalyzer input: 9 main and 0 inner classes\nAnalyzer output: 9 main and 0 inner classes\nGenerating package: init\nGenerating package: generated.rss\n```\n\n```python\nclass Rss(BaseModel):\n    class Meta:\n        name = \"rss\"\n\n    model_config = ConfigDict(defer_build=True)\n    version: float = field(\n        metadata={\n            \"type\": \"Attribute\",\n            \"required\": True,\n        }\n    )\n    channel: Channel = field(\n        metadata={\n            \"type\": \"Element\",\n            \"required\": True,\n        }\n    )\n```\n\n```console\n\n\u003e\u003e\u003e from xsdata_pydantic.bindings import XmlParser\n\u003e\u003e\u003e from urllib.request import urlopen\n\u003e\u003e\u003e from generated.rss import Rss\n\u003e\u003e\u003e\n\u003e\u003e\u003e parser = XmlParser()\n\u003e\u003e\u003e with urlopen(\"http://rss.cnn.com/rss/edition.rss\") as rq:\n...     result = parser.parse(rq, Rss)\n...\n\u003e\u003e\u003e result.channel.item[2].title\n'Vatican indicts 10 people, including a Cardinal, over an international financial scandal'\n\u003e\u003e\u003e result.channel.item[2].pub_date\n'Sat, 03 Jul 2021 16:37:14 GMT'\n\u003e\u003e\u003e result.channel.item[2].link\n'https://www.cnn.com/2021/07/03/europe/vatican-financial-scandal-intl/index.html'\n\n```\n\n## Changelog: 24.5 (2024-05-08)\n\n- Support pydantic v2 models\n- Add missing parser/serializer shortcuts\n- General project maintenance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata-pydantic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftefra%2Fxsdata-pydantic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata-pydantic/lists"}