lightweight library for building farcaster frames using python and flask
Project description
framelib
lightweight library for building farcaster frames using python and flask
- easily render frames that conform to the farcaster specification
- configurable frame design
- parse frame action messages
- verify the frame action signatures using neynar
- query user profile info from warpcast
quickstart
install framelib
from pip
pip install framelib
simple example
from flask import Flask, url_for
from framelib import render_frame
app = Flask(__name__)
@app.route('/')
def home():
return render_frame(
image='https://opengraph.githubassets.com/0x/devinaconley/python-frames',
button1='next',
post_url=url_for('second_page', _external=True),
)
examples
see a complete example using python + flask + vercel here
and for a more advanced example involving multiplayer games, supabase integration, dynamic image rendering, and more, see rock paper scissors
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.
Source Distribution
framelib-0.0.3b2.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for framelib-0.0.3b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89eb3e62db57f52c61a796b0cb9501ec9cc4e00c214c9e4866897f36316baf93 |
|
MD5 | 6ae117d8b9b6d7d74c65492f3ea704ba |
|
BLAKE2b-256 | cf206b6cb3deb3677f31c1206c23d0e77b80e289fc03d499ff15af358cab9f11 |