Skip to content

private-facts/private-facts-fastapi

Repository files navigation

Private Facts FastAPI

This app demonstrates how you can use FastAPI to store and encrypt data on, and retrieve and decrypt it from, a Tahoe server.

Installation

Install dependencies:

uv sync

Create a .env:

cp env-template .env

Running the app

uv run fastapi dev src/api/main.py

or

just run

Once 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.

Running the tests

uv run pytest

or

just test

About

A sample fastapi web app to integrate with a Tahoe-LAFS grid

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •