Skip to main content

Kiln AI

Project description

kiln_ai

Kiln AI Logo

PyPI - Version PyPI - Python Version Docs


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

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)

Uploaded Source

Built Distribution

kiln_ai-0.5.5-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

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

Hashes for kiln_ai-0.5.5.tar.gz
Algorithm Hash digest
SHA256 7cf12fd052a21007353db51670ac4e4712b5c39d9b1760a87779f9e60d4cea0a
MD5 0b6fb7658f4cbb47a032d135bc53adc8
BLAKE2b-256 832cbb3e5869ba159cf07e2f05a1bee6f7db0d21cc3de062949556c435404c96

See more details on using hashes here.

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

Hashes for kiln_ai-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 80b16d013e307cc9dd36848cb4cdfddf3b1324a8ccbafccd5d05b9569756b364
MD5 18e576a5ea42f11a413a1a06a2f1c3a6
BLAKE2b-256 dfe306210db8f0dadd519ab7886f39fc3fba26e69743546f7e96e201486f5714

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page