Flask API for file-sharing.
Go to file
dogeystamp 65cae632b7
docs: make things more compatible with readthedocs
- added readthedocs.yaml
- write down steps to compile docs locally
- separated requirements for Sphinx and for Sachet
2023-05-28 13:04:21 -04:00
contrib contrib/testcmds.fish: updated 2023-05-07 22:14:15 -04:00
docs docs: make things more compatible with readthedocs 2023-05-28 13:04:21 -04:00
migrations models.py: logic error 2023-05-08 18:54:40 -04:00
sachet sachet/server/models.py: no more url_for errors in CLI 2023-05-28 10:48:28 -04:00
tests /users/password: implemented endpoint 2023-05-22 20:52:46 -04:00
.gitignore docs: make things more compatible with readthedocs 2023-05-28 13:04:21 -04:00
.readthedocs.yaml docs: make things more compatible with readthedocs 2023-05-28 13:04:21 -04:00
config-testing.yml Fix configurations 2023-03-10 18:17:03 -05:00
config.yml.example storage: implemented filesystem 2023-04-08 18:35:56 -04:00
LICENSE LICENSE: added 2023-05-28 11:23:32 -04:00
pytest.ini Fix configurations 2023-03-10 18:17:03 -05:00
README.md README.md: added extra info 2023-04-30 20:54:26 -04:00
requirements.txt docs: make things more compatible with readthedocs 2023-05-28 13:04:21 -04:00

sachet

sachet is a small file share server.

development

To start sachet in development mode:

Clone the repo.

git clone https://github.com/dogeystamp/sachet
cd sachet

Create a venv with required dependencies:

python -m venv venv
source venv/bin/activate
python -m pip3 install -r requirements.txt

Create a configuration file (and set the secret key!)

cp config.yml.example config.yml
vim config.yml

Start Flask in development mode:

flask --debug --app sachet.server run

tests

Tests are available with the following command:

pytest --cov --cov-report term-missing

linting

Please use the linter before submitting code.

black .

database maintenance

To clean up the database (remove stale entries):

flask --app sachet.server cleanup

Otherwise, to upgrade the database after a schema change:

flask --app sachet.server db upgrade