omero-py


Nameomero-py JSON
Version 5.19.5 PyPI version JSON
download
home_pagehttps://github.com/ome/omero-py
SummaryPython bindings to the OMERO.blitz server
upload_time2024-09-16 12:47:53
maintainerNone
docs_urlNone
authorThe Open Microscopy Team
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            OMERO.py
========

.. image:: https://github.com/ome/omero-py/workflows/Build/badge.svg
   :target: https://github.com/ome/omero-py/actions

.. image:: https://badge.fury.io/py/omero-py.svg
    :target: https://badge.fury.io/py/omero-py

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:

- `ZeroC IcePy 3.6`_
- numpy
- Pillow >= 10.0.0

Installation
------------

We recommend installing omero-py in a Python virtual environment.
You can create one using for example ``venv``, ``conda`` or ``mamba``.

Before installing ``omero-py``, we recommend to install the `ZeroC IcePy 3.6`_ Python bindings.
Our commercial partner `Glencoe Software <https://www.glencoesoftware.com/blog/2023/12/08/ice-binaries-for-omero.html>`_ has produced several Python wheels to install the Ice-Python bindings depending on the desired Python version and the operating system. Please visit `OMERO.py`_ for a list of supported platforms and Python versions.


When the wheel is installed, activate the virtual environment and install ``omero-py`` from `PyPI <https://pypi.org/>`_::

  $ pip install -U omero-py

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)

Since version 5.13.0, the use of ``omero certificates`` is required to ensure that an OMERO server installation has, at minimum, a self-signed certificate.

See: `OMERO`_ documentation for more details and 
`OMERO server certificate management plugin <https://pypi.org/project/omero-certificates/>`_

Usage
-----

- For Command Line usage, see `OMERO.CLI`_.
- For API documentation, see https://omero-py.readthedocs.io/

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 to create a virtual environment with the Ice-Python binding matching your Python version and your operating system, see `OMERO.py`_.

Activate the virtual environment and clone this repository::

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

The CI pipeline will automatically deploy the tag onto PyPI. Once released,
a Pull Request will be automatically  opened against
`conda-omero-py <https://github.com/ome/conda-omero-py>`_ to update the 
official `OMERO.py Conda package <https://anaconda.org/ome/omero-py>`_.

Documentation
-------------

The API documentation is generated using Sphinx.
To generate it:

- Install `Sphinx <https://www.sphinx-doc.org/en/master/>`_.
- Set the environment variable ``NO_TEMP_MANAGER`` to ``true``.
- In the ``docs`` directory, run ``make clean html``.

License
-------

OMERO.py is released under the GPL v2.

Copyright
---------

2009-2024, The Open Microscopy Environment, Glencoe Software, Inc.

