apps/docs/memory-api/sdks/native.mdx
For more information, see the full updated references at
<Columns cols={2}> <Card title="Python SDK" icon="python" href="https://pypi.org/project/supermemory/"> </Card> <Card title="Javascript SDK" icon="js" href="https://www.npmjs.com/package/supermemory"> </Card> </Columns># install from PyPI
pip install --pre supermemory
import os
from supermemory import Supermemory
client = Supermemory(
api_key=os.environ.get("SUPERMEMORY_API_KEY"), # This is the default and can be omitted
)
response = client.search.documents(
q="documents related to python",
)
print(response.results)
npm install supermemory
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
async function main() {
const response = await client.search.documents({ q: 'documents related to python' });
console.debug(response.results);
}
main();