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.6.1a1.tar.gz (775.2 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.6.1a1-py3-none-any.whl (766.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywcl-0.6.1a1.tar.gz
Algorithm Hash digest
SHA256 d929cbd1a4d8c6554311c191f38883d9d43d54e28a78cdabd8e839036ea35b9b
MD5 04cbd43da0ad7615fc2d58863b27326f
BLAKE2b-256 a7d5e179bd707ab1b035ff46d9585bdc2a708b66b8c4bc5afff259ccba8fde5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywcl-0.6.1a1-py3-none-any.whl
  • Upload date:
  • Size: 766.5 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.6.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 55c8137ed924ead97ce3c1baf58cf04d0aae881d51204bec97600b738158c0eb
MD5 4d5be2312fdd97c3e7c934c6f623f22d
BLAKE2b-256 87ff14c15fe117bd23b2d5d79af5e1f0db36b11ba2d3723d0090d9a00d0d5e02

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