.. _ZeroC IcePy 3.6: https://zeroc.com/downloads/ice/3.6
.. _OMERO.py: https://omero.readthedocs.io/en/stable/developers/Python.html
.. _OMERO.CLI: https://omero.readthedocs.io/en/stable/users/cli/index.html
.. _OMERO: https://omero.readthedocs.io/en/stable/index.html
.. _Running and writing tests: https://omero.readthedocs.io/en/stable/developers/testing.html

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ome/omero-py",
    "name": "omero-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "The Open Microscopy Team",
    "author_email": "ome-devel@lists.openmicroscopy.org.uk",
    "download_url": "https://files.pythonhosted.org/packages/62/ec/b447bd913552395cc808366fef8c0fb1c22c7980a4b39faa30ee033f341d/omero_py-5.19.5.tar.gz",
    "platform": null,
    "description": "OMERO.py\n========\n\n.. image:: https://github.com/ome/omero-py/workflows/Build/badge.svg\n   :target: https://github.com/ome/omero-py/actions\n\n.. image:: https://badge.fury.io/py/omero-py.svg\n    :target: https://badge.fury.io/py/omero-py\n\nIntroduction\n------------\n\nOMERO.py provides Python bindings to the OMERO.blitz server\nas well as a pluggable command-line interface.\n\nDependencies\n------------\n\nDirect dependencies of OMERO.py are:\n\n- `ZeroC IcePy 3.6`_\n- numpy\n- Pillow >= 10.0.0\n\nInstallation\n------------\n\nWe recommend installing omero-py in a Python virtual environment.\nYou can create one using for example ``venv``, ``conda`` or ``mamba``.\n\nBefore installing ``omero-py``, we recommend to install the `ZeroC IcePy 3.6`_ Python bindings.\nOur commercial partner `Glencoe Software <https://www.glencoesoftware.com/blog/2023/12/08/ice-binaries-for-omero.html>`_ has produced several Python wheels to install the Ice-Python bindings depending on the desired Python version and the operating system. Please visit `OMERO.py`_ for a list of supported platforms and Python versions.\n\n\nWhen the wheel is installed, activate the virtual environment and install ``omero-py`` from `PyPI <https://pypi.org/>`_::\n\n  $ pip install -U omero-py\n\nSetting of the environment variable ``OMERODIR`` is required\nfor some functionality.\n``$OMERODIR/var/log/`` directory will contain log files.\n``$OMERODIR/etc/grid/config.xml`` is used to store config.\n\nIf ``OMERODIR`` is set to an OMERO.server directory,\nthe ``import`` and ``admin`` commands will be enabled::\n\n    # If you need import or admin commands:\n    export OMERODIR=/path/to/OMERO.server/\n\n    # otherwise, can choose any location.\n    export OMERODIR=$(pwd)\n\nSince version 5.13.0, the use of ``omero certificates`` is required to ensure that an OMERO server installation has, at minimum, a self-signed certificate.\n\nSee: `OMERO`_ documentation for more details and \n`OMERO server certificate management plugin <https://pypi.org/project/omero-certificates/>`_\n\nUsage\n-----\n\n- For Command Line usage, see `OMERO.CLI`_.\n- For API documentation, see https://omero-py.readthedocs.io/\n\nContributing\n------------\n\nSee: `OMERO`_ documentation\n\nDeveloper installation\n----------------------\n\nOMERO.py currently depends on an externally built artifact which is automatically bundled in the PyPI package.\n\nFor a development installation, we recommend to create a virtual environment with the Ice-Python binding matching your Python version and your operating system, see `OMERO.py`_.\n\nActivate the virtual environment and clone this repository::\n\n    $ git clone https://github.com/ome/omero-py\n    $ cd omero-py\n    $ python setup.py devtarget\n    $ pip install -e .\n\n\nThis will install ``omero-py`` into your virtualenv as an editable package, so any edits to ``src`` files should be reflected in your installation.\nNote that if you add or remove files you must rerun the last two steps.\n\nRunning tests\n-------------\n\nUnit tests are located under the `test` directory and can be run with pytest.\n\nIntegration tests\n^^^^^^^^^^^^^^^^^\n\nIntegration tests are stored in the main repository (ome/openmicroscopy) and depend on the\nOMERO integration testing framework. Reading about `Running and writing tests`_ in the `OMERO`_ documentation\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.s essential.\n\nThe CI pipeline will automatically deploy the tag onto PyPI. Once released,\na Pull Request will be automatically  opened against\n`conda-omero-py <https://github.com/ome/conda-omero-py>`_ to update the \nofficial `OMERO.py Conda package <https://anaconda.org/ome/omero-py>`_.\n\nDocumentation\n-------------\n\nThe API documentation is generated using Sphinx.\nTo generate it:\n\n- Install `Sphinx <https://www.sphinx-doc.org/en/master/>`_.\n- Set the environment variable ``NO_TEMP_MANAGER`` to ``true``.\n- In the ``docs`` directory, run ``make clean html``.\n\nLicense\n-------\n\nOMERO.py is released under the GPL v2.\n\nCopyright\n---------\n\n2009-2024, The Open Microscopy Environment, Glencoe Software, Inc.\n\n.. _ZeroC IcePy 3.6: https://zeroc.com/downloads/ice/3.6\n.. _OMERO.py: https://omero.readthedocs.io/en/stable/developers/Python.html\n.. _OMERO.CLI: https://omero.readthedocs.io/en/stable/users/cli/index.html\n.. _OMERO: https://omero.readthedocs.io/en/stable/index.html\n.. _Running and writing tests: https://omero.readthedocs.io/en/stable/developers/testing.html\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python bindings to the OMERO.blitz server",
    "version": "5.19.5",
    "project_urls": {
        "API": "https://omero-py.readthedocs.io/",
        "Bug tracker": "https://github.com/ome/omero-py/issues",
        "Documentation": "https://docs.openmicroscopy.org/omero/latest/developers/Python.html",
        "Homepage": "https://github.com/ome/omero-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1a8bd28f3b7569e436dcbffca349b0ba8c414102f5a5817e5205679cd40c21ef",
                "md5": "e3d88a0b0e39069016c4399936ea7647",
                "sha256": "89f75fb6210b304ce677ef194c6b7f7c4b0a05ff8bc7c42260a7d27823e0e9aa"
            },
            "downloads": -1,
            "filename": "omero_py-5.19.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e3d88a0b0e39069016c4399936ea7647",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2781261,
            "upload_time": "2024-09-16T12:47:51",
            "upload_time_iso_8601": "2024-09-16T12:47:51.745758Z",
            "url": "https://files.pythonhosted.org/packages/1a/8b/d28f3b7569e436dcbffca349b0ba8c414102f5a5817e5205679cd40c21ef/omero_py-5.19.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "62ecb447bd913552395cc808366fef8c0fb1c22c7980a4b39faa30ee033f341d",
                "md5": "71333819f54a904a0e2ff7ea60ccb0e2",
                "sha256": "b1ba9e3dbd8281d7bdb00b3b48d70fbec3bc967f25f4b19f713c9cbbc8b83375"
            },
            "downloads": -1,
            "filename": "omero_py-5.19.5.tar.gz",
            "has_sig": false,
            "md5_digest": "71333819f54a904a0e2ff7ea60ccb0e2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2340619,
            "upload_time": "2024-09-16T12:47:53",
            "upload_time_iso_8601": "2024-09-16T12:47:53.194865Z",
            "url": "https://files.pythonhosted.org/packages/62/ec/b447bd913552395cc808366fef8c0fb1c22c7980a4b39faa30ee033f341d/omero_py-5.19.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-16 12:47:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ome",
    "github_project": "omero-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "omero-py"
}
        
Elapsed time: 0.46666s