Universal Data Tool Python
Python module for data labeling leveraging the Universal Data Tool.
Features
- Open Universal Data Tool in Jupyter notebook
- Massage data into and out of the UDT format
Usage
pip install universaldatatool
import universaldatatool as udt
ds = udt.Dataset(
type="image_segmentation",
image_paths=["/path/to/birds/good_bird.jpg","/path/to/birds/bird2.jpg"],
labels=["good bird", "bad bird"]
)
# Opens dataset directly in jupyter notebook
ds.open()
API
Submodules
- udt.nb: jupyter notebook widget
Methods
- udt.load_json(file_path): Load UDT File from json
- udt.load_csv(file_path): Load UDT File from csv
- udt.Dataset(type=None, image_paths=None, labels=None)
- udt.Interface(type=None, labels=None): Create UDT interface
- udt.Sample(image_url=None, document=None, ...) : Create UDT Sample
- udt.nb.display(udt_file): Display Universal Data Tool widget
TODOs
-
image_path,video_pathetc. support - Better Docs
- Usage Examples
- Load CSV or JSON from files
- Collaborative synchronization w/ universaldatatool.com
-
edit/openshould check that there are no local paths - Helpful stringification
- Make it easy to run tests
- Image Segmentation kills jupyter notebook scrolling
- Make JupyterLab Extension 1 2 3
- Continuous integration testing via Github Actions
- Cypress browser testing
Development
Running Cypress Tests
Cypress will automatically open a browser and create jupyter notebooks with different test scenarios. It's really fast for developing and testing. To use it, you must first run our jupyter docker container, which mounts volumes properly such that universaldatatool can be imported. To do this, run:
yarn start:jupyter
A jupyter notebook is now running in the background.
You can now run the cypress tests in development mode by running...
yarn cy:run
An electron browser will open with automated tests.
How To Test
Each file in the universaldatatool/tests directory can be tested with pytest e.g.
python -m pytest universaldatatool/tests/example1.py
Releasing
Metadata
Release files for universaldatatool 0.0.4
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 | |
|---|---|---|---|---|
| universaldatatool-0.0.4.tar.gz | 11.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| universaldatatool-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / universaldatatool-0.0.4.tar.gz
| Download URL | universaldatatool-0.0.4.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f379b2ae79f4ac58cf8ccd592ec9cabf8b31cc1122a186d7bf5feda1206bda0
|
|
BLAKE2b-256 checksum How to use checksums |
79925a1460bd1248ad0fdb533c191ad665799c6f5df4c896c58b0b64bac9d402
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5
|
Release files / universaldatatool-0.0.4-py3-none-any.whl
| Download URL | universaldatatool-0.0.4-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63ab79733d0d23523d16ef017f4f1f01872488807ee416920ad32c233027da02
|
|
BLAKE2b-256 checksum How to use checksums |
4b522d8ede6f131366a81a7e979b29527ae53962cf82018cc8fef45a27a485c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.5
|
Security for universaldatatool 0.0.4
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.