Installing StructuredData

Parts of StructuredData

StructuredData consists of scripts, python modules and documentation files.

StructuredData is available on PyPI, as Debian package, RPM package for Fedora Linux, as *.tar.gz file, zip file and as source code. tar.gz or zip and as source code. The sections below describe all installation options.

Requirements

StructuredData requires at least Python version 3.9 or newer.

StructuredData is tested on Debian and Fedora Linux distributions but should run on all linux distributions. It probably also runs on other flavours of unix, probably even MacOS, but this is not tested.

It may run on windows, escpecially the Cygwin environment, but this is also not tested.

Install from PyPI with pip

In order to install StructuredData with pip, you use the command:

pip install --user yaml-structureddata

You find documentation for the usage of pip at Installing Python Modules.

Install debian packages

For some debian versions there are debian packages that you can download at:

The most recent debian packages are cryptographically signed. My public key is in file DEB-GPG-KEY-StructuredData.asc.

Install rpm packages

For some fedora versions there are rpm packages you can download at:

The most recent debian packages are cryptographically signed. My public key is in file RPM-GPG-KEY-StructuredData.asc

In order to install the package, you first have to import the public key:

sudo rpm --import RPM-GPG-KEY-StructuredData.asc

before you can install the package with:

sudo rpm -i /work/dist/[RPM-PACKAGE]

If you don’t want to import my public key you can also pass option –nosignature to command rpm -i.

Install from source (tar.gz or zip file)

Download the file from here:

The StructuredData distribution contains the file pyproject.toml. To install StructuredData from source you always use pip.

The following chapters are just examples how you could install StructuredData. For a complete list of all possibilities see https://docs.python.org/3/installing/index.html#installing-index.

Install in your home

In this case all files of StructuredData are installed in directory ‘.local’ in your home.

Advantages:

  • All StructuredData files are below $HOME/.local. You can uninstall StructuredData simply with pip.

  • You don’t need root or administrator permissions.

Disadvantages:

  • Only you can use this installation.

For installing StructuredData this way, enter:

pip install --user <TAR-FILE>

Install in virtual environment

If you don’t have a Python virtual environment, create it like in the following example which creates directory ‘VENV’ in your home directory:

cd $HOME && python -m venv VENV

Activate the virtual environment with:

source $HOME/VENV/bin/activate

Now install StructuredData with:

pip install <TAR-FILE>