{"id":16611120,"url":"https://github.com/mitsuhiko/elementtree-rust","last_synced_at":"2025-04-06T08:14:19.837Z","repository":{"id":44958459,"uuid":"86467843","full_name":"mitsuhiko/elementtree-rust","owner":"mitsuhiko","description":"Port of the Python element tree library to Rust","archived":false,"fork":false,"pushed_at":"2023-05-22T20:45:15.000Z","size":67,"stargazers_count":61,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T06:10:16.181Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.rs/elementtree","language":"Rust","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/mitsuhiko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2017-03-28T14:09:54.000Z","updated_at":"2024-09-05T05:18:19.000Z","dependencies_parsed_at":"2024-06-20T19:05:58.702Z","dependency_job_id":"432c1403-a41d-42a4-92ba-b0e4802b40c3","html_url":"https://github.com/mitsuhiko/elementtree-rust","commit_stats":{"total_commits":65,"total_committers":6,"mean_commits":"10.833333333333334","dds":0.09230769230769231,"last_synced_commit":"8f66a86c86187afdfc4db5eeb902bf7b63ec596d"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Felementtree-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Felementtree-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Felementtree-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Felementtree-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuhiko","download_url":"https://codeload.github.com/mitsuhiko/elementtree-rust/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247451665,"owners_count":20940944,"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":[],"created_at":"2024-10-12T01:35:08.385Z","updated_at":"2025-04-06T08:14:19.814Z","avatar_url":"https://github.com/mitsuhiko.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# ElementTree for Rust\n\n[![Build Status](https://github.com/mitsuhiko/elementtree-rust/workflows/Tests/badge.svg?branch=master)](https://github.com/mitsuhiko/elementtree-rust/actions?query=workflow%3ATests)\n[![Crates.io](https://img.shields.io/crates/d/elementtree.svg)](https://crates.io/crates/elementtree)\n[![License](https://img.shields.io/github/license/mitsuhiko/elementtree-rust)](https://github.com/mitsuhiko/elementtree-rust/blob/master/LICENSE)\n[![rustc 1.56.0](https://img.shields.io/badge/rust-1.56%2B-orange.svg)](https://img.shields.io/badge/rust-1.56%2B-orange.svg)\n[![Documentation](https://docs.rs/elementtree/badge.svg)](https://docs.rs/elementtree)\n\nThis library parses XML into a Python ElementTree like structure.  It currently\nhas basic support for reading and writing with pretty good namespace support and the\nability to inspect the file.\n\nIt's not recommended to use this for larger documents as the entire document\nwill be loaded into memory.  However it's pretty good for working with configuration\nfiles and similar things.\n\n## Example\n\n```rust\nlet root = Element::from_reader(r#\"\u003c?xml version=\"1.0\"?\u003e\n\u003croot xmlns=\"tag:myns\" xmlns:foo=\"tag:otherns\"\u003e\n    \u003clist a=\"1\" b=\"2\" c=\"3\"\u003e\n        \u003citem foo:attr=\"foo1\"/\u003e\n        \u003citem foo:attr=\"foo2\"/\u003e\n        \u003citem foo:attr=\"foo3\"/\u003e\n    \u003c/list\u003e\n\u003c/root\u003e\n\"#.as_bytes()).unwrap();\nlet list = root.find(\"{tag:myns}list\").unwrap();\nfor child in list.find_all(\"{tag:myns}item\") {\n    println!(\"attribute: {}\", child.get_attr(\"{tag:otherns}attr\").unwrap());\n}\n```\n\n## License and Links\n\n- [Documentation](https://docs.rs/elementtree/)\n- [Issue Tracker](https://github.com/mitsuhiko/elementtree-rust/issues)\n- [Examples](https://github.com/mitsuhiko/elementtree-rust/tree/master/examples)\n- License: [MIT](https://github.com/mitsuhiko/elementtree-rust/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Felementtree-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuhiko%2Felementtree-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Felementtree-rust/lists"}