Kiln AI
Project description
kiln_ai
Installation
pip install kiln_ai
About
This package is the Kiln AI core library. There is also a separate desktop application and server package. Learn more about Kiln AI at getkiln.ai
- Github: github.com/Kiln-AI/kiln
- Core Library Docs: https://kiln-ai.github.io/Kiln/kiln_core_docs/index.html
Quick Start
from kiln_ai.datamodel import Project
print("Reading Kiln project")
project = Project.load_from_file("path/to/project.kiln")
print("Project: ", project.name, " - ", project.description)
task = project.tasks()[0]
print("Task: ", task.name, " - ", task.description)
print("Total dataset size:", len(task.runs()))
# ... app specific code using the typed kiln datamodel
# Alternatively, load data into pandas or a similar tool:
import glob
import json
import pandas as pd
from pathlib import Path
dataitem_glob = str(task.path.parent) + "/runs/*/task_run.kiln"
dfs = []
for file in glob.glob(dataitem_glob):
js = json.loads(Path(file).read_text())
df = pd.json_normalize(js)
dfs.append(df)
final_df = pd.concat(dfs, ignore_index=True)
print(final_df)
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
kiln_ai-0.5.5.tar.gz
(834.5 kB
view details)
Built Distribution
kiln_ai-0.5.5-py3-none-any.whl
(54.0 kB
view details)
File details
Details for the file kiln_ai-0.5.5.tar.gz
.
File metadata
- Download URL: kiln_ai-0.5.5.tar.gz
- Upload date:
- Size: 834.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf12fd052a21007353db51670ac4e4712b5c39d9b1760a87779f9e60d4cea0a |
|
MD5 | 0b6fb7658f4cbb47a032d135bc53adc8 |
|
BLAKE2b-256 | 832cbb3e5869ba159cf07e2f05a1bee6f7db0d21cc3de062949556c435404c96 |
File details
Details for the file kiln_ai-0.5.5-py3-none-any.whl
.
File metadata
- Download URL: kiln_ai-0.5.5-py3-none-any.whl
- Upload date:
- Size: 54.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.28
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80b16d013e307cc9dd36848cb4cdfddf3b1324a8ccbafccd5d05b9569756b364 |
|
MD5 | 18e576a5ea42f11a413a1a06a2f1c3a6 |
|
BLAKE2b-256 | dfe306210db8f0dadd519ab7886f39fc3fba26e69743546f7e96e201486f5714 |