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
roadmap
upcoming features and improvements
- mint actions
- eip 712 signatures
- generated library documentation
- dynamic image rendering tools
- compatibility with other web frameworks
- state signing
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file framelib-0.0.6.tar.gz.
File metadata
- Download URL: framelib-0.0.6.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a54d585487de1eda71315456957fdd1fd81876d19e94e33c04a3a008b4eacaba
|
|
| MD5 |
f8b67243cb63a959dbfeb3a70724a1dc
|
|
| BLAKE2b-256 |
5d2624ed2b6f28ac53ed97ab5de6eb50fa69f5a34847797451aba62390b4183f
|
Provenance
The following attestation bundles were made for framelib-0.0.6.tar.gz:
Publisher:
publish.yml on devinaconley/python-framelib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
framelib-0.0.6.tar.gz -
Subject digest:
a54d585487de1eda71315456957fdd1fd81876d19e94e33c04a3a008b4eacaba - Sigstore transparency entry: 152095437
- Sigstore integration time:
-
Permalink:
devinaconley/python-framelib@eee2e7b1ecd19a71a7fbcfe0e391caf29b9e71e0 -
Branch / Tag:
refs/tags/0.0.6b2 - Owner: https://github.com/devinaconley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eee2e7b1ecd19a71a7fbcfe0e391caf29b9e71e0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file framelib-0.0.6-py3-none-any.whl.
File metadata
- Download URL: framelib-0.0.6-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
355455b777efeab9ee69fe30618e3dc4d793cfa6af75a11a0c16b0b5322d1dcd
|
|
| MD5 |
3cf628dedfce8734a60347ce61fd5255
|
|
| BLAKE2b-256 |
250731f5977989033f808d0506d0dea24158df16c23d030938facac050d9c2aa
|
Provenance
The following attestation bundles were made for framelib-0.0.6-py3-none-any.whl:
Publisher:
publish.yml on devinaconley/python-framelib
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
framelib-0.0.6-py3-none-any.whl -
Subject digest:
355455b777efeab9ee69fe30618e3dc4d793cfa6af75a11a0c16b0b5322d1dcd - Sigstore transparency entry: 152095439
- Sigstore integration time:
-
Permalink:
devinaconley/python-framelib@eee2e7b1ecd19a71a7fbcfe0e391caf29b9e71e0 -
Branch / Tag:
refs/tags/0.0.6b2 - Owner: https://github.com/devinaconley
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eee2e7b1ecd19a71a7fbcfe0e391caf29b9e71e0 -
Trigger Event:
push
-
Statement type: