Skip to main content

A flask extension to build with Letta with ease

Project description

Letta-Flask

letta_flask is a Flask extension that provides a simple way to access Letta's web apis in a safe and secure way.

Installation

pip install letta-client letta-flask 

Usage

from flask import Flask, send_from_directory

from letta_flask import Letta, LettaFlaskConfig

app = Flask(__name__)

# Initialize

letta_flask = Letta(config=LettaFlaskConfig(
    base_url="http://localhost:8283",
    api_key="OPTIONAL_LETTA_API_KEY"
))

# Attach to app
letta_flask.init_app(app)

# do your routing
@app.route('/')
def index():
    return send_from_directory('index.html')

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

letta_flask-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

letta_flask-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file letta_flask-0.1.0.tar.gz.

File metadata

  • Download URL: letta_flask-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.6

File hashes

Hashes for letta_flask-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f41a73fa8ab58aa440951dd3b76e647fa3656e97d51f04a34b0b01ae3bea52dd
MD5 5ab5810057e3934c4eb40ae1116df0ef
BLAKE2b-256 d6ccc335def2d7e2c4131f6330940683d962ee5ef4eaacd5b1abaa060846c6ea

See more details on using hashes here.

File details

Details for the file letta_flask-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for letta_flask-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eb4a972633cbebe0a7f5d6a5b25a8afa3600fbf0852101f26fa22dcdbc3bb4e
MD5 bbbbe92e794e7385acfa75ea398a601c
BLAKE2b-256 82b26d0d9d2a72c4617b25a97dfc90ccf9598f0bafeab8858435b0bef3efd026

See more details on using hashes here.

Supported by

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