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.4.1a1.tar.gz (739.3 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.4.1a1-py3-none-any.whl (728.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywcl-0.4.1a1.tar.gz
Algorithm Hash digest
SHA256 e07ba1cf840f27b3e512b178e482a4a155ef6a9cdfc12bfcb7d43a8d090ad7b1
MD5 4e0b8dc4428dfa572668195921da117c
BLAKE2b-256 3580c27e29f376a18b65de0058f8adb68a8e992bb9fb1a4a9017afafa35ef1d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.4.1a1-py3-none-any.whl
  • Upload date:
  • Size: 728.6 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.4.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 d02c8007b28ca27978a2524bfc9f4611aa9cf8edd3a2180906deebe1cec5483f
MD5 28a11bbc1175b04c6913c3e5caa3b782
BLAKE2b-256 085e2e5e76a27ff1d78895d890a5ae903c8e7d48f5e61292ef6f1c3c072786ba

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