Skip to main content

Official Python SDK for the Libro AI memory infrastructure.

Project description

Libro Python SDK

Official Python SDK for Libro, the open-source AI memory infrastructure.

Installation

pip install libro-sdk

Quick Start

from libro import LibroClient

# Initialize the client
client = LibroClient(api_key="your_api_key", base_url="http://localhost:3000")

# 1. Ingest a memory
client.ingest(
    user_id="user_123",
    text="User prefers Python over Java",
    metadata={"source": "slack"}
)

# 2. Retrieve context
context = client.get_context(
    user_id="user_123",
    query="What programming language do they like?"
)

print(context)

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

libro_sdk-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

libro_sdk-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: libro_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for libro_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c4d1ea33040dcf6b703a35cc9357af0082973ae4890db80a9749618d5ec5ad1
MD5 c5d204aab24a4758592fe84f779a7d59
BLAKE2b-256 cfac7066b2206cdc9b7d7179bb557ad0c513cbaa2ee7a3d33baabebd092a2b49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: libro_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for libro_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb1ab2d42c1678222f09ff79be49b23326c0f6d1e5104766187e01e9bf645b53
MD5 70b18ea2b94ecf89a5fe2002acf36a6a
BLAKE2b-256 eaaf5b2b0ec3ac86cff972cfea8ab071f04ce4d8f78a7ee08e3f2761afa7b307

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