OMERO CLI upload
Plugin for uploading files using the OMERO Command Line Interface (CLI).
Requirements
OMERO 5.6.0 or newer
Python 3.6 or newer
Installing from PyPI
This section assumes that an OMERO.py is already installed.
Install the command-line tool using pip:
$ pip install -U omero-upload
Usage
The plugin is called from the command-line using the omero command.
To upload a single file:
$ omero upload <file>
This command will create an OriginalFile on the server and return an output of type OriginalFile:<id>.
To upload multiple files:
$ omero upload <file1> <file2>
This command will create two OriginalFile and return an output of type OriginalFile:<id1>,<id2>
By default, the mimetype will be guessed from the filename but it can be specified by using the –mimetype argument:
$ omero upload <file1> --mimetype 'test/csv'
Files can be in-place uploaded into the OMERO.server via symlinked rather than being copied. This requires the command to be run on the OMERO.server itself from a user having write permissions to the OMERO data repository, similarly to the [in-place import](https://docs.openmicroscopy.org/omero/latest/sysadmins/in-place-import.html). To run an in-place upload, the –data-dir argument must be passed to specify the binary OMERO directory:
$ omero upload <file1> --data-dir /OMERO
Instead of creating and returning a simple OriginalFile object, it is also possible to wrap the file within a FileAnnotation which can then be linked to other objects in the database. It is possible to specify the namespace of this FileAnnotation using the –namespace argument:
$ omero upload <file1> --wrap --namespace 'openmicroscopy.org/idr/analysis/original'
This command will create an OriginalFile and a FileAnnotation and return an output of type FileAnnotation:<id>.
Release process
This repository uses bump2version to manage version numbers. To tag a release run:
$ bumpversion release
This will remove the .dev0 suffix from the current version, commit, and tag the release.
To switch back to a development version run:
$ bumpversion --no-tag [major|minor|patch]
specifying major, minor or patch depending on whether the development branch will be a major, minor or patch release. This will also add the .dev0 suffix.
Remember to git push all commits and tags.
License
This project, similar to many Open Microscopy Environment (OME) projects, is licensed under the terms of the GNU General Public License (GPL) v2 or later.
Copyright
2019-2020, The Open Microscopy Environment
Metadata
Release files for omero-upload 0.4.0
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 |
|---|---|---|---|---|
| omero-upload-0.4.0.tar.gz | 14.6 kB | Without provenance | Details for omero-upload-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| omero_upload-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for omero_upload-0.4.0-py3-none-any.whl |
Total release size: 29.3 kB
Release files / omero-upload-0.4.0.tar.gz
| Download URL | omero-upload-0.4.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7d23ccfd006372d74be22776b9c163428d0c3f3cc9619ddba5e87f19b9208c2
|
|
BLAKE2b-256 checksum How to use checksums |
195bd5794872f41b19174646aca579605b98093349f491cabc265ed2fe42e5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Release files / omero_upload-0.4.0-py3-none-any.whl
| Download URL | omero_upload-0.4.0-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
49a16d5be1fef3aab0f4cfa886377ae4eac9c66cb44e62c25cc8660fb5f2a23d
|
|
BLAKE2b-256 checksum How to use checksums |
7c5f555547c2cb17ca6d17872301d458610db230d1fe7440678311ac4abbdc9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12
|
Security for omero-upload 0.4.0
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.