Skip to main content

# The Python PhotoBackup server implementation

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), currently in [version 2](https://github.com/PhotoBackup/api/releases/tag/v2).

## 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 file in the user’s home directory, containing:

  • BindAddress, the IP address (default is 127.0.0.1) ;

  • MediaRoot, the directory where the pictures are written in ;

  • Password, the SHA-512 hashed password ;

  • PasswordBcrypt, a Bcrypt-ed version of your SHA-512 hashed password ;

  • Port, the port (default is 8420).

## Usage

Launch the server with:

photobackup run

By default, it runs on host 127.0.0.1, port 8420 and reloads automatically.

## Production

To put in production, use [Nginx](http://nginx.org/) to bind a sever name to http://127.0.0.1:8420.

Metadata

Release files for photobackup_bottle 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for photobackup_bottle 0.1.2
File Size Uploaded Provenance Actions
photobackup_bottle-0.1.2.tar.gz 4.6 kB Without provenance Details for photobackup_bottle-0.1.2.tar.gz

Release files / photobackup_bottle-0.1.2.tar.gz

Download URL photobackup_bottle-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7fbc04fe488de83654033cc82c5d5234aa1935099e24bfb4bd32230b4c2f37f2
BLAKE2b-256 checksum
How to use checksums
e1cda6de1cd30ed715fcc990de241005c7190789dc1b77cbeb651c85e79951e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for photobackup_bottle 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page