Python bindings for the cppTango library; part of the Tango Distributed Control System toolkit
Actively maintained. Last release 3 weeks ago. A safe choice.
$
pip install pytango.. image:: https://gitlab.com/tango-controls/pytango/-/raw/9a45580eaaf453cd6dc12185ad951bbd214d6807/doc/_static/logo.png
:alt: PyTango logo
:align: center
:width: 70%
------------
|Doc Status|
|Gitlab Build Status|
|Gitlab Code Coverage|
|Pypi Version|
|Python Versions|
|Conda|
PyTango
=======
Main website: https://pytango.readthedocs.io
Python binding for Tango_, a library dedicated to distributed control systems.
Description
-----------
PyTango_ exposes the complete `Tango C++ API`_ through the ``tango`` python module.
It also adds a bit of abstraction by taking advantage of the Python capabilities:
- ``tango.client`` provides a client access to device servers and databases.
- ``tango.server`` provides base classes to declare and run device servers.
Requirements
------------
PyTango_ is compatible with python 3.10+.
General dependencies:
- cppTango_ and its dependencies: omniORB4 and libzmq
Python dependencies:
- numpy_
- psutil_
- packaging_
- typing-extensions_
- docstring_parser_
Build dependencies:
- pypa-build_
- scikit-build-core_
- pybind11_
- pybind11-stubgen_
Optional dependencies (telemetry):
- opentelemetry-api_
- opentelemetry-sdk_
- opentelemetry-exporter-otlp-proto-grpc_
- opentelemetry-exporter-otlp-proto-http_
Optional dependencies (test):
- gevent_
- pytest_
- pytest-forked_
- pytest-cov_
- pytest-asyncio_
.. note:: As a general rule, cppTango_ and pytango_ should share the same major
and minor version (for a version ``X.Y.Z``, ``X`` and ``Y`` should
match).
On some systems you may need to install ``omniORB4`` and ``libzmq`` related
development packages.
Install
-------
PyTango_ is available on PyPI_ as ``pytango``, with pre-built binaries for some platforms::
$ python -m pip install pytango
Alternatively, pre-built PyTango_ binaries can be installed from `Conda Forge_`::
$ conda install -c conda-forge pytango
For the very latest code, or for development purposes, PyTango_ can be built and installed from the
`sources`_. This is complicated by the dependencies - see the Getting Started section in the documentation_.
Usage
-----
To test the installation, import ``tango`` and check ``tango.utils.info()``::
>>> import tango
>>> print(tango.utils.info())
PyTango 10.3.0rc1 (10, 3, 0, 'rc', 1)
PyTango compiled with:
Python : 3.13.7
Numpy : 2.3.3
Tango : 10.3.0
pybind11 : 3.0.1
PyTango runtime is:
Python : 3.13.7
Numpy : 2.3.3
Tango : 10.3.1
PyTango running on:
uname_result(system='Linux', node='hasm7430lk', release='6.12.74+deb13+1-amd64', version='#1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08)', machine='x86_64')
For an interactive use, consider using ITango_, a tango IPython_ profile.
Documentation
-------------
Check out the documentation_ for more information.
Support and contribution
------------------------
You can get support from the `Tango forums`_, for both Tango_ and PyTango_ questions.
All contributions, `MR and bug reports`_ are welcome, please see: `How to Contribute`_ !
.. |Doc Status| image:: https://readthedocs.org/projects/pytango/badge/?version=latest
:target: https://pytango.readthedocs.io/en/latest
:alt:
.. |Gitlab Build Status| image:: https://img.shields.io/gitlab/pipeline-status/tango-controls/pytango?branch=develop&label=develop
:target: https://gitlab.com/tango-controls/pytango/-/pipelines?page=1&scope=branches&ref=develop
:alt:
.. |Gitlab code coverage| image:: https://img.shields.io/gitlab/pipeline-coverage/tango-controls/pytango.svg?branch=develop
:target: https://gitlab.com/tango-controls/pytango/-/pipelines?page=1&scope=branches&ref=develop
:alt:
.. |Pypi Version| image:: https://img.shields.io/pypi/v/PyTango.svg
:target: https://pypi.org/project/PyTango
:alt:
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/PyTango.svg
:target: https://pypi.org/project/PyTango/
:alt:
.. |Conda| image:: https://img.shields.io/conda/v/conda-forge/pytango
:target: https://anaconda.org/conda-forge/pytango
:alt:
.. _Tango: https://tango-controls.org
.. _Tango C++ API: https://tango-controls.github.io/cppTango-docs/index.html
.. _PyTango: https://gitlab.com/tango-controls/pytango
.. _PyPI: https://pypi.org/project/pytango
.. _Conda Forge: https://anaconda.org/conda-forge/pytango
.. _scikit-build-core: https://github.com/scikit-build/scikit-build-core
.. _pybind11-stubgen: https://pypi.org/project/pybind11-stubgen/
.. _pypa-build: https://github.com/pypa/build
.. _cppTango: https://gitlab.com/tango-controls/cppTango
.. _pybind11: https://github.com/pybind/pybind11
.. _numpy: https://pypi.org/project/numpy
.. _packaging: https://pypi.org/project/packaging
.. _psutil: https://pypi.org/project/psutil
.. _typing-extensions: https://pypi.org/project/typing_extensions
.. _opentelemetry-api: https://pypi.org/project/opentelemetry-api
.. _opentelemetry-sdk: https://pypi.org/project/opentelemetry-sdk
.. _opentelemetry-exporter-otlp-proto-grpc: https://pypi.org/project/opentelemetry-exporter-otlp-proto-grpc
.. _opentelemetry-exporter-otlp-proto-http: https://pypi.org/project/opentelemetry-exporter-otlp-proto-http
.. _gevent: https://pypi.org/project/gevent
.. _pytest: https://docs.pytest.org/en/latest/
.. _pytest-forked: https://github.com/pytest-dev/pytest-forked
.. _pytest-cov: https://github.com/pytest-dev/pytest-cov
.. _pytest-asyncio: https://github.com/pytest-dev/pytest-asyncio
.. _docstring_parser: https://github.com/rr-/docstring_parser
.. _ITango: https://pypi.org/project/itango/
.. _IPython: https://ipython.org
.. _documentation: https://pytango.readthedocs.io/en/latest
.. _Tango forums: https://tango-controls.org/community/forum
.. _MR and bug reports: PyTango_
.. _sources: PyTango_
.. _How to Contribute: https://tango-controls.readthedocs.io/projects/pytango/en/latest/how-to/how-to-contribute.html