.. image:: https://github.com/ome/omero-upload/workflows/OMERO/badge.svg
:target: https://github.com/ome/omero-upload/actions
.. image:: https://badge.fury.io/py/omero-upload.svg
:target: https://badge.fury.io/py/omero-upload
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 <https://pip.pypa.io/en/stable/>`_::
$ 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 <https://pypi.org/project/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 <https://semver.org/>`_. 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
Raw data
{
"_id": null,
"home_page": "https://github.com/ome/omero-upload/",
"name": "omero-upload",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3",
"maintainer_email": "",
"keywords": "OMERO.CLI,plugin",
"author": "The Open Microscopy Team",
"author_email": "ome-devel@lists.openmicroscopy.org.uk",
"download_url": "https://files.pythonhosted.org/packages/19/5b/d5794872f41b19174646aca579605b98093349f491cabc265ed2fe42e5f1/omero-upload-0.4.0.tar.gz",
"platform": "",
"description": ".. image:: https://github.com/ome/omero-upload/workflows/OMERO/badge.svg\n :target: https://github.com/ome/omero-upload/actions\n\n.. image:: https://badge.fury.io/py/omero-upload.svg\n :target: https://badge.fury.io/py/omero-upload\n\nOMERO CLI upload\n================\n\nPlugin for uploading files using the OMERO Command Line Interface (CLI).\n\nRequirements\n------------\n\n* OMERO 5.6.0 or newer\n* Python 3.6 or newer\n\nInstalling from PyPI\n--------------------\n\nThis section assumes that an OMERO.py is already installed.\n\nInstall the command-line tool using `pip <https://pip.pypa.io/en/stable/>`_::\n\n $ pip install -U omero-upload\n\nUsage\n-----\n\nThe plugin is called from the command-line using the `omero` command.\n\nTo upload a single file::\n\n $ omero upload <file>\n\nThis command will create an `OriginalFile` on the server and return an output\nof type `OriginalFile:<id>`.\n\nTo upload multiple files::\n\n $ omero upload <file1> <file2>\n\nThis command will create two `OriginalFile` and return an output of type `OriginalFile:<id1>,<id2>`\n\nBy default, the mimetype will be guessed from the filename but it can be\nspecified by using the `--mimetype` argument::\n\n $ omero upload <file1> --mimetype 'test/csv'\n\nFiles can be in-place uploaded into the OMERO.server via symlinked rather than\nbeing copied. This requires the command to be run on the OMERO.server itself\nfrom a user having write permissions to the OMERO data repository, similarly\nto 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\nspecify the binary OMERO directory::\n\n $ omero upload <file1> --data-dir /OMERO\n\nInstead of creating and returning a simple `OriginalFile` object, it is also possible to wrap the file within a `FileAnnotation` which can then be linked\nto other objects in the database. It is possible to specify the namespace of this `FileAnnotation` using the `--namespace` argument::\n\n\n $ omero upload <file1> --wrap --namespace 'openmicroscopy.org/idr/analysis/original'\n\nThis command will create an `OriginalFile` and a `FileAnnotation` and return\nan output of type `FileAnnotation:<id>`.\n\nRelease process\n---------------\n\nThis repository uses `bump2version <https://pypi.org/project/bump2version/>`_ to manage version numbers.\nTo tag a release run::\n\n $ bumpversion release\n\nThis will remove the ``.dev0`` suffix from the current version, commit, and tag the release.\n\nTo switch back to a development version run::\n\n $ bumpversion --no-tag [major|minor|patch]\n\nspecifying ``major``, ``minor`` or ``patch`` depending on whether the development branch will be a `major, minor or patch release <https://semver.org/>`_. This will also add the ``.dev0`` suffix.\n\nRemember to ``git push`` all commits and tags.\n\nLicense\n-------\n\nThis project, similar to many Open Microscopy Environment (OME) projects, is\nlicensed under the terms of the GNU General Public License (GPL) v2 or later.\n\nCopyright\n---------\n\n2019-2020, The Open Microscopy Environment\n\n\n",
"bugtrack_url": null,
"license": "GPL-2.0+",
"summary": "Upload library for use in the OMERO CLI.",
"version": "0.4.0",
"project_urls": {
"Download": "https://github.com/ome/omero-upload//v0.4.0.tar.gz",
"Homepage": "https://github.com/ome/omero-upload/"
},
"split_keywords": [
"omero.cli",
"plugin"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7c5f555547c2cb17ca6d17872301d458610db230d1fe7440678311ac4abbdc9c",
"md5": "3e9694c86fc6f5db13bb9f54b05f40c8",
"sha256": "49a16d5be1fef3aab0f4cfa886377ae4eac9c66cb44e62c25cc8660fb5f2a23d"
},
"downloads": -1,
"filename": "omero_upload-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3e9694c86fc6f5db13bb9f54b05f40c8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3",
"size": 14661,
"upload_time": "2021-12-02T11:54:21",
"upload_time_iso_8601": "2021-12-02T11:54:21.229695Z",
"url": "https://files.pythonhosted.org/packages/7c/5f/555547c2cb17ca6d17872301d458610db230d1fe7440678311ac4abbdc9c/omero_upload-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "195bd5794872f41b19174646aca579605b98093349f491cabc265ed2fe42e5f1",
"md5": "a245cc5deefe385bc8704ccff5213ce7",
"sha256": "f7d23ccfd006372d74be22776b9c163428d0c3f3cc9619ddba5e87f19b9208c2"
},
"downloads": -1,
"filename": "omero-upload-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "a245cc5deefe385bc8704ccff5213ce7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3",
"size": 14593,
"upload_time": "2021-12-02T11:54:22",
"upload_time_iso_8601": "2021-12-02T11:54:22.382039Z",
"url": "https://files.pythonhosted.org/packages/19/5b/d5794872f41b19174646aca579605b98093349f491cabc265ed2fe42e5f1/omero-upload-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-12-02 11:54:22",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ome",
"github_project": "omero-upload",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "omero-upload"
}