KRAIL client for local projects and the local API runtime
Project description
krail
KRAIL client supporting local project mode and the local FastAPI runtime.
Install from PyPI:
pip install krail
The distribution is named krail; the Python import namespace remains rail.
Usage Examples
import rail
# API mode
project = rail.connect("nj-economics")
# DataFrame queries
df = project.query("SELECT county_name, unemployment_rate FROM County ORDER BY unemployment_rate DESC LIMIT 10")
# Agent research
answer = project.agent.ask("What counties had unemployment above 10% in 2020?")
print(answer)
# Streaming agent
for event in project.agent.ask("Compare Hudson and Bergen County unemployment trends", stream=True):
if event["type"] == "text_delta":
print(event["text"], end="", flush=True)
# Direct local mode
project = rail.local("./nj-economics")
ont = project.ontology()
counties = ont.individuals("County")
print(f"Loaded {len(counties)} counties")
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 Distribution
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 krail-0.2.1.tar.gz.
File metadata
- Download URL: krail-0.2.1.tar.gz
- Upload date:
- Size: 164.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c560b40ba7cc91a74fc97089692c70404f96cbfc614baa075f5dea2185ef15e
|
|
| MD5 |
94d21db0194d4cbe286e3b21b04a21b1
|
|
| BLAKE2b-256 |
5f33fac912f0481c6b5e06624fa2d2e433a1dcec1f8c3c717fda41f40c674f9b
|
Provenance
The following attestation bundles were made for krail-0.2.1.tar.gz:
Publisher:
release.yml on AkeBoss-tech/knowledge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krail-0.2.1.tar.gz -
Subject digest:
6c560b40ba7cc91a74fc97089692c70404f96cbfc614baa075f5dea2185ef15e - Sigstore transparency entry: 1825024576
- Sigstore integration time:
-
Permalink:
AkeBoss-tech/knowledge@349e97767d4a41657b28d6f03759758d0903dc94 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AkeBoss-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@349e97767d4a41657b28d6f03759758d0903dc94 -
Trigger Event:
release
-
Statement type:
File details
Details for the file krail-0.2.1-py3-none-any.whl.
File metadata
- Download URL: krail-0.2.1-py3-none-any.whl
- Upload date:
- Size: 132.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82879e04706fba0945afa07b210adc53079b11fcfc09207b331ab4a11e9ff47f
|
|
| MD5 |
18d51d165e8f6c3edd7953bd1c11a3cc
|
|
| BLAKE2b-256 |
205622ad5247941f90a2df9de3081270518af9ed869e86c451f217510ff2638e
|
Provenance
The following attestation bundles were made for krail-0.2.1-py3-none-any.whl:
Publisher:
release.yml on AkeBoss-tech/knowledge
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
krail-0.2.1-py3-none-any.whl -
Subject digest:
82879e04706fba0945afa07b210adc53079b11fcfc09207b331ab4a11e9ff47f - Sigstore transparency entry: 1825024603
- Sigstore integration time:
-
Permalink:
AkeBoss-tech/knowledge@349e97767d4a41657b28d6f03759758d0903dc94 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/AkeBoss-tech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@349e97767d4a41657b28d6f03759758d0903dc94 -
Trigger Event:
release
-
Statement type: