kvlang
Grammar and parser for Kv (wiki) as a more reliable approach for
reading the .kv files.
Install from PyPI:
pip install kvlang
or from the repo:
git clone https://github.com/KeyWeeUsr/kvlang
pip install -e .
# or
pip install git+https://github.com/KeyWeeUsr/kvlang.git
# or
pip install https://github.com/KeyWeeUsr/kvlang/zipball/master
# or
pip install https://github.com/KeyWeeUsr/kvlang/zipball/1.0.1
then
from kvlang import parse
print(parse("#:kivy 2.3.1"))
# Tree(Token('RULE', 'start'), [Tree(Token('RULE', 'special'), [...])])
print(parse("#:kivy 2.3.1").pretty())
# start
# special
# special_directive
# kivy_version
# version
# 2
# 3
# 1
Metadata
Release files for kvlang 1.0.1
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 | |
|---|---|---|---|---|
| kvlang-1.0.1.tar.gz | 5.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kvlang-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.9 kB
Release files / kvlang-1.0.1.tar.gz
| Download URL | kvlang-1.0.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f5cace0de3497f0d2abef1e83c3573c5bb06c7dd0745630faa8338e7f41d6eb
|
|
BLAKE2b-256 checksum How to use checksums |
01be99b4b3115525a95a92d19991065246fb5ff5451a80c4bddfc1c4b17dff85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / kvlang-1.0.1-py3-none-any.whl
| Download URL | kvlang-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ae678f415c382fb3c13ff310298eb0056ff512107c426180119d58f046d85c7
|
|
BLAKE2b-256 checksum How to use checksums |
b2aefa592c5ef952d179ad36eee397afa968e86f907c70e576ab3aeb07e099f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for kvlang 1.0.1
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.