Skip to main content

A Postgres-backed ContentsManager for IPython.

Project description

PGContents is a PostgreSQL-backed implementation of IPEP 27. It aims to a be a transparent, drop-in replacement for IPython’s standard filesystem-backed storage system. PGContents’ PostgresContentsManager class can be used to replace all local filesystem storage with database-backed storage, while its PostgresCheckpoints class can be used to replace just IPython’s checkpoint storage. These features are useful when running IPython in environments where you either don’t have access to—or don’t trust the reliability of—the local filesystem of your notebook server.

This repository is under development as part of the Quantopian Research Environment, currently in Open Beta.

Getting Started

Prerequisites:
  • Write access to an empty PostgreSQL database.

  • A Python installation with IPython 3.2.x.

Installation:

  1. Install pgcontents from PyPI via pip install pgcontents.

  2. Run pgcontents init to configure your database. You will be prompted for a database URL for pgcontents to use for storage.

  3. Configure IPython Notebook to use pgcontents as its storage backend. This can be done from the command line or by modifying your ipython_notebook_config.py file. For a standard IPython installation on Unix-like systems, your profile will be located located at ~/.ipython/profile_default/ipython_notebook_config.py. See the examples directory for example configuration files.

  4. Enjoy your filesystem-free IPython experience!

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

pgcontents-0.2.1.tar.gz (33.8 kB view details)

Uploaded Source

File details

Details for the file pgcontents-0.2.1.tar.gz.

File metadata

  • Download URL: pgcontents-0.2.1.tar.gz
  • Upload date:
  • Size: 33.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pgcontents-0.2.1.tar.gz
Algorithm Hash digest
SHA256 101e9f47fbc495fedc1743b5c1e3b8c26d84051fd053fd7ade4fbe4b92512ec1
MD5 68c75991ad8f6f96e6b99db96e4dfd02
BLAKE2b-256 939cef33d801814c3f3facd32c0a5330593dc278ded865f3121e5612b817ec5c

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