{"id":38725272,"url":"https://github.com/statnett/quick-xmltodict","last_synced_at":"2026-01-17T11:15:03.141Z","repository":{"id":229892345,"uuid":"774606918","full_name":"statnett/quick-xmltodict","owner":"statnett","description":"Efficient XML-to-dict conversion backed by Rust","archived":false,"fork":false,"pushed_at":"2025-08-22T21:38:32.000Z","size":4841,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-23T00:02:20.288Z","etag":null,"topics":["xml-deserialization","xml-deserializer","xml-parser","xml-to-json"],"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/statnett.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-03-19T21:06:30.000Z","updated_at":"2025-08-22T21:38:37.000Z","dependencies_parsed_at":"2024-05-18T03:30:38.390Z","dependency_job_id":"d952c20d-af19-4150-954e-6a32f30f783d","html_url":"https://github.com/statnett/quick-xmltodict","commit_stats":null,"previous_names":["statnett/quick-xmltodict"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/statnett/quick-xmltodict","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statnett%2Fquick-xmltodict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statnett%2Fquick-xmltodict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statnett%2Fquick-xmltodict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statnett%2Fquick-xmltodict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statnett","download_url":"https://codeload.github.com/statnett/quick-xmltodict/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statnett%2Fquick-xmltodict/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["xml-deserialization","xml-deserializer","xml-parser","xml-to-json"],"created_at":"2026-01-17T11:15:03.066Z","updated_at":"2026-01-17T11:15:03.130Z","avatar_url":"https://github.com/statnett.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quick-xmltodict\n\nEfficient XML-to-dict conversion backed by Rust.\n\n```python\n\u003e\u003e\u003e from quick_xmltodict import parse\n\n\u003e\u003e\u003e xml = \"\"\"\n... \u003cmovies\u003e\n...     \u003cmovie\u003e\n...         \u003ctitle\u003eHer\u003c/title\u003e\n...         \u003cdirector\u003eSpike Jonze\u003c/director\u003e\n...         \u003cyear\u003e2013\u003c/year\u003e\n...         \u003cgenre\u003eScience Fiction, Drama, Romance\u003c/genre\u003e\n...     \u003c/movie\u003e\n...     \u003cmovie\u003e\n...         \u003ctitle\u003eEncanto\u003c/title\u003e\n...         \u003cdirector\u003eByron Howard, Jared Bush\u003c/director\u003e\n...         \u003cyear\u003e2021\u003c/year\u003e\n...         \u003cgenre\u003eAnimation, Family, Fantasy\u003c/genre\u003e\n...     \u003c/movie\u003e\n... \u003c/movies\u003e\n... \"\"\"\n\n\u003e\u003e\u003e parse(xml)\n\n{'movies': {'movie': [{'director': 'Spike Jonze',\n                       'genre': 'Science Fiction, Drama, Romance',\n                       'title': 'Her',\n                       'year': '2013'},\n                      {'director': 'Byron Howard, Jared Bush',\n                       'genre': 'Animation, Family, Fantasy',\n                       'title': 'Encanto',\n                       'year': '2021'}]}}\n```\n\n## Features\n\n`quick-xmltodict` is a Rust-backed XML-to-dict conversion package designed to be fast and efficient.\nIt has a single function, `parse`, that takes an XML string and returns a Python dictionary.\nYou should be able to use this function as a drop-in replacement for the `xmltodict.parse` function from the original `xmltodict` package (used without any extra arguments).\nLike `xmltodict`, `quick-xmltodict` follows [this](https://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html) schema for converting XML to JSON.\n\n`quick-xmltodict` currently does not support namespace expansion, or the reverse operation (dict-to-XML conversion). For these features, use the original `xmltodict` package.\n\n## Performance\n\nSince `xmltodict` uses the non-validating C-based [expat](https://docs.python.org/3/library/pyexpat.html) parser from Python's standard library, it is already very fast.\n`quick-xmltodict` is nonetheless about 2-5 times faster than `xmltodict`.\n\n## Contributing\n\nPRs are very welcome! Please make sure to run the tests before submitting a PR.\n\n## Development\n\nThis project uses [uv](https://docs.astral.sh/uv/) to manage the environment and Python dependencies,\nso you'll need to have it installed in addition to Python and Rust.\n\nTo install the development environment and run the test suite:\n```bash\nuv sync\nuv run maturin develop --uv\nuv run pytest\n```\n\nBe sure to run `uv run maturin develop --uv` after making changes to the Rust code.\nAdd the `-r` flag for a release build (for example, if you want to run benchmarks).\n\nIt's recommended to install the pre-commit hooks:\n```bash\nuv run pre-commit install\n```\n\nThis ensures that linting and formatting are run automatically on every commit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatnett%2Fquick-xmltodict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatnett%2Fquick-xmltodict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatnett%2Fquick-xmltodict/lists"}