openclean Notebook Environment - User Interface
About
This package provides a graphical user interface for openclean that can be used to visualize and manipulate datasets in notebook environments like Jupyter Notebooks.
Installation
The package can be installed using pip.
pip install openclean-notebook
You can use the additional [jupyter] option to install the Python Jupyter package if you want to use the UI within a Jupyter Notebook.
pip install openclean-notebook[jupyter]
The notebook UI is a JavaScript bundle that is included in the installed package.
Usage
To use the notebook UI, an instance of the openclean_notebook.engine.OpencleanAPI is required. The API engine provides a namespace that manages a set of datasets that are identified by unique names. The engine is associated with an object repository that provides additional functionality to register objects like functions, lookup tables, etc.. The engine is also responsible for coordinating the communication with the JavaScript UI.
A helper function to create an instance of the openclean API is included in the openclean_notebook package. For example:
from openclean_notebook import DB
db = DB(basedir='.openclean', create=True)
In this example a new instance of the API engine is created that stores all dataset files in a local folder .openclean. The create=True flag ensures that a fresh instance is created every time the code (cell) is run.
The next step is to create a new dataset in the API, e.g., from a given data frame or data file. Each dataset has to have a unique name.
db.load_dataset(source=source='./data/bre9-aqqr.tsv.gz', name='covid-cases')
You can then either view and edit the full dataset using the notebook UI or (e.g., for performance reasons) a sample of the dataset. The recipe that is created from the interactions in the notebook UI can later be applied on the full dataset. In the example below we use a sample of 100 rows for display in the notebook UI.
db.edit('covid-cases', n=100)
For a full example please have a look at the example notebook that also shows how to register and run commands on the dataset.
Metadata
Release files for openclean-notebook 0.1.7
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 |
|---|---|---|---|---|
| openclean-notebook-0.1.7.tar.gz | 1.4 MB | Without provenance | Details for openclean-notebook-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openclean_notebook-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for openclean_notebook-0.1.7-py3-none-any.whl |
Total release size: 2.8 MB
Release files / openclean-notebook-0.1.7.tar.gz
| Download URL | openclean-notebook-0.1.7.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e4ad317e470fbb002011f653ae55480f8af2d4263e8323ad51b376d3f4bcde8
|
|
BLAKE2b-256 checksum How to use checksums |
64b10438d413b44b54d3869353a53902a3a5e992741fde8d05eb090d76ff9ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / openclean_notebook-0.1.7-py3-none-any.whl
| Download URL | openclean_notebook-0.1.7-py3-none-any.whl |
|---|---|
| Size | 1.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6acb4dfa0f3de532dd42ddf8b8d3b3d58507ccbad5f34adb60338e90d86260c
|
|
BLAKE2b-256 checksum How to use checksums |
6c70415496dfce1934e92bc9a8eb9de5e6202670b10b9d31673850760b4286a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Security for openclean-notebook 0.1.7
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.