python_rapidxml
A library providing python bindings for rapidxml
Example
import rapidxml
r = rapidxml.RapidXml(b"<test/><test2>foo</test2><test></test>") # parsing from bytes
test = r.first_node("test") # get first node named test
test.name = "foo" # changing node's name to foo
r.first_node("test2").value = "bar" # changing node's value to bar
print(str(r)) # will output a prettified string of the xml document
print(r.unparse(pretty=False, raw=True)) # will output the xml document as flat bytes
print(test) # also works for nodes
with open('dump.xml', 'w') as f:
f.write(str(r))
r = rapidxml.RapidXml("dump.xml", from_file=True) # loading from file
assert(str(r) == r.unparse(pretty=True, raw=False)) # is always True
assert(repr(r) == r.unparse(pretty=False, raw=False)) # also always True
Install
If you have downloaded the source code:
python setup.py install
or if you want to obtain a copy from the Pypi repository:
pip install rapidxml
Both commands will install the required package dependencies.
A distribution package can be obtained for manual installation at:
http://pypi.python.org/pypi/RapidXml
Source
python_rapidxml's git repo is available on GitHub, which can be browsed at github and cloned like that:
git clone https://github.com/Arzaroth/python_rapidxml.git
License
MIT license. See the LICENSE file.
Metadata
Release files for RapidXml 2.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rapidxml-2.1.4.tar.gz | 34.4 kB | Without provenance | Details for rapidxml-2.1.4.tar.gz |
Release files / rapidxml-2.1.4.tar.gz
| Download URL | rapidxml-2.1.4.tar.gz |
|---|---|
| Size | 34.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aae02d75c98c062927d1a5c40f07838c65760b144fd0d7322f097a27a081205d
|
|
BLAKE2b-256 checksum How to use checksums |
927f98327f2ca6240190450ab5bc434abecf45c64c7da2bd394a73a8f5fa13d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for RapidXml 2.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.