No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kvlang-1.0.1.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kvlang-1.0.1.tar.gz.
File metadata
- Download URL: kvlang-1.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f5cace0de3497f0d2abef1e83c3573c5bb06c7dd0745630faa8338e7f41d6eb
|
|
| MD5 |
b5417e0e2ccd2eac21794c8c611f68e1
|
|
| BLAKE2b-256 |
01be99b4b3115525a95a92d19991065246fb5ff5451a80c4bddfc1c4b17dff85
|
File details
Details for the file kvlang-1.0.1-py3-none-any.whl.
File metadata
- Download URL: kvlang-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ae678f415c382fb3c13ff310298eb0056ff512107c426180119d58f046d85c7
|
|
| MD5 |
0123b14e6470d52b4e07ad2a6479fb25
|
|
| BLAKE2b-256 |
b2aefa592c5ef952d179ad36eee397afa968e86f907c70e576ab3aeb07e099f7
|