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.11.0a1.tar.gz (821.1 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.11.0a1-py3-none-any.whl (812.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywcl-0.11.0a1.tar.gz
Algorithm Hash digest
SHA256 abe0c7d8c8207e1e58bbba26f31df6c52eafb1e654024f264360a9b0fe12ddad
MD5 ccc5b5a38472d44ddc52019aac38341a
BLAKE2b-256 0a69acc12f2641e4828401bbac330f52a624e7d06a1dbfc9835f3018e28a8313

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.11.0a1-py3-none-any.whl
  • Upload date:
  • Size: 812.0 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.11.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 1bb69329d23b968dd07eb7b685d73cb635f07020ded489107f0223dd1afacef8
MD5 545628db0be834e01fd9b07f1bbbf9c9
BLAKE2b-256 5759444d16323ae3ced731551a159f1066c42538f4b758de30f6f025aeaa24c1

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