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.1.0.tar.gz
(8.4 kB
view hashes)
Built Distributions
rxml-2.1.0-cp312-none-win_amd64.whl
(175.7 kB
view hashes)
rxml-2.1.0-cp312-none-win32.whl
(162.0 kB
view hashes)
rxml-2.1.0-cp311-none-win_amd64.whl
(175.4 kB
view hashes)
rxml-2.1.0-cp311-none-win32.whl
(162.0 kB
view hashes)
rxml-2.1.0-cp310-none-win_amd64.whl
(175.3 kB
view hashes)
rxml-2.1.0-cp310-none-win32.whl
(161.9 kB
view hashes)
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e3b35b63cc5340d8ac77e8c1f445474d22964ace842d5ee153b18752af1d87b |
|
MD5 | 342ad3cb1ea21cb03b76428f1e33c22a |
|
BLAKE2b-256 | 168880582fb3e26019f8ebcef3471be844acd95cd744195680adf608804d5308 |
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec7a9998c2bd9097bbdd249b796cd289851e8746514f4e8c9a26ba7d84dc1d90 |
|
MD5 | f7682a113ce144e80b7b2199d182c4db |
|
BLAKE2b-256 | e764a1a851b1b1819ada16554ac12e03bcd8c53a5c74a021393242330d350fcc |
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaa345a9b16f1c60ea4da8c4faa07a7cd82f49bfd891aab550f151c4eeaf7792 |
|
MD5 | 3c5c3f4d7d87a652efe1c46ff43eb4e3 |
|
BLAKE2b-256 | 2286f21ead7ca2b2895ebca0a93b83396b69e5b392150070ea6d0bf07003f226 |
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a1df0e3946a87673fc02fc1167d982e72441bfcd774fc3f09d7612feb37458f |
|
MD5 | 930aa9bd6f8ef4798d4e7ce216a1604b |
|
BLAKE2b-256 | fcb7b191673e7975ebde9a337ab82449732a262ae26586f9090f573bb6f7f951 |
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82fd5d797178a79dcb21ff75e3a07af4467a9cd7c4053a632513f9e7169e1134 |
|
MD5 | eb88293aec85da993699f43750b8db89 |
|
BLAKE2b-256 | 5cee9e463f97f5bdf4bcbaf41f33b0d877ed40a9c2659c31200a918266833f23 |
Close
Hashes for rxml-2.1.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e35eaa842167fa623e27eeab68399eb32118b26a18c7c50ce16d7232e944161 |
|
MD5 | 14de0c6e48663cae0b65498195a56966 |
|
BLAKE2b-256 | fb8e8ea1bb114b3dc71035c93a3c2fd877cf69b2f84ddfa2596cc12bc2f43ca2 |
Close
Hashes for rxml-2.1.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7feb9dcad7d3180a1902119b2b3f8d2ef4754c1db43446c2e7f2c631a89a7b |
|
MD5 | 3ba3cfa11616a37190013d0fb00c6e8d |
|
BLAKE2b-256 | 39cf85e83a13979d8f161a4d52cc9f935eb02b7f367fb404c678920cfa70b8d8 |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d54f63b36f5ef3b72c73ae7dc13dcddd3487fda0143a386052c0a79ab3360c |
|
MD5 | d761d43c08b87b33e2dce73efb9b4e86 |
|
BLAKE2b-256 | 7be0b7132846c93294e76ebffa36c9865eb9b9eb1375d34932554ea51ebc2356 |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f29e1edcba05550a7d9258d3e0b7ace664bb9c49d51932b057c47b5ddd1bb728 |
|
MD5 | e296e21d32f8d45982bf04c0186e20e5 |
|
BLAKE2b-256 | b42a95bc624ef08f2e38cef0fde6ae3c320a916d965798d267edc3bdd6c71147 |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75ec304514958339c0580fc752160ddb9993cb9be1dbfec5e7db520489584932 |
|
MD5 | e53e998efface702085b6eb2d6baa00e |
|
BLAKE2b-256 | fea6e8ec59cd66e750b0bdb8ead64cc6b8e120ce276cbad077819778ebe8e12a |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cff7a068449b15136afd0e68a0aa0a164456a4a883440cd5e4fbb2871fe812ab |
|
MD5 | 6bb45a14d7c9fd9bfa70045aaffb3ab7 |
|
BLAKE2b-256 | 306935c5133597a1a5a4f2a50cd8bea69c86f17403ca04ab5acf8881d15fee91 |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48da4fa6d364b92bcc12076dca078bb787297700afde9a06236d85dec84a78c1 |
|
MD5 | aa29a25bf866538ba7d640582498c5d8 |
|
BLAKE2b-256 | 35285fb76ff6e085ed01d69504b814d2065b0148c72f43d3cb80335a9fd650ae |
Close
Hashes for rxml-2.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b91638e2dc151d55df41c4aaeb947d2c5bce33af52b5c641de715b37bba17c89 |
|
MD5 | 13ba402b3eea219ad55acbd25a320f27 |
|
BLAKE2b-256 | a09478777a39376ec602923222cd9b9dab1990a5594eec8bba77165523fb9154 |
Close
Hashes for rxml-2.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0ac8b6b9af1e2ae05a3bb70005681f6588d5bdce22ffe2db858636d267d8923 |
|
MD5 | ad234b11d829de1c149da38e827793f0 |
|
BLAKE2b-256 | d3b6346406b68614adc318e7d1c4b0b150839f0484d87c9ac0bacb7d71762bd4 |
Close
Hashes for rxml-2.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fdfbcd69222ec865f716bb77c4faa4fc0b75b447665493b695e2aca9840e2ce |
|
MD5 | 28f40583731d58566a5365c394bd4f24 |
|
BLAKE2b-256 | f602a22fd65aacc26b21a8d8cfc4a1ed0137544ded51fbf4cea13df0e1c2b4f4 |
Close
Hashes for rxml-2.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeedc9a2a2bc6ea6b5f8982865502d3d6c7836e5c5d30e29aabb5b4368f76cf6 |
|
MD5 | ccfd302dcfaf71f5f1391603c75ff9f9 |
|
BLAKE2b-256 | cd6ea8dad420a59e68781d8ccaa556533e955d2595fb49c25bce4c150c929d3b |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1090ff906341c6cd029a851f47895f96b03d3fd88ab19808c12b6602f664172 |
|
MD5 | fcf59b4b1adddb294b68bbbfd621f424 |
|
BLAKE2b-256 | fc937b0c34758715dcca191dcaa3d243f7eca6d648f5dd6ff7292d313d87bfeb |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f91148607ad947b0b098265dd4e59137d3de7517b6b9a55b4b5ea15ca899a25 |
|
MD5 | 47a2b669903e036c5dd0e709f6bcc024 |
|
BLAKE2b-256 | 27a610e7e166bd77a1813236ded8b2f8a1495030e9a237d589947ef047d46b91 |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31bd9c7b44fe98c5e6e7f4f0b2588cca5bc4b6c000120785f6424bb8448d57c4 |
|
MD5 | 7d5a68e044c8ca2e25888260c4023d19 |
|
BLAKE2b-256 | 02f0dd3b498c4d8bdf565bbf55ffc9e906ee6d5a61fa6a42f4af1c81bef32fd0 |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19f3075f6dbec055d1b84f74b2718de1153dfc61db248a41e17dae53ff5605fd |
|
MD5 | 46c74c2d46abe0ec93f729a17faf5568 |
|
BLAKE2b-256 | 9cb2a01f9ff300bf3795212783af2c108685d214a39a6d2d0591689830dd076c |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91943891c7f160ffcc831e76eecbf6d70ac2cfd8b13657430ace1047bcbb52de |
|
MD5 | 44d302038b0ac055ae9e3b37e933aaa1 |
|
BLAKE2b-256 | 5025eeecbf689e70d991a8c686cec07fe8c3795b3d391903456256abb04a0f97 |
Close
Hashes for rxml-2.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824e940531732cab429991fc5780f56ec50d1c885a87c9b7c27ca523e77ec39d |
|
MD5 | 4309649b2dfb71c321d05591776a9941 |
|
BLAKE2b-256 | 1b8ee77d550dc045d696a83b4eee081fd41a3caf3afeee4d60ed7afd3a1c988b |
Close
Hashes for rxml-2.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a7d1e75351865541051083b0ac175eb43bcb9a7c005765f9b1786af6272678c |
|
MD5 | c032786453119feb5b190004d2555fa4 |
|
BLAKE2b-256 | 78a209873cb17680d02508736fe30f6c8c6bad536fcdfe46d04d9f0292f40bfe |
Close
Hashes for rxml-2.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc0452bd9d14b4ea64edafa461273ddb68bfef094a938e3c8ad8aa62f5989b33 |
|
MD5 | 276d95c1b18c471b7e5500404ab7e0f7 |
|
BLAKE2b-256 | 29beaaaa9a9de0628dcba93459bf0605598c25402a56dcb1bd32c41862d43fcb |
Close
Hashes for rxml-2.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df189265e7851fd84719d459581f1b57200f2df082c06c480f93ef4dee81ad38 |
|
MD5 | 970838e7ec7d005b423f87a6733bd7a3 |
|
BLAKE2b-256 | 5002dfc5de2049c20505cafa4aa5a4334e9c65f8c6417542c59b0bdcbc5fb712 |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a6acbfdeb06e9d4588d02b93daa620ce3d7ec05a38b8550264f763b1ccdee93 |
|
MD5 | 924365559c18cc86750331014e7c9db8 |
|
BLAKE2b-256 | 7165e096b0ce0755f6435644ec02c084f5dee3162b3a29a1034e16a81075a3bb |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e96f610adae1d8e6bfdd0f60933066f04598436f26d5f58404adae780cd91738 |
|
MD5 | c19e99482e6ec9204f153aabde455f4a |
|
BLAKE2b-256 | d23987a918693c7b0066823d1b227739868cca3b4322961ae0911481d0628a4b |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93dca9fd0dd98c9a95b3145c3089cb1bf5220afd57b6650062d03d1ef0b72e2f |
|
MD5 | 08f1969ad8593e9a81827b58b79a8fe3 |
|
BLAKE2b-256 | 8cfd9f17de2ed1ac23109517fe524c85cae4d1becaa1aebef2e0f2560167f89b |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed85bc73f4f5b42b2a4014708d643178288a2243a4f3d87f5ae25cf0993f5664 |
|
MD5 | fe86c137621f96948b6fb48948f8c4b9 |
|
BLAKE2b-256 | 928676f16648bd5b24438344338a317ecc074ad76267823512aa8bdd99f1a2e1 |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 079c135d2a597a3684781dbd90c0c3ac26bd64088131bcc3b31997862f559a32 |
|
MD5 | 914a1e40319c1813110a2289ccfad84a |
|
BLAKE2b-256 | be021c055c7511fd86944ab8e15426cfac547cb6f60e1756439930288837190b |
Close
Hashes for rxml-2.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38a64811422d78526c3cf10fc5c5e3d6cb7d8655e09af608bc9fe5e7e779c9d7 |
|
MD5 | 3aab37cb19813c5af8e2c480830c06ce |
|
BLAKE2b-256 | b82fca25fc5b06fd61988b205b76650b35698e50040892f81185dbe18045b79a |
Close
Hashes for rxml-2.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c05a87382d32ccfc1b6ea3a49bb8425811a9d12950e2c2057425fd3bd7c955 |
|
MD5 | bd9b93d5a587a06c0c522f773665b757 |
|
BLAKE2b-256 | 91872a2b9c185053836169b13c078e1a5dd6c185588f4cb3e13712c73e259547 |
Close
Hashes for rxml-2.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42151247afa85b8e1fd89b449b6e806d2a7bdd7e265b9db37a37ba78093e4fec |
|
MD5 | a8a5f5a90483f0726692aa5208e54621 |
|
BLAKE2b-256 | 54c9bb3213e6205b07db468bb8082097427faeab6764bc5587576a1c6a75761d |