https://github.com/slice/pawfile
a simple python file server
https://github.com/slice/pawfile
Last synced: about 1 year ago
JSON representation
a simple python file server
- Host: GitHub
- URL: https://github.com/slice/pawfile
- Owner: slice
- Created: 2018-08-10T01:15:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-23T01:46:43.000Z (over 7 years ago)
- Last Synced: 2025-01-21T16:24:00.393Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
pawfile
=======
A small file server written in Python 3.7 and Flask.
Features
--------
* File creation
* File deletion
* Basic password authentication via ``Authorization`` header
Missing Features
~~~~~~~~~~~~~~~~
* Caching (!!!)
* File editing
* Multiple users
Setting up
----------
Clone the repository somewhere, and run ``create_tables.py``::
python3 create_tables.py files.db
Create your configuration file, ``config.py``::
PASSWORD = 'used to upload and delete stuff'
Install dependencies with `poetry`::
poetry install
Start the application::
CONFIG=config.py some_wsgi_server pawfile.app
For Development
~~~~~~~~~~~~~~~
Run the steps above and start Flask's development server::
CONFIG=config.py FLASK_APP=pawfile.app FLASK_ENV=development flask run
Advanced Configuration
----------------------
Look at ``pawfile/config.py`` for the default configuration. You can override
those values in your own configuration file.