Skip to main content

Multicontents

Build Status codecov

It's intentionally to do things like HybridContentsManager (from pgcontents) which allow setting up multiple sources on jupyter. With extra features including:

  • Support moving data accross different sources
  • The package is pretty lightweight, which means you don't need to install extra library if you only want the multi backend support.

Install

  1. install multicontents
pip install multicontents
  1. configure jupyter_notebook_config.py
from multicontents import MultiContentsManager
from IPython.html.services.contents.filemanager import FileContentsManager
from s3contents import S3ContentsManager

c.NotebookApp.contents_manager_class = MultiContentsManager
c.MultiContentsManager.managers = {
    "home": {
        "manager_class": FileContentsManager,
        "kwargs": {
            "root_dir": os.environ["HOME"]
        },
    },
    "s3": {
        "manager_class": S3ContentsManager,
        "kwargs": {
            "bucket": "example-bucket",
            "prefix": "path/to/notebooks",
        },
    },
}

Develoop

  1. clone the repo: git clone git@github.com:lydian/multicontents.git
  2. run testing with make server
  3. You can modify example config file for testing

I'll try my best to do CR pull request!

Release files for multicontents 0.5.0

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

Source distribution (sdist)

Source distribution for multicontents 0.5.0
File Size Uploaded
multicontents-0.5.0.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multicontents 0.5.0
File Interpreter ABI Platform
multicontents-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / multicontents-0.5.0.tar.gz

Download URL multicontents-0.5.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
159c9d8a3e5970012de4e88414b55a4181bd93dd1e8897fdbf34b8e0477f2223
BLAKE2b-256 checksum
How to use checksums
61c0359229fd503663f911c5bc3e25b1cd880be44c23c19046ed700ce9a67ee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / multicontents-0.5.0-py3-none-any.whl

Download URL multicontents-0.5.0-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2808c0a57d98d5e0622066202e6417e515b608df7ea19ffda9993f8247515f3a
BLAKE2b-256 checksum
How to use checksums
ee3be34ac3f3b9434077f7ec74b0ba039b60bbe2b85e06437d63c1562c427e3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

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