Multicontents
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
- install multicontents
pip install multicontents
- 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
- clone the repo:
git clone git@github.com:lydian/multicontents.git - run testing with
make server - 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)
| File | Size | Uploaded | |
|---|---|---|---|
| multicontents-0.5.0.tar.gz | 11.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|