Metadata-Version: 2.1
Name: deepomatic-cli
Version: 0.7.2
Summary: Deepomatic CLI
Home-page: https://github.com/Deepomatic/deepocli
Author: deepomatic
Author-email: support@deepomatic.com
License: MIT License
Platform: UNKNOWN
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
Description-Content-Type: text/markdown
Requires-Dist: tqdm (==4.31.1)
Requires-Dist: requests (<3,>=2.19.0)
Requires-Dist: text-unidecode (==1.2)
Requires-Dist: greenlet (<2,>=0.4.17)
Requires-Dist: gevent (<22.1,>=20.9.0)
Requires-Dist: jsonschema (==3.0.1)
Requires-Dist: deepomatic-api (==0.9.3)
Requires-Dist: PyYAML (>=3.12)
Requires-Dist: GitPython (==2.1.15)
Requires-Dist: argcomplete (<2,>=1.11.1)
Requires-Dist: opencv-python-headless (==3.4.7.28) ; python_version <= "2.7"
Requires-Dist: opencv-python-headless (<3.5,>=3.4.8.29) ; python_version > "2.7"
Provides-Extra: rpc
Requires-Dist: deepomatic-rpc (>=0.8.0) ; extra == 'rpc'

# deepomatic-command-line-interface

[Deepomatic](https://www.deepomatic.com) Command Line Interface.

This command line interface has been made to help you interact with our services via the command line.

[![Build Status](https://travis-ci.com/Deepomatic/deepocli.svg?branch=master)](https://travis-ci.com/Deepomatic/deepocli)

# CLI Documentation

Find the complete documentation at [docs.deepomatic.com/deepomatic-cli/](https://docs.deepomatic.com/deepomatic-cli/)

# Installation

```bash
pip install deepomatic-cli
```

If you need rpc support, prefer:
```bash
# requires deeomatic-rpc package to be installed
pip install deepomatic-cli[rpc]
```

## Autocompletion

To activate the autocompletion the easiest way is to add the following line to your shell config file:

```bash
eval "$(register-python-argcomplete deepo)"
```

For example if you use bash:

```bash
cat <<"EOF" >> ~/.bashrc

# activate deepomatic-cli autocomplete
eval "$(register-python-argcomplete deepo)"
EOF
```

(If it slows down your shell startup too much, you can pre-generate the completion into a static file then source it in your `.bashrc`: that doesn't change when deepo-cli is updated (except when updating `argcomplete` itself).)

For more information, checkout the documentation of [argcomplete](https://github.com/kislyuk/argcomplete)

# FAQ

## `opencv-python` (-headless) installation takes forever

Depending on your pip version, it might rebuild it from source. 19.3 is the minimum supported version
- Check version with `pip -V`
- Update with `pip install 'pip>=19.3'`

## Window output doesn't work. I get a `cv2.error`.

`deepomatic-cli` ships with `opencv-python-headless` as most of the features don't need a GUI.
This also avoids requiring libGL on the system (it is for example usually not there in docker containers).
If you want to use the GUI features, we recommend installing `opencv-python` after installing `deepomatic-cli`:
```bash
pip install deepomatic-cli
opencv_install=$(pip3 freeze | grep opencv-python-headless | sed 's/-headless//g')
pip uninstall opencv-python-headless
pip install $opencv_install
```


# Bugs

Please send bug reports to support@deepomatic.com


