Skip to main content

KSON: a next-gen configuration language and love letter to the humans maintaining computer configuration

Project description

Python bindings for Kson's public API

KSON is available on PyPI for Linux, macOS and Windows.

Installation

Install from PyPI:

pip install kson-lang

Build from source

git clone https://github.com/kson-org/kson.git
cd kson && ./gradlew :lib-python:build
pip install ./lib-python

Example usage

from kson import Kson, Success
result = Kson.to_json("key: [1, 2, 3, 4]")
assert isinstance(result, Success)
print(result.output())

This should print the following to stdout:

{
  "key": [
    1,
    2,
    3,
    4
  ]
}

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

kson_lang-0.2.1.tar.gz (996.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

kson_lang-0.2.1-cp310-abi3-win_amd64.whl (665.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

kson_lang-0.2.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (719.5 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

kson_lang-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (675.1 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

kson_lang-0.2.1-cp310-abi3-macosx_11_0_arm64.whl (613.3 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file kson_lang-0.2.1.tar.gz.

File metadata

  • Download URL: kson_lang-0.2.1.tar.gz
  • Upload date:
  • Size: 996.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for kson_lang-0.2.1.tar.gz
Algorithm Hash digest
SHA256 da63219a81bcdd02e9786f5b4aeb52706241bce940b799a24e4933ec6bffee19
MD5 593c97596fb76ac4a06d1e49ba10561e
BLAKE2b-256 57cda645197f6f5bb25b49263e7e7aa49a9c7e8a69e7cbc97ae0a112fa831525

See more details on using hashes here.

File details

Details for the file kson_lang-0.2.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: kson_lang-0.2.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 665.4 kB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for kson_lang-0.2.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6b72766ab7eeccc68f88447dcc02dbd8be561e59552765aea46dd541e48711f5
MD5 61048dcec23e3487291789ec44f0e626
BLAKE2b-256 6f18558610037f74c47c5fc42762cb168baad3e6f5305f614106c6da008a058e

See more details on using hashes here.

File details

Details for the file kson_lang-0.2.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for kson_lang-0.2.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d35fa8f596e40892271513e619519ec0783ae25d7e726fac971b10bfa7955068
MD5 5463f8d7dc77c9af897a55a3ea3a865f
BLAKE2b-256 45f6928b904e20cda5d3b5c12a2b6160f4ec785ccd366fe430583a544206bf31

See more details on using hashes here.

File details

Details for the file kson_lang-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for kson_lang-0.2.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 adf9985cdc3401674fa545a626e4d1ec119d3be9fc1bffeab4018e4f9efb39ba
MD5 d70f7a7cd0c5c74abf3c86478f7ec005
BLAKE2b-256 edbc749d7bd25b57bbfb0014e77418fe99058d48a597435451e60ce8259d32e9

See more details on using hashes here.

File details

Details for the file kson_lang-0.2.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kson_lang-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 35cbee5ecb5d1879d8d3e87e094b0a704c34b6bbdf8c0a17839a4f357b79ad88
MD5 036230327cb7401560aa71bffed96099
BLAKE2b-256 11b213393df99072b6a2a0da0fc13360b4723c8786f6391b4aa86a4db0117330

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