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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kson_lang-0.1.0.tar.gz.
File metadata
- Download URL: kson_lang-0.1.0.tar.gz
- Upload date:
- Size: 206.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0565bc2069b97a9b155c6fc33975a6243b1835c4f9fd56b875956b7f014f0156
|
|
| MD5 |
7086a4762341a007e6f6e8f8553c810c
|
|
| BLAKE2b-256 |
936d508304b6cafde4534fa122db26e8e8ad02c9cc1fbdf74a9085633e390f74
|
File details
Details for the file kson_lang-0.1.0-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: kson_lang-0.1.0-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 655.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6dc9ab8516ebd424d3c3634f28bdbb39875da4cd3a2c41614a641aad6d97ee3
|
|
| MD5 |
a9c68312aa7cc1647f9336309f0e78d5
|
|
| BLAKE2b-256 |
d30e8bd75b584efb561765baa7149441a2312c751402e92ad4a6927a625cc67e
|
File details
Details for the file kson_lang-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: kson_lang-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 708.5 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d3b8370cb7b0d281bd4c4112164134d1f16686821c4d7086c25e0b58393d5a3
|
|
| MD5 |
7837ce5ee900a50a0ae566085a42671a
|
|
| BLAKE2b-256 |
5d5b50cd27761a758b295a52a307566c4fcc9edbfa9a9ddfb850560440d11050
|
File details
Details for the file kson_lang-0.1.0-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: kson_lang-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 603.5 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3d9648151e0a6b4e7b712da59b02f5383d13dda82df3fc8dec20d850e259895
|
|
| MD5 |
0e4e68162e2f205dc84171572582feb1
|
|
| BLAKE2b-256 |
08c3ba98b76db0bb86b23f7b67eb4a677d13e9b24388a6282b47aeae679c9628
|