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

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.0.tar.gz (801.6 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.0-cp310-abi3-win_amd64.whl (665.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

kson_lang-0.2.0-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.0-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.0.tar.gz.

File metadata

  • Download URL: kson_lang-0.2.0.tar.gz
  • Upload date:
  • Size: 801.6 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.0.tar.gz
Algorithm Hash digest
SHA256 810309793cf8d0f8b4fd1901d4342d37ae45b5e56986cbba11eb0ec6a1a09aae
MD5 28d56d03bfff417bdaf06130a99fa6a6
BLAKE2b-256 799474e4ca4fadc0bb52884ef1bd49c01f1012fb4a62fbeb6856ed2886d1bfa6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kson_lang-0.2.0-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.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ef2f3f278515c4f5d8bd067eb34a6f02571fc0b0347db0743e1b3f1619a07dae
MD5 5881b001ee8d69a9ad9d2eb6ae2593a7
BLAKE2b-256 c251ba44694d4b3c9ccd9c4a800040cffe8cb73788582fb02598041248d0ccb0

See more details on using hashes here.

File details

Details for the file kson_lang-0.2.0-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.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 951c764b13b3b4fd8d5b2c1ca352b634a291d64f10a1776587213af4757863fa
MD5 6543e252925e5baf9818dff6c9ce3f80
BLAKE2b-256 2ccaa55914e061fbc76a59e6432e27c959a106b317e222657bcdcd6dd70a1bda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kson_lang-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a03aadd14db1721a6e14d60502377035c8eded183055e4359759dd520e175ec1
MD5 caa67a992d1f5e806e65474317228145
BLAKE2b-256 9546b1f5cd097bcdc882f91364b3feedb96c23bb5ba679040d94c37e5fe436f6

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