Skip to main content
https://github.com/ome/omero-py/workflows/Build/badge.svg https://badge.fury.io/py/omero-py.svg

Introduction

OMERO.py provides Python bindings to the OMERO.blitz server as well as a pluggable command-line interface.

Dependencies

Direct dependencies of OMERO.py are:

Installation

We recommend installing omero-py in a Python virtual environment. You can create one using either venv or conda (preferred). If you opt for Conda, you will need to install it first, see miniconda for more details.

To install omero-py using conda (preferred):

conda create -n myenv -c ome python=3.6 zeroc-ice36-python omero-py
conda activate myenv

Alternatively install omero-py using venv:

python3.6 -m venv myenv
. myenv/bin/activate
pip install omero-py

You may need to replace python3.6 with python or python3 depending on your Python distribution.

Setting of the environment variable OMERODIR is required for some functionality. $OMERODIR/var/log/ directory will contain log files. $OMERODIR/etc/grid/config.xml is used to store config.

If OMERODIR is set to an OMERO.server directory, the import and admin commands will be enabled:

# If you need import or admin commands:
export OMERODIR=/path/to/OMERO.server/

# otherwise, can choose any location.
export OMERODIR=$(pwd)

See: OMERO documentation for more details.

Usage

  • For OMERO python language bindings, see OMERO.py.

  • For Command Line usage, see OMERO.CLI.

Contributing

See: OMERO documentation

Developer installation

OMERO.py currently depends on an externally built artifact which is automatically bundled in the PyPI package.

For a development installation we recommend creating a virtualenv with the following setup (example assumes python3.6 but you can create and activate the virtualenv using any compatible Python):

To install using venv:

python3.6 -mvenv myenv
. myenv/bin/activate
git clone https://github.com/ome/omero-py
cd omero-py
python setup.py devtarget
pip install -e .

To install omero-py using conda (preferred):

conda create -n myenv -c ome python=3.6 zeroc-ice36-python
conda activate myenv
git clone https://github.com/ome/omero-py
cd omero-py
python setup.py devtarget
pip install -e .

This will install omero-py into your virtualenv as an editable package, so any edits to src files should be reflected in your installation. Note that if you add or remove files you must rerun the last two steps.

Running tests

Unit tests are located under the test directory and can be run with pytest.

Integration tests

Integration tests are stored in the main repository (ome/openmicroscopy) and depend on the OMERO integration testing framework. Reading about Running and writing tests in the OMERO documentation

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.s essential.

The CI pipeline will automatically deploy the tag onto PyPI. Once released, a Pull Request needs to be opened against conda-omero-py to update the official OMERO.py Conda package.

License

OMERO.py is released under the GPL v2.

Metadata

Release files for omero-py 5.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for omero-py 5.8.2
File Size Uploaded
omero-py-5.8.2.tar.gz 2.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for omero-py 5.8.2
File Interpreter ABI Platform
omero_py-5.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 MB

Release files / omero-py-5.8.2.tar.gz

Download URL omero-py-5.8.2.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c636ee6141d7b64c17f37f13159d5f9672d1050ae7bd482d3909404e5ea1c568
BLAKE2b-256 checksum
How to use checksums
9a29f11003ce2c57110d0d1b5adec84bb72f697e6b31c3f6495caf2a96f257a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

Release files / omero_py-5.8.2-py3-none-any.whl

Download URL omero_py-5.8.2-py3-none-any.whl
Size 2.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4bfa8210ef2944804bcb6e1bc571be3026fd360ae7bb84ddd53bde0e927b66cb
BLAKE2b-256 checksum
How to use checksums
3eb3a5b966e8a0db3857211627fc59a7d92ca998aa6025cfb2d8faca636c9e9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

Release history Release notifications | RSS feed

5.23.0

2 release files

5.22.1

2 release files

5.21.3

2 release files

5.21.1

2 release files

5.21.0

2 release files

5.19.8

2 release files

5.19.5

2 release files

5.19.4

2 release files

5.19.3

2 release files

5.19.2

2 release files

5.19.1

2 release files

5.19.0

2 release files

5.18.0

2 release files

5.17.0

2 release files

5.15.0

2 release files

5.14.0

2 release files

5.13.1

2 release files

5.13.0

2 release files

5.11.2

2 release files

5.11.1

2 release files

5.10.3

2 release files

5.10.1

2 release files

5.9.3

2 release files

5.9.2

2 release files

5.9.1

2 release files

5.9.0

2 release files

5.8.3

2 release files

This release

5.8.2 This release

2 release files

5.8.1

2 release files

5.8.0

2 release files

5.7.1

2 release files

5.7.0

2 release files

5.6.2

2 release files

5.6.1

2 release files

5.6.0

2 release files

5.5.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page