No project description provided
Project description
pywcl — Python bindings for WCL
Python bindings for WCL (Wil's Configuration Language), powered by a WASM runtime.
Install
pip install pywcl
Usage
import wcl
doc = wcl.parse("""
server web {
port = 8080
host = "localhost"
}
""")
print(doc.values) # {'server': {'web': {'port': 8080, 'host': 'localhost'}}}
servers = doc.blocks_of_type("server")
print(f"Found {len(servers)} server(s)")
Links
- Website: wcl.dev
- Documentation: wcl.dev/docs
- GitHub: github.com/wiltaylor/wcl
License
MIT
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
pywcl-0.8.0a1.tar.gz
(783.5 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
pywcl-0.8.0a1-py3-none-any.whl
(773.5 kB
view details)
File details
Details for the file pywcl-0.8.0a1.tar.gz.
File metadata
- Download URL: pywcl-0.8.0a1.tar.gz
- Upload date:
- Size: 783.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92d57783f8da57a0bd37a6caa6c97bedc5176755cb9715c6e7cb8c68f7ff2e98
|
|
| MD5 |
77e37f1ae4e1abc0ca24c67245efd039
|
|
| BLAKE2b-256 |
65cce004986ec6b89211e85f86e29d970f13b866a2c775d30a80c118ff21a9b8
|
File details
Details for the file pywcl-0.8.0a1-py3-none-any.whl.
File metadata
- Download URL: pywcl-0.8.0a1-py3-none-any.whl
- Upload date:
- Size: 773.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04bec07ce59528037b38f9a93fba37846b253890232bd86aa7075709574e117b
|
|
| MD5 |
663f4888dbadb1dc98a882614b197d3c
|
|
| BLAKE2b-256 |
2c65b60f0b01c1b3e36190cef4977393306fb0e5dd2e48bc23fe73f8b1a05ecf
|