Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

krail-0.2.1.tar.gz (164.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

krail-0.2.1-py3-none-any.whl (132.7 kB view details)

Uploaded Python 3

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

Hashes for krail-0.2.1.tar.gz
Algorithm Hash digest
SHA256 6c560b40ba7cc91a74fc97089692c70404f96cbfc614baa075f5dea2185ef15e
MD5 94d21db0194d4cbe286e3b21b04a21b1
BLAKE2b-256 5f33fac912f0481c6b5e06624fa2d2e433a1dcec1f8c3c717fda41f40c674f9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for krail-0.2.1.tar.gz:

Publisher: release.yml on AkeBoss-tech/knowledge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for krail-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82879e04706fba0945afa07b210adc53079b11fcfc09207b331ab4a11e9ff47f
MD5 18d51d165e8f6c3edd7953bd1c11a3cc
BLAKE2b-256 205622ad5247941f90a2df9de3081270518af9ed869e86c451f217510ff2638e

See more details on using hashes here.

Provenance

The following attestation bundles were made for krail-0.2.1-py3-none-any.whl:

Publisher: release.yml on AkeBoss-tech/knowledge

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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