{"id":23317580,"url":"https://github.com/tefra/xsdata-attrs","last_synced_at":"2025-08-22T16:32:00.380Z","repository":{"id":46280660,"uuid":"374761516","full_name":"tefra/xsdata-attrs","owner":"tefra","description":"Naive XML \u0026 JSON Bindings for python attrs!","archived":false,"fork":false,"pushed_at":"2024-12-01T03:40:04.000Z","size":57,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-01T04:30:11.247Z","etag":null,"topics":["attrs","bindings","code-generator","json","parser","python","python-library","schema","serializer","wsdl","xml","xsd"],"latest_commit_sha":null,"homepage":"https://xsdata-attrs.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-06-07T18:20:18.000Z","updated_at":"2024-12-01T03:40:07.000Z","dependencies_parsed_at":"2024-03-10T11:25:26.430Z","dependency_job_id":"154581e0-a48f-4df5-9292-c55167221430","html_url":"https://github.com/tefra/xsdata-attrs","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"649f64149a386463155f795b0d7011e5513ca57d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-attrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-attrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-attrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tefra%2Fxsdata-attrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tefra","download_url":"https://codeload.github.com/tefra/xsdata-attrs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230615318,"owners_count":18253950,"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":["attrs","bindings","code-generator","json","parser","python","python-library","schema","serializer","wsdl","xml","xsd"],"created_at":"2024-12-20T16:34:40.423Z","updated_at":"2024-12-20T16:34:40.932Z","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-attrs/raw/main/docs/logo.svg)](https://xsdata-attrs.readthedocs.io/)\n\n# xsdata powered by attrs!\n\n[![image](https://github.com/tefra/xsdata-attrs/workflows/tests/badge.svg)](https://github.com/tefra/xsdata-attrs/actions)\n[![image](https://readthedocs.org/projects/xsdata-attrs/badge)](https://xsdata-attrs.readthedocs.io/)\n[![image](https://codecov.io/gh/tefra/xsdata-attrs/branch/main/graph/badge.svg)](https://codecov.io/gh/tefra/xsdata-attrs)\n[![image](https://img.shields.io/github/languages/top/tefra/xsdata-attrs.svg)](https://xsdata-attrs.readthedocs.io/)\n[![image](https://www.codefactor.io/repository/github/tefra/xsdata-attrs/badge)](https://www.codefactor.io/repository/github/tefra/xsdata-attrs)\n[![image](https://img.shields.io/pypi/pyversions/xsdata-attrs.svg)](https://pypi.org/pypi/xsdata-attrs/)\n[![image](https://img.shields.io/pypi/v/xsdata-attrs.svg)](https://pypi.org/pypi/xsdata-attrs/)\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 attrs!\n\n```console\n$ xsdata http://rss.cnn.com/rss/edition.rss --output attrs\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\n@attr.s\nclass Rss:\n    class Meta:\n        name = \"rss\"\n\n    version: Optional[float] = attr.ib(\n        default=None,\n        metadata={\n            \"type\": \"Attribute\",\n        }\n    )\n    channel: Optional[Channel] = attr.ib(\n        default=None,\n        metadata={\n            \"type\": \"Element\",\n        }\n    )\n```\n\n```console\n\n\u003e\u003e\u003e from xsdata_attrs.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- Bump xsdata minimum version v24.5\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata-attrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftefra%2Fxsdata-attrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftefra%2Fxsdata-attrs/lists"}