This app demonstrates how you can use FastAPI to store and encrypt data on, and retrieve and decrypt it from, a Tahoe server.
Install dependencies:
uv syncCreate a .env:
cp env-template .envuv run fastapi dev src/api/main.pyor
just runOnce the FastAPI server is running, navigate to http://127.0.0.1:8000 in a web browser to view the web interface.
To store and retrieve data via the web interface, you will need to be running your own Tahoe storage server and client locally. The app is configured to send requests to port 3456, which is the default port Tahoe listens on. The easiest way to get Tahoe up and running is by cloning the private-facts repo and running just dev from within the private-facts directory.
uv run pytestor
just test