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-1.1.0.tar.gz
(8.7 kB
view hashes)
Built Distributions
rxml-1.1.0-cp312-none-win_amd64.whl
(170.7 kB
view hashes)
rxml-1.1.0-cp312-none-win32.whl
(163.7 kB
view hashes)
rxml-1.1.0-cp311-none-win_amd64.whl
(170.7 kB
view hashes)
rxml-1.1.0-cp311-none-win32.whl
(165.6 kB
view hashes)
rxml-1.1.0-cp310-none-win_amd64.whl
(170.8 kB
view hashes)
rxml-1.1.0-cp310-none-win32.whl
(166.0 kB
view hashes)
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 799ab91372fda3cd97ba81c102c323fb76da080a1d7aaaf5d775de7c2699556c |
|
MD5 | 4648935788444c4c26ff1952423b1fbe |
|
BLAKE2b-256 | 4f8eb03d11a15bb58e2e2afb5186fd2010eb533fd5b75950a74e8e44ce8d6ca7 |
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81a07cab8717e4cae2bc46b50ef5901c889ae150cbc0971d93d2757daa1799d3 |
|
MD5 | a784d891808f363e8fd66e7d7263265f |
|
BLAKE2b-256 | 9ac5681c73fa7b5c6b9285b556f181fd42370aac6f7ebc516ccce5ca69e4fd33 |
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1432e5eeab98e4c1df297481d09015295070c4eb8ec816328833b7a7047ae8b9 |
|
MD5 | f5a9355ede02aa946bc5529b786b16a4 |
|
BLAKE2b-256 | f4b69f334aea5cec59022d9159048783045854d713fa2f93e59e5a4d391b4cc8 |
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e632e6ae94b3343f548e6a2bf6b93e42315410d3cd3251dfed8545db9fd2a6f |
|
MD5 | a559f140647cc2b3a9d1c0d4a6040610 |
|
BLAKE2b-256 | 9c4d5d6bd4559e95ca512ed664547b245f02387bedb5e04e680db4a3b4f4b7fd |
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64650b57b4d25d5a68ae5670afae7e36e058a5044db44c4fb9332f23648cb914 |
|
MD5 | 8c4f442e2134a34d8a353edd19320d0b |
|
BLAKE2b-256 | 1ff0eb0f155b8da66e7b4d25efad8749fb374d127e5815d0aa337d049e8078a5 |
Close
Hashes for rxml-1.1.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d772064d9ca971c7759f637e17f577ae6bb90397c618977ac76426ffec4b68 |
|
MD5 | 06cb60487c1a02f28403f911c8425d1d |
|
BLAKE2b-256 | 96dd4077bfec5840b9bceaa48f653830e4af9f245eee6e32a911ca36de547c25 |
Close
Hashes for rxml-1.1.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fde60ed19e3cb458571785df33a7a8618ccddd7fae093864b7ad4bd8cd54c29e |
|
MD5 | b70273f3c5a361df46448349be068316 |
|
BLAKE2b-256 | 03430f5a1b4c57353e0eaf5ff89989c71063251f8591d1b2e43f123f39c88bde |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57a516fe621c0520b87e9f5984256a2dfdb67c0a3a05c8d437ff531aa4121b63 |
|
MD5 | abc55d693f1be518e689432b8638c6a2 |
|
BLAKE2b-256 | dc16bd4d17ecb5918df89b8ad6d07b1e4a248deab320a02478ca57124a4a2b59 |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ff59ba12c64e1a61336a9e85aeca99f73f1b2504ae0f34c73d65e1ed7726ac |
|
MD5 | c032925d79117a594dbcfb9fcd16dfe0 |
|
BLAKE2b-256 | 1967dc9a977647f4d5babd24969007fae46702d3bddd9ef311c287afccd2ecd8 |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01888f4ebb380167e9205af2eed44a20cc1071d42e74020fbed802c997c54e8 |
|
MD5 | c1a4373f38f659d242ef6c58cc7e35ca |
|
BLAKE2b-256 | fddc25f12ec48a5a93c3996fbb67f73b594e4543df630894a499cedadf7da96f |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd4dac20c08bf68af91b9a7546533546ad28bce6e5ec62c98160775be54a32f9 |
|
MD5 | b45ba2480063e20682c6d66f07560aed |
|
BLAKE2b-256 | 44528a6a5f99c80d3bd1e2d6ed95efc95bf4e2b2bcd3f90d5af3c7d08c7748d0 |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73868a7d1a33a788ceafcac5819acb704cdd99243079859d951c3a9d4e247e71 |
|
MD5 | 34c2f66053e90faefa867a963944eed3 |
|
BLAKE2b-256 | c5eff1f5bcef45e8d5d9b460fedd4df38836b311c912b9c71b95a74238419c93 |
Close
Hashes for rxml-1.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3bd4cf8f6c7c9619bb6a766678f6631e7b0231603e90570789c92fceeeacf2ec |
|
MD5 | 6ea1c994e725c300c6dba01ab6765a97 |
|
BLAKE2b-256 | 71a6461f488dc7c5220c76a87281ad605d76e965baa06defcff9bca2d58dd4da |
Close
Hashes for rxml-1.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb27e4525180bddde31b0610ff2aef52f4054d620a90535f2a186f8e5a818979 |
|
MD5 | 273c674be734dde3f19172b280340529 |
|
BLAKE2b-256 | 9ecf3479ea45acda517b5f09c674bd38b0d095d547836a536a5067aed66dbf8b |
Close
Hashes for rxml-1.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7655df7ff2307b46541163f0a5d7f084e3619026da8821b1bdbe80a87fa35dd0 |
|
MD5 | cffc124eb2cd64969d464e2cc1c67ca3 |
|
BLAKE2b-256 | 9d8ca093cf939a9a4e117d04d76c80dbb5b11c5922cea5408f25c067ee58f1e0 |
Close
Hashes for rxml-1.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95565716301a2afbf3b71f79c72a62bce1885c064ca88a3648e08d69240ad4d8 |
|
MD5 | 455eaac4336e748665cae9aee814d800 |
|
BLAKE2b-256 | 4a1f614acd1957e91cf198b2b2c037175d5da13bee6a0ec1a4f76b01ae911df8 |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffd57ea692c3104d839fe61f64eaec69285830fd6cf663d786a03c993deaaa36 |
|
MD5 | 0040057a8510bac4159131bffb7f9d91 |
|
BLAKE2b-256 | 28dd56d47d3c192c9ea22a92ab1e1fdb82aa3d94c757261772a4cc6069c3aac8 |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc400f369dd908d944df2c4541be00098bb632efef89d4873ab403f76e0ca7af |
|
MD5 | 03b36c36d45c0e8199a815f0d1a4326e |
|
BLAKE2b-256 | d7dac337363b960c2f7f2fceb9a13c2e903c4b017d442168d9a23e6c6694a86b |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a351b08bfe48cac8d333c3bbe81c883a9ecf6ba8f8ac5134c512ec08da24301b |
|
MD5 | 228a085efdaa19abe315be73eae4fa13 |
|
BLAKE2b-256 | 1db516cee799ac8757c04f85ca7c1a0d6e98fe688976a493543a228c9840893b |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13c87e23625c337f09d208d566d87dcd9953d8128541c5b1ba293883506f4a9d |
|
MD5 | 46a0c26eec4aced4dc93b4a35a02bb1c |
|
BLAKE2b-256 | a7acc7c0214332986b52cf635b2d7c7ba93db77ff4a2abee4ffb00f20b8ac348 |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad47fb069e0c48df9644a0389335a5bf4a05d1689aaaf79b4c2788e0c4944aeb |
|
MD5 | 90d98a297d8dd8a3bca6959efa3a24f9 |
|
BLAKE2b-256 | 4aceca63548ab4eb919805defadd081c2a76dff1f426f508b3fd2859124f0cce |
Close
Hashes for rxml-1.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2af1784f1b19db59e24a617a005dc6fe55c4bad3463fa2804f2c7989a562a4f |
|
MD5 | 4aab9b5f41f7679cfe810fca447ba100 |
|
BLAKE2b-256 | 4d8635dff48851c4f5688ca12ecff0820d90526ddcc704470a3920af75c96dd0 |
Close
Hashes for rxml-1.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78e404bedc59f3bad4565988fa8fd25a6c6ee9a7f13e179b1a5fd44f4229465a |
|
MD5 | d1c5805844238471f08bd8bc25313edb |
|
BLAKE2b-256 | bf631614beb3142cd9280039cc097fdd5f3a7be80c9860eb47da6d98155c92ea |
Close
Hashes for rxml-1.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1574adada4bfef2fe90ae02781b7074322cd127025f934134d59aa6f0119733c |
|
MD5 | 6c7b6a726ca1ff41ecb9fe08ac196161 |
|
BLAKE2b-256 | 4d41449a1c656200f7430c82af0cc2fe6652edfe02d2b55c9b70718a7ad6826b |
Close
Hashes for rxml-1.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | accefea4611a7f37020a461285710fdb52a57b3b920e261157f74d27ae1396b1 |
|
MD5 | 19394758e19270c7304cf551a9bf7c29 |
|
BLAKE2b-256 | eddffa9f3890bd9fb43376947ceed81e2774bd22aafa46c1b8ef2625ba82c30e |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c7e865e707997f27834f91fea05c0392e30d809a266778c9f11495e20f8a2bc |
|
MD5 | 07898ba07a7a3ffa0428d616ba09f324 |
|
BLAKE2b-256 | 79a0705d0057518d9436444b1b9a6efcbe84c34de0e69900e26389765a317f9d |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9518177694006dfea8cc6788d886384004cf24ab3c899a2e1ea567964ab73fc1 |
|
MD5 | c152add100083d13e56b13b9ca0eabb7 |
|
BLAKE2b-256 | f387ba1c6d31788b951cdaf28dbd8fb59342440862a258dd8bc07b3924ec4c13 |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e79c2a3298fc06e0d576a31d21215b189d36dd665b212e5dadac3c9532f1efe0 |
|
MD5 | 29606e80af0fb978743d04a88e689294 |
|
BLAKE2b-256 | 5fe048df34436db6c28028ae00f1cefb9d0c75a9e4e2a045533964eeb8309804 |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5aa0ed7210a286d0c434afc10af27fa08d47fad89bf460989629f2a1c02f03a3 |
|
MD5 | 45da5b1e6f1b956af1a31790a36096c9 |
|
BLAKE2b-256 | 42670ab0668b496a612e061b23c03bc458ba04e445985dd63bf4fe90d54f4017 |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b23851e54b187d8c8e65ce238e75e994b957d4c6d57ed2aae81735e0718801a |
|
MD5 | 82b80e3bcaaaea0224d64e0c99418eb1 |
|
BLAKE2b-256 | 7be60e1c12691471d826fd0a441d3905f9304e96dcfa03f69418a09f58db5eaf |
Close
Hashes for rxml-1.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de025defbd4556b9dab5ff658e7c17e84945fee8c15d88903917d5698fd29e5e |
|
MD5 | 62c70c9623a1a9aed8419b2e8a8284f7 |
|
BLAKE2b-256 | 7f5713d5f16ab95d7f10faefb4e2da8419c03eea7a4fc566d8a2e897d61f6002 |
Close
Hashes for rxml-1.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e45610733be3d04f06cba9b041f37828777cf0d70a4f8107102cbc5a773dc7 |
|
MD5 | cd827420f986dad33f9902c2cae7e1e2 |
|
BLAKE2b-256 | 2b352b514856eb814f7e310a86072abe026efb403f920f0bdc2dba1f30e6dcfa |
Close
Hashes for rxml-1.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28b0d02df44af10badbe4cb2eaaccb06188feae6b9baa8a7eec1f7d6a790f0a1 |
|
MD5 | e90d1adbb707389839503d2bdb079a62 |
|
BLAKE2b-256 | c2da35e76cf49631af134beb06b835245273e18e42fef3fd3e57957f5bde987b |