The latest release version of tsfpga can be installed from PyPI with the command

python3 -m pip install tsfpga

Alternatively, you can clone the git repository if you want to use a development version. From the repo checkout you can install the Python package by running

python3 install

in the repo root. You can also access it in your scripts by adding the repo path to the PYTHONPATH environment variable, or by modifying sys.path in your script.