A very simple python library for parsing XResources.
Example Usage
import xrp
result = xrp.parse_file('.Xresources')
result.resources['*foreground'] == '#FFFFFF'
result.resources.x_statement('*foreground').value == 'white'
result.definitions['white'] == '#FFFFFF'
Installation
Install stable versions from PyPi
pip install xparser
and development versions by cloning
git clone https://github.com/taesko/xparser.git
cd xparser && pip install .
Documentation
The two main entry points to the API are the parse and parse_file functions in the xrp package
They both return an xrp.views.XFileView object, which has resources and definitions attributes with dict-like interface for accessing the parsed data.
No designated docs are written yet (but are planned to be) - use help() on the xrp.views.XFileView object for more information on usage.
Metadata
Release files for xparser 0.0.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 |
|---|---|---|---|---|
| xparser-0.0.4.tar.gz | 8.1 kB | Without provenance | Details for xparser-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xparser-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for xparser-0.0.4-py3-none-any.whl |
Total release size: 17.9 kB
Release files / xparser-0.0.4.tar.gz
| Download URL | xparser-0.0.4.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a7895aa35910117c7ee3a6327be17118e571864aaccdc4d9c07c4c95e4cfc0a
|
|
BLAKE2b-256 checksum How to use checksums |
d70d4de46ccf5a95afde119c53bb93682496d4b5dd5860456368ded9f9b1077f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / xparser-0.0.4-py3-none-any.whl
| Download URL | xparser-0.0.4-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8623ee7d456e3a9acad5fc9163ece9532878b363182416878a027badcffe354
|
|
BLAKE2b-256 checksum How to use checksums |
2c75a000c0e550c73b8e8d060bbcb6977d68e12f52961b5c806a40981db266ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for xparser 0.0.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.