Skip to main content

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

  1. Create an account in the dashboard.
  2. Use the react library to add the Psychic link modal to your frontend react app. Users will use this to connect their SaaS apps.
  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

psychicapi-0.6.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

psychicapi-0.6-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page