Skip to main content

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

Metadata

Release files for loom-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for loom-sdk 0.1.0
File Size Uploaded Provenance Actions
loom_sdk-0.1.0.tar.gz 10.4 kB Without provenance Details for loom_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for loom-sdk 0.1.0
File Interpreter ABI Platform Actions
loom_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for loom_sdk-0.1.0-py3-none-any.whl

Total release size: 21.2 kB

Release files / loom_sdk-0.1.0.tar.gz

Download URL loom_sdk-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2c8fefc04f9e1acd29be7e2fde768a786e2414c81dbdb62fde9f769d13e32516
BLAKE2b-256 checksum
How to use checksums
b3654230c147d1d861e038772457c1338453dcd4b4e49e6e01ce974f47bf8bbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / loom_sdk-0.1.0-py3-none-any.whl

Download URL loom_sdk-0.1.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b468a1be54af4cd94259193eb765285448999ad143d4a87f8c25366a2a55950
BLAKE2b-256 checksum
How to use checksums
92efe5a8956c651f2e96ca6545bd2dc3d266063f895822ff45b22b84f832ab34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Security for loom-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page