RXML is a python library to read and write xml files up to 2 times faster than python's xml included library.
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_node = 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_node.children:
# do something with 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-2.0.0.tar.gz
(8.4 kB
view hashes)
Built Distributions
rxml-2.0.0-cp312-none-win_amd64.whl
(171.0 kB
view hashes)
rxml-2.0.0-cp312-none-win32.whl
(161.5 kB
view hashes)
rxml-2.0.0-cp311-none-win_amd64.whl
(172.4 kB
view hashes)
rxml-2.0.0-cp311-none-win32.whl
(162.3 kB
view hashes)
rxml-2.0.0-cp310-none-win_amd64.whl
(172.2 kB
view hashes)
rxml-2.0.0-cp310-none-win32.whl
(162.2 kB
view hashes)
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44e311a3dff21812dad558f6dfb77c5a6914505e49e3d86f11b77e690123ee0 |
|
MD5 | 17229b35eb0fd9d8640e2901267b522c |
|
BLAKE2b-256 | ea1744eb1301bf9e2a43d5cb1ed63f31bd5a5220425edde3531cfc65e82389d4 |
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0315087a877187b06a080b65e65a65618dc30033a0cd0d0d6794d6b975c57fb9 |
|
MD5 | c691a330bace5e095496da292695a97f |
|
BLAKE2b-256 | b4db06a9ff6c05f4659b8f57b7460d244f4f634f3567d08ff52e5983c2f8145b |
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f45a8fa7c444b637e6369d118138e3fd668d6c5aab9fc6472548b1fb4dc77d96 |
|
MD5 | 897a11e65ba092e8a37b4836537ae68d |
|
BLAKE2b-256 | 465cdbd6f4b6904f747261a608a1520408badcd692cbdc597cdd7cf3de109fe7 |
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2555f328a65de37959b8fe30f4d34a1e5c05187452f1bda6a59ccc6bc733f283 |
|
MD5 | bdce80ee63bb4656ed95558d5c31a3b9 |
|
BLAKE2b-256 | 23891f7771022857b9670aad6e9a76dafb1a79f03478ff090076e2e758f124f2 |
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7def57ec2fcae5bc195b9baf09c5977e9f5003af4bb14408887a6f124975640 |
|
MD5 | ed8a073538379fb3a15be4ffd9b4904b |
|
BLAKE2b-256 | 3bebf91d965fee7d948c20a7ba4b02d79381951736ca3dafbb287ad68c042cff |
Close
Hashes for rxml-2.0.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f846af58a5bb8929402347a2b81e849a4964a9200f93ae27d5e61613fe04b02 |
|
MD5 | 3780226887faa4df1cce6d8c345a0adc |
|
BLAKE2b-256 | c2de742eed517174ef3a368d3d95daae3312ed0f0c0f1c6bf233ddad2ffd240a |
Close
Hashes for rxml-2.0.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07b0b28b066d1efd230c7d64b3a73c0b388218ad7a456bff72c371ee4b8440c |
|
MD5 | 65011804d3a09ec6f25f1ecf7b3c07c0 |
|
BLAKE2b-256 | 08e81ae3f9828ab0951d98e5f57e6ba5a6a590f40b0f9d57e64c31600af02bcc |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d630df0a1720b15f3067e0657754617308d5947911b7563777177dbd5b6b8ff5 |
|
MD5 | 59366f7aa8ca1dfde64dd01a7974f9b5 |
|
BLAKE2b-256 | 36763ab9dd9796a92e588023b0d5be4dceb496c159f32858723511045c76237b |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2c0b15d0d47cdd3b7989b7a89381ecdeecb886804e7407c95c63ac56f493816 |
|
MD5 | 5497387e160d59038e528478eb1ba241 |
|
BLAKE2b-256 | 61b60d53c6c06d63a8691a06c88af34da3ddb0f5bc7808f838f8e083213e6d4b |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8733cc4dc84cfc9ce62794807da5e4269d4a4f6922b09b8c37f327ac3bf71f9 |
|
MD5 | df85870a0697caf61163391686e9c94a |
|
BLAKE2b-256 | 9983634712ceee73025d4b0711609a441fd292ef8139b229701c6bfdd5b9067f |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bfc14aef9655e89ba1b92527e50124a99c258d78a0b99a90300ef7a8a57ca11 |
|
MD5 | 733110d84b2def33ab19a9936271c6db |
|
BLAKE2b-256 | 9c9a119f6b3e5c868f5b78e7d9b7dde0e11015fafe6fc6def558a185397bb131 |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15bc071235599c18100bde11bf906f0dd6b7c235c0d49f0b9e7f12421d119095 |
|
MD5 | c0395ca26dba74ab45847ff29a4c25d1 |
|
BLAKE2b-256 | 8cabfbac67304bc33f9e164aac4323c806c6dee7b8608e5da63e9d51b6d67bc6 |
Close
Hashes for rxml-2.0.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 418b816942521e07cbd88086500a544864b0fe71ac29962a9206e2353859e5f6 |
|
MD5 | d5405988d5f8058fb47cd3c8ad8ed7f9 |
|
BLAKE2b-256 | 891509bcc764424c23c200f0c8bec7632c805a30f3cc0c2548da7f25ebddffba |
Close
Hashes for rxml-2.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2334c72d62e5cf4cdfc0803d77829cb71fa3473fc375ec780463f199b61d1128 |
|
MD5 | 4fbde852536c2a4a7f1f975d5f0cf6d2 |
|
BLAKE2b-256 | d948c1bcd48e0ca53b58125245c350764865ead1cd16ebf9f919a7c3b0fe9875 |
Close
Hashes for rxml-2.0.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 796d79e270909af59ec2bdc69804a1ef2ea6d0130c5fd96f628ee02b90f74d50 |
|
MD5 | a91d3d5304ee79ace9456009756db7f9 |
|
BLAKE2b-256 | 49aebb3e203f4cd909a9dce5e2724d581f3016841dd96ed909ae323405957fc3 |
Close
Hashes for rxml-2.0.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bedf4f1c84a0388131af684bee91b8bbaa4e8c508b5fe0972cd35c3a2b8039d |
|
MD5 | fbd04deebd5b06d8ad14768ac50a3a6e |
|
BLAKE2b-256 | 868f06aadd478f896f9e802c4a378d8ae048f5e609a1211487f188d5d0646cdb |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4725cba2ef79f5fe05fc6360ba01b6c9056aeb89ab43f22c74717368e895a803 |
|
MD5 | c71eedf8ddadbfc0d6fa6ea1f6282d75 |
|
BLAKE2b-256 | c0c26c0dd09df8e5ce4ab8a41eb006f9bd1c906ff79626bc7704c78e7ce10222 |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d710dc4e15b9109504eae53f5f898684ecd187bb89d88d27a6cadca5da0e6d4d |
|
MD5 | df050366b626befdfb75973424c759b7 |
|
BLAKE2b-256 | ff39e1fb796d61350c89be189f3d1459c148c768097b2d10ddb90c310e2a28a3 |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4a9923e4f2b0dea08d66eaa5859e156fe2aea90fca0b038a53a6597303e05bf |
|
MD5 | 0e3b057eb6f8ab7d0e01a10e7ebaf17b |
|
BLAKE2b-256 | 6181685574f33b4bdff994ea9f6fdc38c9244f0344a35cb34ed9d27c2a486c37 |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15bc77da5d10fd6564384f2400e0c3666e2c256285d24060c5127b90d91621e9 |
|
MD5 | 44bf7b619e33745da0941c98ee8f7928 |
|
BLAKE2b-256 | 6fb62867b377f65e9215f9a51a893db40331a7088d7db841dc5bc24c4ad890a8 |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 677bf9a538516351438bf78aa10fabc5fea783e584354de22a61abeba0574d8d |
|
MD5 | 5b74af13e1460632a835e8b5f17c012a |
|
BLAKE2b-256 | 4107f9f30cb232aca5fd63acda16259f61c561dc4cd8bb63cae8d8b9db2ed355 |
Close
Hashes for rxml-2.0.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bb30dbdc52b262c4a0d1bc758d89ad60248dca0ab69b1715cae0ce1774375e0 |
|
MD5 | a4aed6ed3b02a949c4a137e69cf1e76d |
|
BLAKE2b-256 | a3f07eae01fdd3537503b616b4b2705048a16316863a17405855d45960ebf84a |
Close
Hashes for rxml-2.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770f715df3c2c89b439e3afde52ef4b9180c97af609931602982459f6113b882 |
|
MD5 | 4c486c6fc1a9402d31214bdf5f6fbd73 |
|
BLAKE2b-256 | be1b59dd98864bdcfa148903352fd17508d825573de82e76f4c9d91a58993213 |
Close
Hashes for rxml-2.0.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234f6de42217b023cc7a73e6266ce8d0668b5d8551894ad0b590a2b2869c7120 |
|
MD5 | f752cec37fd3034a191273d31a0000f1 |
|
BLAKE2b-256 | 2113fd5452b94b4c17a16be4c2be5896695f6301a5a0ff2bf337f82e4889f35d |
Close
Hashes for rxml-2.0.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff510c9e37342083103ddb2cd68b804fcbd2374af33cd48a46d15b268004a645 |
|
MD5 | 305668224453cbf25e8c28f64b207c32 |
|
BLAKE2b-256 | a0b3f28a92f4291deb8fa8a38dcfd1e158bdc544873ecce1614652a9a6ae7f96 |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b869730b2b8a885d3c9ee0e94781e3dc70d0d93422b49f1626349c7bc3c7a239 |
|
MD5 | 5f3a1beed4da649bfa1ce8f5f195ace6 |
|
BLAKE2b-256 | d4a07de107344098b7b105b106c36523e8d953fe51e39f63274b8650ce636f24 |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd2fc78ed44bd80dadd491e778761a2917c2ffebb46484377b2f17af551c8f8 |
|
MD5 | 4a7a317f0dfc711e2e0d9e9482a50216 |
|
BLAKE2b-256 | f1b484dd03b712fec9eb06f52feb9eaf464ba1cebf429eccec22aee3a61d2c1a |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67fdfc20c17607c90406f176fc210d4b7f230bf964a5895bd60681cfd13f260c |
|
MD5 | 56883c1ff962821b40239cc415515070 |
|
BLAKE2b-256 | 198d37c75f6ebe996c080bcd118d3629cf7d1dc8f50824ddf7f416e97255d155 |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a67b2680ecdf43bd53e772dab2f92186b02839a5faf8b8639b9aff835b7b041 |
|
MD5 | f30cbae351fa8ab0dc44de7642f9a456 |
|
BLAKE2b-256 | 9814148cc24fbcc0a021ceae60b730151fb4e401132784b709b8b0e311503637 |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4045431060510f0715de1e15f0b3b535ca1412fb2f1bbec4c4c4f34ad04a69f3 |
|
MD5 | f887c79de7ac3c9718c105fc10baeb9a |
|
BLAKE2b-256 | ab674b2cb28c2a50e5773154033df11954bb11324212c9b87ad8c2fbf5cc950f |
Close
Hashes for rxml-2.0.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3f9e803fba3c3e80569547c92b25472ad1d72030227b59fec67ce2782ea7a5 |
|
MD5 | b17b735c136211bdba37083ae9180b5d |
|
BLAKE2b-256 | 2d95b326b851e26d82836ae51f6e2fec35a229881bf5e30be6d92c1fb7fbca3d |
Close
Hashes for rxml-2.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76e16e6881d89a146f7ec29131dbcc53a0167de945d61eff9c4f592d95584c96 |
|
MD5 | f49ad7c5382dbca47926674efda6a419 |
|
BLAKE2b-256 | c657e0f3b29018fd4431397525f9649735ea3b9a1a54e4953d6514400633ed80 |
Close
Hashes for rxml-2.0.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eec5053f6980c0c00da2f5eefc6af7d711bf0b77e1e5eff339ba0aafab719a9e |
|
MD5 | 5f11aebc7077da232649bb046c2e2899 |
|
BLAKE2b-256 | a952484007f9da7dac0ead104094760c972d916056b8fffeceba54d5f40cfe92 |