Twigs command-line usage
Please refer to twigs documentation for command-line usage
Twigs source code
Twigs is open source. If you are interested in going through the source code of twigs, you can find it here.
Twigs is a python-based package and can be installed using ‘pip’ as below:
sudo pip install twigs
Note:
It is recommended to use virtual environments to create isolated Python environments and reduce dependency conflicts. Please use the following commands to create new virtual environment depending on your python version and install twigs:
# Python 3.x
python3 -m venv twigs_env cd twigs_env source bin/activate pip3 install twigs
# Python 2.7
python -m virtualenv –python=/usr/bin/python2.7 twigs_env_2_7
cd twigs_env_2_7
source bin/activate
pip install twigs