Metadata-Version: 2.4
Name: localmem-memory
Version: 0.1.0
Summary: The localmem Memory API: memory of each of your customers, with the source and date of every fact. `localmem-memory login` pairs a terminal with a project.
License: Apache-2.0
Project-URL: Homepage, https://localmem.org/docs/memory-api/sdks
Classifier: License :: OSI Approved :: Apache Software License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Dynamic: license-file

# localmem-memory

The localmem Memory API from Python: memory of each of your customers, with
the source and date of every fact. Standard library only. Server-side only.

```sh
pip install localmem-memory
localmem-memory login     # pair this terminal: approve the code in the browser
```

```python
from localmem_memory import Memory

lm = Memory()  # reads LOCALMEM_PROJECT, LOCALMEM_KEY_ID, LOCALMEM_KEY_SECRET
tenant = lm.customers.create("cust-42")["tenant"]
lm.documents.send(tenant, "Ada Byron joined Acme on 3 March.")
print(lm.recall(tenant, "Ada Byron")["facts"])
```

Docs: https://localmem.org/docs/memory-api/sdks · Support: support@localmem.org
