Skip to main content

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:

photobackup init

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:

photobackup run

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photobackup_bottle-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file photobackup_bottle-0.1.0.tar.gz.

File metadata

File hashes

Hashes for photobackup_bottle-0.1.0.tar.gz
Algorithm Hash digest
SHA256 293477541a065a263baccbc174a40f0dfac8faadb154bf240c448edc06a099a8
MD5 472e3d8cbf33234fbce9ede10bc673d5
BLAKE2b-256 41a7ba9f20adb0e6d8112a70c61662c8aac62e98a850d9c2348dcb2eb88f0b54

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page