Skip to main content

devpi-postgresql: a PostgreSQL storage backend for devpi-server

Project description

devpi-postgresql: a PostgreSQL storage backend for devpi-server

This plugin adds a PostgreSQL storage backend for devpi-server.

Installation

devpi-postgresql needs to be installed alongside devpi-server.

You can install it with:

pip install devpi-postgresql

Usage

When using the PostgreSQL storage, devpi-server expects an empty database. You have to create one like this: createdb devpi Depending on your PostgreSQL setup you have to create a user and grant it permissions on the new database like this:

CREATE ROLE devpi WITH LOGIN;
GRANT CREATE, CONNECT ON DATABASE devpi TO devpi;

Upon first initialization of devpi-server use --storage pg8000 to select the PostgreSQL backend.

By default it’ll use the devpi database on localhost port 5432. To change that, use storage pg8000:host=example.com,port=5433,database=devpi_prod. The possible settings are: database, host, port, unix_sock, user and password

All user/index files and metadata of devpi-server are stored in the database. A few things and settings are still stored as files in the directory specified by --serverdir.

Plugins like devpi-web don’t or can’t use the storage backend. They still handle their own storage.

Changelog

0.3.0 (2018-09-08)

Bug Fixes

  • Fixes required for bug fixes devpi-server 4.7.0.

0.2.0 (2018-01-17)

Bug Fixes

  • Use advisory locks to serialize writes.

0.1.1 (2017-12-12)

  • Add unix_sock, user and password to possible connection options. Thanks to Szabolcs Rumi for the patch.

0.1.0 (2016-02-11)

  • initial release

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

devpi-postgresql-0.3.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

devpi_postgresql-0.3.0-py2.py3-none-any.whl (7.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file devpi-postgresql-0.3.0.tar.gz.

File metadata

  • Download URL: devpi-postgresql-0.3.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: devpi-server/4.4.0 (py2.7.13; linux2)

File hashes

Hashes for devpi-postgresql-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3114800e5ce194a5a9024593636098aac984834cb9511a2a636d2dbd893bc597
MD5 4b57901b0645cf28405bf27acb068b48
BLAKE2b-256 198e23ca64b6ba39c91ee4eb269820c3fc6d36dd663c20ce99b8322c5556c52d

See more details on using hashes here.

File details

Details for the file devpi_postgresql-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for devpi_postgresql-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f863fde622a91bd05b51ed8543c96c37667b25b8321535b0ba54053599d35965
MD5 0c3f2ad64d9d9a84b4467403976fd348
BLAKE2b-256 7189e43d505cb74b87270d0ee873cb1b9034fe96903c497b100b802b3755ecde

See more details on using hashes here.

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