chardetect
is a command Chardet make for use at command line.It's done in setup.py
entry_points={'console_scripts': ['chardetect = chardet.cli.chardetect:main']})
entry_points
make chardetect
available at command line when do pip install chardet
this work on all OS.On Windows it will even make a
.exe
so chardetect.exe
and place it in Python37\Scripts\chardetect.exe
Setuptools doc