Skip to main content

Python SDK and CLI for Gia Cloud

Project description

Gia SDK

Gia is a trainable semantic graph database. The gia-sdk Python distribution installs both the public Python SDK and the gia command-line interface used to create, apply, query, benchmark, and inspect Gia-backed application projects.

pip install gia-sdk
gia --help

Application code imports the SDK from the gia package:

from gia import Gia

gia = Gia.from_env()
response = gia.query_response(
    "billing invoice webhook retry ticket",
    target="ticket",
    schema_name="project_management",
    schema_version="v2",
    profile="linear_ticket_search",
    profile_version="v1",
    persist_trace=True,
)
print(response.results)
print(response.trace_id)

The CLI uses public uppercase environment variables in application projects:

GIA_API_URL=https://api.gia.cloud
GIA_API_KEY=gia_development_or_production_environment_key
GIA_TIMEOUT_SECONDS=30

For the cloud-first project workflow, sign in, create or link a project, apply the manifest, create an app dotenv, and then use the same dotenv from both CLI and SDK code:

gia login
gia project create . --template project-management --name "Project Management" --dotenv .env.local

set -a
. ./.env.local
set +a

gia query "billing invoice webhook retry ticket" \
  --target ticket \
  --schema-name project_management \
  --schema-version v2 \
  --profile linear_ticket_search \
  --profile-version v1 \
  --persist-trace

More complete operational guidance lives in docs/guides/gia-bootstrap.md.

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

gia_sdk-0.1.0.tar.gz (467.9 kB view details)

Uploaded Source

Built Distribution

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

gia_sdk-0.1.0-py3-none-any.whl (575.9 kB view details)

Uploaded Python 3

File details

Details for the file gia_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: gia_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 467.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for gia_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e50596bc83a1b63e4912f60d335cecfecfb5c4ce9bfe742b3ee78c6f34ff611b
MD5 9b1346dc4b2fe2b7a311749d016f7187
BLAKE2b-256 f531e368f89595328aeb3d27f1d893742c43bbab34e7a30b03466875c12ab7ff

See more details on using hashes here.

File details

Details for the file gia_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gia_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 575.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for gia_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3db406bd5082faacd70bd6b9a8efab90f703dd02e3cc85daa463f8fddf2af1c
MD5 97b29738d5af607a39cd513bb36cf8e5
BLAKE2b-256 7e0474cf3ed72eea3bb2a34a956569831679abc02accaea2b7933aebdba7ff83

See more details on using hashes here.

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