Skip to content

Getting started

Installation

For a project

It is recommended to install Textstat in a virtual environment for the project you're working on.

poetry add textstat
pipenv install textstat
pip install textstat

Standalone

If you just want to use Textstat as a command line tool, you can install it standalone in it's own dedicated virtual environment using pipx.

pipx install textstat

Install pipx if you haven't already.

With git

Alternatively, you can install directly from source if you would prefer. This will install the latest from main.

poetry add git+https://github.com/textstat/textstat.git
pipenv install git+https://github.com/textstat/textstat.git
pip install git+https://github.com/textstat/textstat.git
pipx install git+https://github.com/textstat/textstat.git

If you require a specific version or branch, you can specify the tag to use.

poetry add git+https://github.com/textstat/textstat.git@main
poetry add git+https://github.com/textstat/textstat.git@dev
poetry add git+https://github.com/textstat/textstat.git@0.7.3