It's console utility which takes a link as input and converts it to a short link(bitlink) with bit.ly. If a bitlink is entered, it returns the total number of clicks on it.
Sign in to the bit.ly and generate your Generic Access Token. Then in project root create ".env" file and write:
BITLINK_TOKEN=[your API token]
It's recommended to use pyenv to isolate the project. Python3 and poetry should be already installed. Then use poetry to install dependencies:
poetry install
python3 main.py [-h] url [url ...]
The code was written as part of exploring the capabilities of the standard library and API protocols.