UDC
The Universal Data Client
What is UDC?
Universal Data is an open source initiative to build a decentralized, cryptographically-secure ecosystem containerizing both structured and unstructured data.
UDC is the initial (alpha) client for that system. It currently supports both Quilt and Benchling URIs. For example:
udc list "quilt+s3://quilt-example#package=examples/wellplates"udc patch "benchling+https://dtt.benchling.com?name=Update#type=Entry&id=etr_123"
Installation
NOTE: UDC requires Python 3.10 or higher.
You can check your version with python3 --version.
If you have an older version, you will need to update your environment to a
newer version of Python.
Production Package
From PyPi:
python3 -m pip install udc # OR
python3 -m pip install --upgrade udc
which udc
Development Branch
python3 -m pip install git+https://github.com/data-yaml/udc.git@main
Cloned
When cloned from GitHub:
poetry install
<--
alias udc="poetry run udc"
-->
Usage
udc # prints help
List contents of a specific package instance
udc list "quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2"
e.g.,
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=README.md"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=autoplate_H1N1.csv"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=data_products.ipynb"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=neutralisation-altair.json"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=neutralisation.json"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=quilt_summarize.json"
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2&path=render.html"
List all versions of a package
udc list "quilt+s3://quilt-example#package=examples/wellplates" | head -n 1
e.g.,
"quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2c600f4c519efd5de868d5ef1e05ac92fcb0fa56044bb8c925c5f02"
List all packages in a registry
udc list quilt+s3://quilt-example | head -n 1
e.g.,
"quilt+s3://quilt-example#package=akarve/amazon-reviews:latest"
Get a package into a specific directory
You can also use put (replace) and patch (merge) if you have write access.
udc get "quilt+s3://quilt-example#package=examples/wellplates@6782cf98a2" --dir /tmp/wellplates
Checking the download directory:
ls /tmp/wellplates
Should reveal the following output:
README.md
autoplate_H1N1.csv
data_products.ipynb
neutralisation-altair.json
neutralisation.json
quilt_summarize.json
render.html
Development
Testing
make test
Continuous Monitoring
make watch
Create Package
WARNING: Do this only if you are the maintainer of the package.
Be sure you to first set your ~/.pypirc using poetry config pypi-token.pypi <pypi-api-token>
# merge PR
make tag
make pypi
poetry publish
Metadata
Release files for udc 0.3.3
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 |
|---|---|---|---|---|
| udc-0.3.3.tar.gz | 12.1 kB | Without provenance | Details for udc-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| udc-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for udc-0.3.3-py3-none-any.whl |
Total release size: 26.1 kB
Release files / udc-0.3.3.tar.gz
| Download URL | udc-0.3.3.tar.gz |
|---|---|
| Size | 12.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d21bb5313ef23f54ce2c259a059b2cf61ba753ae2d4050ef3dd3011b7de05af3
|
|
BLAKE2b-256 checksum How to use checksums |
bdc58812867c7f78e7e11da5e87bf7de980f7c5df2a9a0db2450935d6253abeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.11 Darwin/22.5.0
|
Release files / udc-0.3.3-py3-none-any.whl
| Download URL | udc-0.3.3-py3-none-any.whl |
|---|---|
| Size | 14.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6eea817a56ef011146386fcd85c608ef7d7fe97236beba1d16e61a33ef5836e
|
|
BLAKE2b-256 checksum How to use checksums |
c79c51c9af1f48cde032fd11d6219ee75458acec19dfe14e17e674a7f90bea76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.0 CPython/3.10.11 Darwin/22.5.0
|
Security for udc 0.3.3
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.