A XML parser for Python written in Rust
Project description
rxml
What is rxml?
rxml
is a simple python library to read xml files up to 2 times faster than python's xml(ElementTree)
library.
Installation
To install rxml
you can use pip
:
pip install rxml
Simply as that!
Example usage
To a given xml with test.xml
as name:
<?xml version="1.0" encoding="UTF-8"?>
<note example_attr="example value">
<to>
<name>Example Name</name>
</to>
<from>
<name>Example Name</name>
</from>
<heading>An Example Heading</heading>
<body>An Example Body!</body>
</note>
We write the following python code:
from rxml import read_file
root_file = read_file("test.xml", "note")
where "test.xml"
is the file_name
and "note"
is the root_tag
.
After that we can simply iter through the children with:
for node in root_file.children:
# do something whith the node here
You can also write it to a file or string(refer to the .pyi
file for the args).
from rxml import Node, write_file
example_node = Node(
name="hello_world",
attrs={"example_attr": "example"},
text="Hello World!"
)
write_file(example_node, "test_ex.xml")
Node attributes
This is how the Node
looks like:
class Node:
name: str
attrs: dict[str, str]
children: list[Node]
text: str
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rxml-1.0.0.tar.gz
(8.5 kB
view hashes)
Built Distributions
rxml-1.0.0-cp312-none-win_amd64.whl
(178.0 kB
view hashes)
rxml-1.0.0-cp312-none-win32.whl
(166.2 kB
view hashes)
rxml-1.0.0-cp311-none-win_amd64.whl
(174.4 kB
view hashes)
rxml-1.0.0-cp311-none-win32.whl
(166.7 kB
view hashes)
rxml-1.0.0-cp310-none-win_amd64.whl
(174.7 kB
view hashes)
rxml-1.0.0-cp310-none-win32.whl
(166.6 kB
view hashes)
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20d1d6742ab73388be109e20c984fededdc739b44523aa80ea9e1b21653cc116 |
|
MD5 | cb99e5efec56bc3a3305ba52a1c568ad |
|
BLAKE2b-256 | ff4bbf39ca0c3c70a98c47caeafa2da04267960f467a01716d8167fffb2f8019 |
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80bb6454a7525c82f152b864f2507fbb114620678c05c315f65fc02a811b8186 |
|
MD5 | 74e3f191a5b5cf76200ae3dad824b5d7 |
|
BLAKE2b-256 | c03ecfb6cd1400a30d8ce6f5d3a3be5d7c91a772d928cabcb3298316eb94e51c |
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 741d1f018c2c22a2c810b240e15732ea59282faca82c4d86d1be6fcbd83de8de |
|
MD5 | 58f0a2f758e8bfc04e8e0f5be56a5daa |
|
BLAKE2b-256 | 485fcc9dc8b52d72a1b4f2b1669ff702a3f76ec65fd07c8fd41cabe928d77fc1 |
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db66035d696b0df5c07a815913ad169348bbf85f9fa32540de97b3ee708340cc |
|
MD5 | 3594544caaccc22221881f3789a39094 |
|
BLAKE2b-256 | ad5c473ce0ff2de3f519b22ec6b079a45db21135bf5bd559338abbe1b0f6f62f |
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071502246ee8c3cfce0b2adc07ab0024adb5ff8c44f75a37bd584ea1330a40e3 |
|
MD5 | 082a1c5cbf557e37545e613c5c07a7ac |
|
BLAKE2b-256 | 3541873859661e3c1e3e641f75ca16e11a2d85fa8d255493794699d76580cc3b |
Close
Hashes for rxml-1.0.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78a3c94577fefe9c103362dfa3a6a04747000ba65c825a308623610aed49d65d |
|
MD5 | ea1e41746b6d08bbbfff3506e082ddb2 |
|
BLAKE2b-256 | 684b0075faf4168204b0abed3996323766ae3eea0446d7d291098d6cec09b740 |
Close
Hashes for rxml-1.0.0-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad4f519dcbe3f5fe72aed9eb9e3f8d5693de043377a6f774dec309d5be67c579 |
|
MD5 | 5d6bf10b96d0db49f2308de9f904e9ad |
|
BLAKE2b-256 | 6acd1ea77965e282e80176d267dfc79647d6a36d754bf8b0c36ff25ad79c5d98 |
Close
Hashes for rxml-1.0.0-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc98cd477fb29c8f844f791888ea1ac8569e1e958efd15be5ec844f0d851985a |
|
MD5 | c56c51ed0d101da2dee84dbbc3db7062 |
|
BLAKE2b-256 | 65d9573a1919e4f0c0d37d54050d0ca9e72b74dda202169d543c0bbbf67307cf |
Close
Hashes for rxml-1.0.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f41b2a712ebd6adc752ea64301b3fed1c69ae290d0152619041e2516b27137e5 |
|
MD5 | 56a8ef2956e376acc6824711a240f340 |
|
BLAKE2b-256 | f8bf839ce03379c5f49433ccd68f9305ed1d94f09c43ffaa8e12286d802cb313 |
Close
Hashes for rxml-1.0.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218ee5c2a5ea6bafbe0d344ac98f263e5c3a84e896103ff61766ad119e396461 |
|
MD5 | 57b53c4da20ea3993596eb372b203f3b |
|
BLAKE2b-256 | 54025768909bbde36a98adc733906a1e0f7e0e3d91eebf245d7977d4f1b98dcb |
Close
Hashes for rxml-1.0.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2d9c6308fb502bde7dedd483b9b18811cbe152d35d0a97dfb7d9f311e4fe0f |
|
MD5 | 675625caff09f03d1d7323748c30ace1 |
|
BLAKE2b-256 | f852d87b3500e787fa00f0a8aae7c27a12682022ce937c9ab2db28a811a647d7 |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 973187ae09ddfc612662a9a40ce537fe960dfd8a35d2353b41edb4f56c3904ff |
|
MD5 | a1fb43d4fde25b6781d0b37bcbfd387f |
|
BLAKE2b-256 | 23143cd2239be3a3cc681c4fd561edfc8b88abfc61a36425815b86518a51d1b6 |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a497ad3ce55480c18a7f59005d3b08c83ba30f3d9952ca98d51d6504690dd7ce |
|
MD5 | 4f5bf81a600775ac5aa01eae761e8829 |
|
BLAKE2b-256 | 854a026e565a87b4ec9b7630898661ca692731162f47d4e92cc16fbf722aa20d |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15197c09a4c2ff5e0b1c6c5627a9b113db7726b43ce0306a49d6f16b0723d9dc |
|
MD5 | bd753906bd2be9a5364d3198361f2e8b |
|
BLAKE2b-256 | d50acc47ba793f46c8cda1803589c601253f22480ad9a7089f77d6c4f7a53299 |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96f16ca6ca6608e984f4733a7a264ed849e90b0cd4c7ce9b75362ddd2e618980 |
|
MD5 | 04759d40f537028bd083ae758fd7715d |
|
BLAKE2b-256 | f5deaf72885708186e9c7936deb0c7e4773daca47e5c5cd49cd68634cc7e92a5 |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0d37c7736d58a57252d8a2409623d2e2335c52ade501f4ef7397354d4b6865 |
|
MD5 | 01b02f71c20616cffa7f5c9ecc41fc01 |
|
BLAKE2b-256 | 4ac18d4ce71093c63639f6717a4337fe3e5e28cf011b61cb786984d9dbdcb588 |
Close
Hashes for rxml-1.0.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2338fb7cd07989ab01462a8815c26113dacbce4da3ebd955d6f2359e61af4e54 |
|
MD5 | d212a4771dd3f05beb3980e1291a119d |
|
BLAKE2b-256 | c836e525c0ffacea168922b1417cf12ca3e226cf4823a8515ad5b497e5eff535 |
Close
Hashes for rxml-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a795b385412813718b0d1e3dfa80c936e7de6d48b82ec4ca326a8627540949c |
|
MD5 | b138d82f6634f16431e4f365089ba2a1 |
|
BLAKE2b-256 | 41ef700e270dda96b3577dc47cb90eaf230c054658be24e09b46b2b86204d14d |
Close
Hashes for rxml-1.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17bc39f4f6ca4244f22d08937d2a4198831e0cc326a1d8f64acf29ade1682df2 |
|
MD5 | 6cdf2842a2400a5f4a0ca6b665e140df |
|
BLAKE2b-256 | 8e0d25d6fd25363bed34868572c783e2eb9d11a16dbef784e919cce7edc24554 |
Close
Hashes for rxml-1.0.0-cp312-cp312-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e385578e1171fccfaa15b4f44bf8e4e2e59f38feef7086e4ea989606fa5014c0 |
|
MD5 | efbbf78d10295bab2922f8765a546bea |
|
BLAKE2b-256 | f90c01fc5c1d20547c275d84b9327ed2ce55aaf45df9c7059a5046a83d9051ef |
Close
Hashes for rxml-1.0.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5506be9a41cac0b6fda6dbf286f12bb4567b3b5e98b23a7ac5904c45892fe8bb |
|
MD5 | cb1973a980d49e3ed0df7644c2b370ee |
|
BLAKE2b-256 | a2595270b6b7c60eb3cab73a1a9a11f98f067b079fe54af1887062e7aa9d1436 |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c59e8182e2630f518e771fae715c06a421a912825d7e4194a7cf4f0f8a17bc |
|
MD5 | d2ae11382b75fe235e2b95c8befcc5b6 |
|
BLAKE2b-256 | 5008518f81252b67116d249cd09990b43c35215e483e13972be7636e8edbcf48 |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 516ea8975c787ecdca510c1565a804ae677f014d467f3d5f24ee88f1b4896ab4 |
|
MD5 | 610b50714fac246d530ce1af50fee299 |
|
BLAKE2b-256 | c1e4c016751a15ba61f5ffa52542a067921b3698e0ee5c59340f4f6888628e25 |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0fc13bbcffa2aff4724ab02c5db1f1005082e3a2d8ea7a5200e1280ca4a8ced |
|
MD5 | 375fe0cf1c663bfa50b2cbb5ed59a663 |
|
BLAKE2b-256 | fe6034ae6e790159272815ad502939b5d634306d44708284844f7abb7a80ea00 |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb69cc2ea1431abc22cbe37d6588f7430e7e931f4f4dc6b35bb293f187901a40 |
|
MD5 | d6afff6da5c85ffba7be5de873a4eefd |
|
BLAKE2b-256 | 361d764c4cd402385abb08fb9a2f27364d5e1a0956103e5d5bcd7e51a2a48ddd |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d532800444f5d8aa735e4664b32a0912ce187d857f889ea7b3f95ef6d85385f1 |
|
MD5 | 26499114d50409ad546469f71638bef1 |
|
BLAKE2b-256 | d2c0ffeca7da83bb2e7b7c4bff44186cf8236c3446025926afd33b95058e5009 |
Close
Hashes for rxml-1.0.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ba3628566612b7b84281743ecb8d31a61b17f8e1029a8f4042981819cb610dc |
|
MD5 | f0eb53caf6d312b8c7a0449e57ece6ff |
|
BLAKE2b-256 | 59c70eab89f3988133a6b56a0885a59126c06dfd9e17e0635222a48b1e5b9a55 |
Close
Hashes for rxml-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4de694626f064c2565d2245b4d93b3841d69f49585e7dcb569d479cbeb67f639 |
|
MD5 | ad9c92faade9e6962bcfe0e5d058bc57 |
|
BLAKE2b-256 | 91599485f904614d6de508c8e55c01d6d8f533f7290d8801937cb54c6c87a014 |
Close
Hashes for rxml-1.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14199b9f59705ac9bfd4e701e735fcc81a5e08d679038badb53d0ec8c36d92d0 |
|
MD5 | aab20a041c6d0af1afb21b105cc7264e |
|
BLAKE2b-256 | fe6993cde156a728a48bec5f3aab35e835b064dc06a41b5acd4feff4fddb8ffd |
Close
Hashes for rxml-1.0.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f827f7fac5682cdefe63450d93f89018f87dbd750c8c5a8101153eb156f3d9b6 |
|
MD5 | 90f458b4e02f39bcb94794a8b22cb4ff |
|
BLAKE2b-256 | 83e2fad65783640bf95d3aa899e664a5acf077cdb7e2b0e3d5a7f92575618ac9 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0646316b48ff63cf63fb71367424442421bfd001542f81c420dc08c0aefcc1eb |
|
MD5 | 58b05a3c73cc698c16d66c898f23b876 |
|
BLAKE2b-256 | a5183cbdcf4db91c308211ced70844518c2d6fbc35fced0505b7b0329c54beb3 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fcebee5f73783b401afb19fbb6f05774969cf17bd8852b6f584aaeab2c94462 |
|
MD5 | 6418d40b57b8acc558f693e3d50d2b4d |
|
BLAKE2b-256 | 453d34f5a9086eec8d53925afb55e79c7294e22a59b9b0c5871603805fb77be9 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99800f78efbcb5c62b98adb0a228a871255761c1a13c2b4e02c02cc9ca1fbbaf |
|
MD5 | f158142115cbd68deb6d8741bf869042 |
|
BLAKE2b-256 | 5f2353e4dc75f831176f09357bb660790d7e23fd738476eb9bc000c9c18ea9c9 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a08304dcfa4043e91e06fd0a09808a1fb0f14b226d9058875a5aa4e5740780 |
|
MD5 | 474c4c6a31d03bdf73a4f37e04ad0afe |
|
BLAKE2b-256 | e6f572ea1299901e10eb3e534e4a70944ebb3f8e4cf4de0f2c1338432a1aa587 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fffea2a1e58894522d600f81aa98847fc9f501839767405730af6359812d871 |
|
MD5 | eb74c84ad0319a48db091bc65c390c30 |
|
BLAKE2b-256 | 8e0af889ccdb1419b2018549dd03bb245238c0e40f799cb62422d90f9bff82e1 |
Close
Hashes for rxml-1.0.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825b874b1d1e4970a3f1e4f26a81efd68d1a2db43242c78407e74f8adf3333f9 |
|
MD5 | 12ff387ded3fef5954c21cb9ddbcac5b |
|
BLAKE2b-256 | 9d9698cebabc4c998fe26514fcfcd1d0973760b4c0709d728f21e51b9542b6c3 |
Close
Hashes for rxml-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e408c12eec8f2478092ebfd426206137b9b57d9cd116a7a6f2be4cadbffa532 |
|
MD5 | 0bf0df77aa07401cff5ef1fc17b8dbe0 |
|
BLAKE2b-256 | 5ad747b89a8af8b651206bdc2bd333f53e824b5020c92804fb3d4132a9d23b6b |
Close
Hashes for rxml-1.0.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ba33aab1ed130cd55213a2666d3d6b5591cc866afb612da874836c742d0ed1 |
|
MD5 | c7a0e5851d29787f67d7b816209092fa |
|
BLAKE2b-256 | 615f7a824130e93660237ee8d4bd0db17629d333412a65e89e9af0c3a8965f72 |