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.2a1.tar.gz (1.1 MB 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.2a1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywcl-0.11.2a1.tar.gz
Algorithm Hash digest
SHA256 99c4997d037d719066a2445273940347b7835f5926c250bbf7bb797818fb8eb4
MD5 9b9ab881bd9385985bca41b2cf1d3cdb
BLAKE2b-256 7f2b8f41e40388ecad7b2eac029c31ae3fc14072c891bd6487295f840257b80f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.11.2a1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • 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.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 19b37f8388b341fc06840fcefcd6bf4f1e0c4e855d3156a1504ddb2deb29b6b9
MD5 6d724e994e39e46474e7e8fd41e87146
BLAKE2b-256 791dfcecda462d227a0de2ed17f55d72da856adc2bb0f6de9e805dc1ec7d183d

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