The simplest PhotoBackup server, made with bottle
Project description
# PhotoBackup Python server The Python3 implementation of PhotoBackup server, made with [bottle](http://bottlepy.org/). It follows the [official API](https://github.com/PhotoBackup/api/blob/master/api.raml).
## Installation Install through [PyPI](https://pypi.python.org/pypi):
pip install photobackup_bottle
Then run the installer, which asks for the directory to save your pictures to and the server password:
./venv/bin/python install.py
The script looks for the directory to be writable by the usual www-data user. It fails gracefully if it is not, just warning you to make it work properly. This step creates a photobackup_settings.py file in the current directory, containing: * MEDIA_ROOT, the directory where the pictures are written in ; * PASSWORD, the SHA-512 hashed password ; * PORT, the port (default is 8420).
## Usage Launch the server with:
./venv/bin/python photobackup.py
By default, it runs on host 0.0.0.0, port 8420 and reloads automatically.
## Production To put in production, use something like [gunicorn](http://gunicorn.org/) behind your webserver.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for photobackup_bottle-0.1.0a1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78b222935a7ea161bf5692ccd50fa237fdee8ffd3ec875d2a9c5f8d678fba001 |
|
MD5 | 9bed6c173a1df2ee962ffae03f117022 |
|
BLAKE2b-256 | 25f29375b9ae7b38a4048bec4dc526bc7424c69b812641fce01f2ee8bed3948f |