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.0a1.tar.gz (739.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.4.0a1-py3-none-any.whl (728.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywcl-0.4.0a1.tar.gz
  • Upload date:
  • Size: 739.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.4.0a1.tar.gz
Algorithm Hash digest
SHA256 4ffb26d38330ed94050ee1d7b84d70397ac8242420cf309dba00bd8607fe5c58
MD5 f5266c35c47f5199b350dee1040f9167
BLAKE2b-256 788bd52c73aa5bb243dfa6ac99f86edb389844ebfaf5544b1e3e2832e247d03e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.4.0a1-py3-none-any.whl
  • Upload date:
  • Size: 728.4 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.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b076a0b30500b303e9f7ad2bbfb7272bbe07c15f7e12f3be0ea8ddfd7bba585
MD5 39c3dbeb61da98f43d8c41f0ff45cbf1
BLAKE2b-256 3e9885c28c9fa0a3722d45a3988d01e24df725f086bf3d4a3207bd1a944b35f4

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