Python client for FluctlightDB — brain-native memory for AI agents
Project description
fluctlightdb
Python client for FluctlightDB — a brain-native memory store for AI agents.
Install
On Debian/Ubuntu 23.04+, Debian 12+, and Fedora 38+, system Python is PEP 668 externally managed — bare pip install fails with externally-managed-environment. Use a virtual environment (same as any other PyPI library):
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install fluctlightdb
From a clone of this repo you can also run:
./scripts/install-python-client.sh
Optional in-process recall (Rust extension, when wheels are available for your platform):
pip install "fluctlightdb[native]"
# or: pip install fluctlightdb-native
No cargo or Rust toolchain required for the HTTP client.
Quick start (HTTP — like qdrant-client)
Run a FluctlightDB server (download a release binary or use your own deployment), then:
from fluctlightdb import FluctlightClient
client = FluctlightClient(
base_url="http://127.0.0.1:8792",
api_key="your-key",
)
client.experience("user prefers dark mode", context="settings")
print(client.activate_lite("theme preference"))
Or use environment variables:
export FLUCTLIGHT_SERVE_URL=http://127.0.0.1:8792
export FLUCTLIGHT_API_KEY=your-key
from fluctlightdb import FluctlightClient
client = FluctlightClient.from_env()
print(client.activate("dark mode"))
In-process brain (like sqlite3)
When fluctlightdb-native is installed:
from fluctlightdb import connect
brain = connect("/tmp/my-agent-brain")
brain.experience("user prefers dark mode", context="settings")
print(brain.activate("dark mode"))
Read-only recall path: get_recall_client(path).
In-process recall (read-only helper)
Docs
License
MIT — see LICENSE.
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
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 fluctlightdb-0.4.3.tar.gz.
File metadata
- Download URL: fluctlightdb-0.4.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5181850850c703645b40d68ba2662f4515e379cc7f597746c03f2521c358267d
|
|
| MD5 |
249ef398dc80d376e82f73a8c26de53b
|
|
| BLAKE2b-256 |
3694ac16bd728cac8c2ac49d970dd484c52e97141baac83912e98ef2581359cb
|
File details
Details for the file fluctlightdb-0.4.3-py3-none-any.whl.
File metadata
- Download URL: fluctlightdb-0.4.3-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe08abe1054f19a91e907281a9ac155b07e03038203d46565dbbde6fe208097a
|
|
| MD5 |
c6f5cae0fef6355b5bfe31ce15c41b3d
|
|
| BLAKE2b-256 |
0d8b49fef166e5d2695da4eb3ac55eeb29c29b486dd00048be6f29dd1e58bf93
|