Query Memory Python SDK
Official SDK for Query Memory Knowledge, Agent, and Web Parsing APIs.
Install
pip install querymemory
Quick Start
from querymemory_sdk import QueryMemoryClient
client = QueryMemoryClient(
base_url="https://api.querymemory.com",
api_key="<USER_API_KEY>",
)
result = client.knowledge.query(
knowledge_id="<KNOWLEDGE_ID>",
query="Summarize key points",
top_k=5,
)
print(result)
Use root domain for base_url (no /api/v1):
- Correct:
https://api.querymemory.com - Incorrect:
https://api.querymemory.com/api/v1
Auth
- Public query APIs use
api_key. - Management APIs can use
api_key(user API key) orauth_tokendepending on deployment policy.
You can pass one or both to one client.
Modules
client.knowledgeclient.agentsclient.web
Each module includes both management and public query helpers.
Metadata
Release files for querymemory 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| querymemory-0.2.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| querymemory-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / querymemory-0.2.0.tar.gz
| Download URL | querymemory-0.2.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4881b1385ec7092244de9ad9b0198432694183763f7ea733bb5fd49b32bb584
|
|
BLAKE2b-256 checksum How to use checksums |
5403d88ab26862b6a4008b5dbee92c44e885b7feeb4d4089c60af2036d708480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / querymemory-0.2.0-py3-none-any.whl
| Download URL | querymemory-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69ffd5d87081adf600e6bcd281c8a8b6adc7a10713e42d90193b36dad39dc26b
|
|
BLAKE2b-256 checksum How to use checksums |
5f517a5a2dba1c134e2551aae959346ba4d87f00a2d61b62da03924f2ad30a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|