Installation

secupy is available on pip:

$ pip install secupy

After the installation you have to activate license. Sign up on secupy site and get the authorization token.

Note

The installation is linked to host. With Free or Developer license you can activate your license only on a single host. With Team license you can activate more hosts. A docker container is assimilated to an host.

Activate your host with secupy activate

$ secupy activate -h
usage: secupy activate [-h] --token TOKEN [--label LABEL] [-v]

optional arguments:
  -h, --help     show this help message and exit
  --token TOKEN  authentication token
  --label LABEL  machine label
  -v, --verbose  enable debug

Note

LABEL is an optional parameter. If you don’t set it, the default value is the machine hostname

For example:

$ secupy activate --token 753beb5c5fadbf79c554******************** --label osx_host_1
License activated successfully

There are certain cases in which a host cannot be activated. The reason is ever visible in secupy activate response

401 (Unauthorized) - {"detail":"Invalid Token"}

401 (Unauthorized) - {"detail":"Host Blacklisted"}

401 (Unauthorized) - {"detail":"License Limit Reached"}