Official Python client for Loom — the memory layer for research intelligence, by MetaCognition.
Project description
loom-sdk
The official Python client for Loom — the memory layer for research intelligence, by MetaCognition.
Give your research agents a persistent, temporal memory: add papers, notes, and data, then recall exactly what matters — with provenance — across sessions.
Install
pip install loom-sdk
Quickstart
Get an API key from the dashboard, then:
from loom_sdk import Loom
mem = Loom(
org_id="lab",
user_id="alice",
base_url="https://api.loom.getmetacognition.com",
api_key="sk_live_...",
)
# add a paper to memory
mem.ingest_paper(
"10.1/astro",
title="Astrocytic calcium signalling",
text="astrocyte calcium gliotransmission ...",
oa=True,
)
# search it back — each result carries its source
for span in mem.recall("calcium signalling", budget_tokens=8000):
print(span["text"], "->", span["provenance"]["paper_doi"])
What you can do
mem.ingest_document("paper.pdf", open("paper.pdf", "rb").read()) # PDF/Excel/Word/CSV/MD/text
mem.put_analysis("10.1/astro", analysis_markdown) # extract claims
mem.recall_papers("astrocyte calcium") # find papers
mem.graph.link("session_1", used_papers=["10.1/astro"]) # link a session
mem.insights.directions() # novel directions
mem.account.get() # account + usage
The client is a thin wrapper over the Loom HTTP API — every method maps to one call.
Documentation
Full docs: https://loom.getmetacognition.com
License
MIT
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 loom_sdk-0.1.0.tar.gz.
File metadata
- Download URL: loom_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c8fefc04f9e1acd29be7e2fde768a786e2414c81dbdb62fde9f769d13e32516
|
|
| MD5 |
27b18bbce3278156a1d063b8e26caf45
|
|
| BLAKE2b-256 |
b3654230c147d1d861e038772457c1338453dcd4b4e49e6e01ce974f47bf8bbc
|
File details
Details for the file loom_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: loom_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b468a1be54af4cd94259193eb765285448999ad143d4a87f8c25366a2a55950
|
|
| MD5 |
62dd9e37b9dc704fc1f0d2e6829784d7
|
|
| BLAKE2b-256 |
92efe5a8956c651f2e96ca6545bd2dc3d266063f895822ff45b22b84f832ab34
|