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.5.0a1.tar.gz (761.9 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.5.0a1-py3-none-any.whl (750.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywcl-0.5.0a1.tar.gz
Algorithm Hash digest
SHA256 a16cb9ecab178bf568cb9e56783dadd66ece5b507d17723c76ec6833a37e3ea6
MD5 3960ed3214708654dfec0cc832868280
BLAKE2b-256 5e9ae76c1ee27a65c4bfc831aa889aa17c8a3e69c5fa502d43154b71d7c03ff0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.5.0a1-py3-none-any.whl
  • Upload date:
  • Size: 750.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.5.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad63607fefab6a5b29ee007558b82e64f308cf96422e9fee59daa5c57563c700
MD5 39acbf1aa48cf035c0cc6b913ce5bd3e
BLAKE2b-256 4c152004b324457fc61a5ce00176101b453fc73a1fda075e2b273b48a845f914

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