Installation

Stable release

To install Train Object Model, run this command in your terminal:

$ pip install tom

This is the preferred method to install Train Object Model, as it will always install the most recent stable release.

If you don’t have pip installed, this Python installation guide can guide you through the process.

From sources

The sources for Train Object Model can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/monora/tom

Or download the tarball:

$ curl  -OL https://github.com/monora/tom/tarball/master
$ poetry install

If you in addition use direnv you must first allow direnv when you enter the project directory:

$ direnv allow

If you use Intellij IDEA you have to set the Project SDK to the virtual environment created by poetry, which is located here:

$ ls $HOME/.cache/pypoetry/virtualenvs/tom-py*/bin/python