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
- on-chain frame transactions
quickstart
install framelib
from pip
pip install framelib
simple example
from flask import Flask, url_for
from framelib import frame
app = Flask(__name__)
@app.route('/')
def home():
return 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
for an example that uses on-chain frame transactions, see the weth frame
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.4b2.tar.gz
(8.9 kB
view hashes)
Built Distribution
framelib-0.0.4b2-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for framelib-0.0.4b2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e048ae0ccdefae54cc4ec31f51d0cf0e5433ebcb8a47f1fef7ee2316b060233 |
|
MD5 | 4ab4e92c742c079c20a583bc09d63dea |
|
BLAKE2b-256 | 0cb31780610e01782d1904932b528c6884c5bbbde88086dd2f80a9bf86e2b8fa |