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.0
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.0.tar.gz
(4.9 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.0.tar.gz.
File metadata
- Download URL: kvlang-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
306485bd7ca18071fa4722ef83c3af5fec29ff59cdd4fdcf158bf276f9753b90
|
|
| MD5 |
66ae47132afa171bae26dcb27d779430
|
|
| BLAKE2b-256 |
00ba0938b2ea50032cc12d63cb4a2cd251b2b66e6510f1cef2379ee863dcb59b
|
File details
Details for the file kvlang-1.0.0-py3-none-any.whl.
File metadata
- Download URL: kvlang-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 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 |
290f1e06a2265f2c29e2b7282b72c82c8804b509a3ad205ce682886954350cba
|
|
| MD5 |
00986594b2139fd3dc9e274c2ddd2fb5
|
|
| BLAKE2b-256 |
3be3bc4af369f6e064985ade71f46f6ca9a4a5aaa328411cefdac7350141ebcf
|