xml-safe-mod
A small utility for safely making updates to XML configuration files.
It aims to give a safer alternative to using sed when updating XML configuration files, both by avoiding leaking secrets and by making the updates themselves safe and atomic.
Usage
# In-place update
echo '{"secret1": "password1"}' | xml-safe-mod --src /etc/daemon/config.xml --in-place --set secret1 ./xpath/expression
# Use a template file to generate another file
echo '{"secret1": "password1"}' | xml-safe-mod --src /etc/daemon/config.xml.in --dest /etc/daemon/config.xml --owner daemon --group daemon --perms 600 --set secret1 ./xpath/expression
It would support the ElementTree subset of XPath.
Metadata
Release files for xml-safe-mod 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xml_safe_mod-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for xml_safe_mod-0.1.0-py3-none-any.whl |
Release files / xml_safe_mod-0.1.0-py3-none-any.whl
| Download URL | xml_safe_mod-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23bc4980b85ae49404856c66a05a700663b9d253e385d6e68509a0b62c48dbbf
|
|
BLAKE2b-256 checksum How to use checksums |
2ddec7ce5fa85175dc4aad5ac5d4ca0628ea6b9ee6d33debd88db0f7a1f062ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for xml-safe-mod 0.1.0
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.