This release is a pre-release and may not be stable for production use.
dwcontents
A Jupyter content provider for data.world.
This content provider allows data.world users to store and manage their notebooks and files directly on data.world using Jupyter Notebook or Jupyter Lab.
Once enabled, the content provider will allow you to browse and access your entire data.world library, including datasets and projects that you have created, contribute to or have bookmarked.
Quick start
Install
You can install it using pip directly from PyPI:
pip install dwcontents
Configure
Find or create a file named jupyter_notebook_config.py under your Jupyter folder (~/.jupyter).
Update it to define two configuration parameters: - NotebookApp.contents_manager_class: Must be set to dwcontents.DwContents - DwContents.dw_auth_token: Must be your data.world API token (obtained at https://data.world/settings/advanced)
For example:
import dwcontents
c = get_config()
c.NotebookApp.contents_manager_class = dwcontents.DwContents
c.DwContents.dw_auth_token = 'YOUR TOKEN GOES HERE'
You can also use this to access data.world alongside your local files using dwcontents.HybridContents.
In that case, this is what your jupyter_notebook_config.py might look like:
import dwcontents
from notebook.services.contents.filemanager import FileContentsManager
c = get_config()
c.NotebookApp.contents_manager_class = dwcontents.HybridContents
c.HybridContents.manager_classes = {
# Associate the root directory with data.world
'': dwcontents.DwContents,
# Associate /~local with your working directory, completely disconnected from data.world
'~local': FileContentsManager
}
c.HybridContents.manager_kwargs = {
'': {
'dw_auth_token': 'YOUR TOKEN GOES HERE'
}
}
Run
Once installation and configuration are complete, run Jupyter Notebook or Labs like you normally would.
For example:
jupyter notebook
Known Issues
Jupyter supports a wide variety of file operations, whereas support for directories on data.world is limited. For a better experience, try to keep a flat file structure under your datasets and projects.
Metadata
Release files for dwcontents 1.0.0b5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dwcontents-1.0.0b5.tar.gz | 12.9 kB | Without provenance | Details for dwcontents-1.0.0b5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dwcontents-1.0.0b5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for dwcontents-1.0.0b5-py2.py3-none-any.whl |
Total release size: 31.9 kB
Release files / dwcontents-1.0.0b5.tar.gz
| Download URL | dwcontents-1.0.0b5.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78a79929dbf316eefa7cd36413aa364211ca80199b627e0f89903de24e997f80
|
|
BLAKE2b-256 checksum How to use checksums |
791b469d8df93d9bba3fdb70f10c7188acfe82b9f4cb824ddadac3ebdd1a4d31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dwcontents-1.0.0b5-py2.py3-none-any.whl
| Download URL | dwcontents-1.0.0b5-py2.py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f69b015c986ba30d5d5de3196f8584ea7d131b8ed1bd60eec13c609b5076b78b
|
|
BLAKE2b-256 checksum How to use checksums |
f9887ee92562b99ce38afb2b56b172ac361c9c0d6e63e828c7b8924aebe45ead
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dwcontents 1.0.0b5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.