Metadata-Version: 2.3
Name: kcl_lib
Version: 0.9.0b1
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Dist: protobuf >=4.25.3
Requires-Dist: pdoc ; extra == 'docs'
Requires-Dist: ruff ; extra == 'lint'
Requires-Dist: pytest ; extra == 'test'
Provides-Extra: docs
Provides-Extra: lint
Provides-Extra: test
Summary: KCL Programming Language Python Lib
License: Apache-2.0
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://kcl-lang.io
Project-URL: Homepage, https://kcl-lang.io
Project-URL: Repository, https://github.com/kcl-lang/kcl

# KCL Artifact Library for Python

## Installation

```shell
python3 -m pip install kcl-lib
```

## Quick Start

```python
import kcl_lib.api as api

args = api.ExecProgram_Args(k_filename_list=["./tests/test_data/schema.k"])
api = api.API()
result = api.exec_program(args)
print(result.yaml_result)
```

## Developing

Setup virtualenv:

```shell
python3 -m venv venv
```

Activate venv:

```shell
source venv/bin/activate
```

Install maturin:

```shell
cargo install maturin
```

Build bindings:

```shell
maturin develop
```

Test

```shell
python3 -m pytest
```

