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 flask requests letta-client letta-flask

Usage

from flask import Flask, send_from_directory

from letta_flask import LettaFlask, LettaFlaskConfig

app = Flask(__name__)

# Initialize

letta_flask = LettaFlask(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.1.tar.gz (2.4 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.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: letta_flask-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.12

File hashes

Hashes for letta_flask-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8b58bd7a3b05e4e3d6245a14cf3a56b1ac01168dadb0f96ce89f5af2385fa186
MD5 c5c8500ad1074e4602c82b24901dc332
BLAKE2b-256 14e947b7e557b940b4718b75baca8e4c24d41fc2b152eeb10e8e7bf1190906be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for letta_flask-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85374cdd70b7738e44659d6160069fa5411d66958a42f39655a60b85e79604da
MD5 423534cae57760fc9c39fe13a13afc8a
BLAKE2b-256 d05d182d60c2a43c87fc8143f9363667b8fec8285d38ce91b680b5a56e4bb8ad

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