Skip to main content

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

License

MIT

Project details


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.10.0a1.tar.gz (789.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywcl-0.10.0a1-py3-none-any.whl (778.7 kB view details)

Uploaded Python 3

File details

Details for the file pywcl-0.10.0a1.tar.gz.

File metadata

  • Download URL: pywcl-0.10.0a1.tar.gz
  • Upload date:
  • Size: 789.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pywcl-0.10.0a1.tar.gz
Algorithm Hash digest
SHA256 397586c140c9150c057ffaae2649ff20f75ca00d30bda62c3f59f3d6a09aa4d5
MD5 70f5e106d756d94d603c5946b674ff34
BLAKE2b-256 5e36278ad85befe2153b27a10ac09eedb0b7bdd623a82c6a6f424c9731bfda4d

See more details on using hashes here.

File details

Details for the file pywcl-0.10.0a1-py3-none-any.whl.

File metadata

  • Download URL: pywcl-0.10.0a1-py3-none-any.whl
  • Upload date:
  • Size: 778.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pywcl-0.10.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 097f39587f0d15c896401b05f2313f50e20406a44963d033a6c32ef0b53e6903
MD5 dea7dcd70d68e29b2e5964c31d085b76
BLAKE2b-256 446aecf2c8aa4e7c5934d5d430b9af12dd72f1c806dd3098a68700bdd03f8d94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page