Installation

As a Python package, rechu is meant to be easy to install. Additional configuration to use specific databases or external sources may add some extra steps, but this document outlines the common installation options for initial setup.

You should already have Python installed. We support versions 3.9 through 3.13. We also recommend installing a virtual environment to keep the module and its dependencies in an isolated location that remains separate from system/user/global packages. If you choose to skip creating a virtual environment, then you still need to ensure you have a package manager such as pip or poetry installed.

See also

More details on how to set up your Python to install packages can be found on Installing Packages.

From GitHub releases

Released versions are also published on GitHub along with an extract of the changelog that indicates the notable changes in the version. This can be seen as an alternative download location for the built distribution of the package.

You can find the same files for the wheel and the source distribution of the package on the GitHub releases for each version, along with the source of the entire repository at the moment of the release (based on Git tags) in zip and tarball forms. The wheel file of the latest GitHub release should be preferred when installing the package from this source. You may again download a file and install it with pip install <file> or copy the link and provide it to pip install <url> or poetry add <url>. Note that this source does not support easy upgrading through version selectors, so some manual edits would be needed if this method is used.

From repository

If you just want to make use of the command-line capabilities of rechu and do not necessary want to reuse it in other code, another alternative is to install it from the source code in the repository.

For this scenario, we assume you have Git installed for CLI usage as well as GNU make.

  1. Clone the GitHub repository using the Git command line program: git clone https://github.com/lhelwerd/rechu.git.

  2. Enter the cloned directory: cd rechu.

  3. Optionally, change to a specific tag corresponding to a released version of the module: git checkout vX.Y.Z. If you skip this, then you install a development version, which is not a recommended installation method.

  4. Run make install.

As a development dependency

Warning

This is not a recommended method of installing the module.

To install a development version of the module as a dependency of your own code, add rechu @ git+https://github.com/lhelwerd/rechu.git@main#egg=rechu in your pyproject.toml project dependencies or similar file, then install it using your dependency manager, such as pip install . or poetry install.