pgcontents

A Postgres-backed ContentsManager implementation for IPython

  • 所有者: quantopian/pgcontents
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

PGContents

PGContents is a PostgreSQL-backed implementation of IPEP 27 <https://github.com/ipython/ipython/wiki/IPEP-27:-Contents-Service>_. 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 developed as part of the Quantopian Research Environment <https://www.quantopian.com/research>_.

Getting Started

Prerequisites:

  • Write access to an empty PostgreSQL <http://www.postgresql.org>_ database.
  • A Python installation with Jupyter Notebook <https://github.com/jupyter/notebook>_ >= 5.0.

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. (Alternatively, you can set the PGCONTENTS_DB_URL environment variable, or pass --db-url on the command line).
  3. Configure Jupyter to use pgcontents as its storage backend. This can be done from the command line or by modifying your notebook config file. On a Unix-like system, your notebook config will be located at ~/.jupyter/jupyter_notebook_config.py. See the examples directory for example configuration files.
  4. Enjoy your filesystem-free Jupyter experience!

Demo Video

You can see a demo of PGContents in action in this presentation from JupyterCon 2017_.

.. _this presentation from JupyterCon 2017 : https://youtu.be/TtsbspKHJGo?t=917

主要指标

概览
名称与所有者quantopian/pgcontents
主编程语言Python
编程语言Python (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2014-12-12 20:57:18
推送于2023-04-07 02:33:15
最后一次提交2020-06-03 13:14:00
发布数9
最新版本名称v0.6.0 (发布于 )
第一版名称v0.0.2 (发布于 )
用户参与
星数150
关注者数34
派生数86
提交数233
已启用问题?
问题数34
打开的问题数9
拉请求数37
打开的拉请求数2
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?