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: * `YAML-StructuredData downloads at Sourceforge `_ 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: * `YAML-StructuredData downloads at Sourceforge `_ 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: * `YAML-StructuredData downloads at Sourceforge `_ 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 ``_. Install as root to default directories (not recommended) :::::::::::::::::::::::::::::::::::::::::::::::::::::::: This method will install StructuredData on your systems default python library and binary directories. It is not recommended since it may conflict with your system's package manager. Advantages: - You don't have to modify environment variables in order to use StructuredData. - All users on your machine can easily use StructuredData. Disadvantages: - You must have root or administrator permissions to install StructuredData. - Files of StructuredData are mixed with other files from your system in the same directories making it harder to uninstall StructuredData. For installing StructuredData this way, as user "root" enter:: sudo python3 -m pip install --break-system-packages 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 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