{"id":15292580,"url":"https://github.com/lydian/multicontents","last_synced_at":"2025-04-13T11:12:25.087Z","repository":{"id":35460815,"uuid":"217813043","full_name":"lydian/multicontents","owner":"lydian","description":"Allow jupyter notebook to configure multiple contents manager ","archived":false,"fork":false,"pushed_at":"2024-04-25T17:33:41.000Z","size":70,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T17:51:23.947Z","etag":null,"topics":["jupyter","jupyter-notebook","jupyter-notebook-extension"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lydian.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-27T06:13:01.000Z","updated_at":"2024-04-26T17:51:23.948Z","dependencies_parsed_at":"2024-09-30T16:18:58.465Z","dependency_job_id":"a8939a1f-2f10-443b-8108-c36c6e9397de","html_url":"https://github.com/lydian/multicontents","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lydian%2Fmulticontents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lydian%2Fmulticontents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lydian%2Fmulticontents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lydian%2Fmulticontents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lydian","download_url":"https://codeload.github.com/lydian/multicontents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jupyter","jupyter-notebook","jupyter-notebook-extension"],"created_at":"2024-09-30T16:18:56.381Z","updated_at":"2025-04-13T11:12:25.061Z","avatar_url":"https://github.com/lydian.png","language":"Python","readme":"# Multicontents\n[![Build Status](https://travis-ci.org/lydian/multicontents.svg?branch=master)](https://travis-ci.org/lydian/multicontents)\n[![codecov](https://codecov.io/gh/lydian/multicontents/branch/master/graph/badge.svg)](https://codecov.io/gh/lydian/multicontents)\n\nIt's intentionally to do things like HybridContentsManager (from pgcontents) which allow setting up multiple sources on jupyter.\nWith extra features including:\n- Support moving data accross different sources\n- The package is pretty lightweight, which means you don't need to install extra library if you only want the multi backend support.\n\n\n## Install\n1. install multicontents\n```\npip install multicontents\n```\n2. configure jupyter_notebook_config.py\n```\nfrom multicontents import MultiContentsManager\nfrom IPython.html.services.contents.filemanager import FileContentsManager\nfrom s3contents import S3ContentsManager\n\nc.NotebookApp.contents_manager_class = MultiContentsManager\nc.MultiContentsManager.managers = {\n    \"home\": {\n        \"manager_class\": FileContentsManager,\n        \"kwargs\": {\n            \"root_dir\": os.environ[\"HOME\"]\n        },\n    },\n    \"s3\": {\n        \"manager_class\": S3ContentsManager,\n        \"kwargs\": {\n            \"bucket\": \"example-bucket\",\n            \"prefix\": \"path/to/notebooks\",\n        },\n    },\n}\n```\n\n## Develoop\n1. clone the repo:\n```git clone git@github.com:lydian/multicontents.git```\n2. run testing with ```make server```\n3. You can modify example config file for testing\n\nI'll try my best to do CR pull request!\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flydian%2Fmulticontents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flydian%2Fmulticontents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flydian%2Fmulticontents/lists"}