Installation

structa is distributed in several formats. The following sections detail installation on a variety of platforms.

Ubuntu PPA

For Ubuntu Linux, it may be simplest to install from the author’s PPA as follows:

$ sudo add-apt-repository ppa://waveform/structa
$ sudo apt update
$ sudo apt install structa

If you wish to remove structa:

$ sudo apt remove structa

The deb-packaging includes a full man-page and bash-completion facilities. Tentative Debian packaging is also on Debian’s excellent salsa service, pending submission.

Snap

structa is also distributed as a snap:

$ snap install structa

If you wish to remove structa:

$ snap remove structa

Note that the snap packaging does not include a man-page or bash-completion (because it can’t).

Microsoft Windows

Firstly, install a version of Python 3 (this must be Python 3.5 or later), or ensure you have an existing installation of Python 3.

Ideally, for the purposes of following the Getting Started you should add your Python 3 install to the system PATH variable so that python can be easily run from any command line.

You can install structa with the “pip” tool like so:

C:\Users\me> pip install structa

Upgrading structa can be done via pip too:

C:\Users\me> pip install --upgrade structa

And removal can be performed via pip:

C:\Users\me> pip uninstall structa

Other Platforms

If your platform is not covered by one of the sections above, structa is available from PyPI and can therefore be installed with the Python setuptools “pip” tool:

$ pip install structa

On some platforms you may need to use a Python 3 specific alias of pip:

$ pip3 install structa

If you do not have either of these tools available, please install the Python setuptools package first.

You can upgrade structa via pip:

$ pip install --upgrade structa

And removal can be performed as follows:

$ pip uninstall structa