Psychic.dev is an open-source data integration platform for LLMs. This is the Python client for Psychic
Project description
Psychic
psychicapi
is the python client library for Psychic.
What is Psychic?
Psychic is a platform for integrating with your customer’s SaaS tools like Notion, Zendesk, Confluence, and Google Drive via OAuth and syncing documents from these applications to your SQL or vector database. You can think of it like Plaid for unstructured data. Psychic is easy to set up - you use it by importing the react library and configuring it with your Psychic API key, which you can get from the Psychic dashboard. When your users connect their applications, you can view these connections from the dashboard and retrieve data using the server-side libraries.
Quick start
- Create an account in the dashboard.
- Use the react library to add the Psychic link modal to your frontend react app. Users will use this to connect their SaaS apps.
- Use
psychicapi
to retrieve documents from your active connections.
Usage
Initialization
from psychicapi import ConnectorId, Psychic
psychic = Psychic(secret_key="secret-key")
Get active connections
# Get all active connections and optionally filter by connector id and/or account id
connections = psychic.get_connections(connector_id=ConnectorId.notion, account_id=None)
Retrieve documents from a connection
docs = psychic.get_documents(ConnectorId.zendesk, "account_id")
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.