A file hosting service.
static | ||
templates | ||
.gitignore | ||
buckler_aiohttp.py | ||
config.py.template | ||
LICENSE | ||
README.md | ||
saddle.py | ||
saddle.sql |
Saddle
A file hosting service similar to Pomf and Uguu but without the public nature.
Requirements
Python 3.7+
PostgreSQL 11.5+
Python packages: wheel gunicorn aiohttp aiohttp_jinja2 asyncpg uvloop
Install
$ psql
postgres=# CREATE DATABASE "saddle";
postgres=# CREATE USER "saddle" WITH PASSWORD 'password';
postgres=# ALTER ROLE "saddle" SET client_encoding TO 'utf8';
postgres=# ALTER ROLE "saddle" SET default_transaction_isolation TO 'read committed';
postgres=# ALTER ROLE "saddle" SET timezone TO 'UTC';
postgres=# GRANT ALL PRIVILEGES ON DATABASE "saddle" TO "saddle";
postgres=# \q
- Get on the floor
- Walk the dinosaur
Usage
gunicorn saddle:init_app --bind localhost:5000 --worker-class aiohttp.GunicornWebWorker