Skip to content

Latest commit

 

History

History
55 lines (52 loc) · 1.26 KB

README.md

File metadata and controls

55 lines (52 loc) · 1.26 KB

Installation for Linux

Virtualenv (recommended):

# clone PyOTI repository and copy sample keys file
git clone https://github.com/RH-ISAC/PyOTI ~/PyOTI
cd ~/PyOTI
cp examples/keys.py.sample examples/keys.py
# install/setup virtual environment
python3 -m pip install virtualenv
python3 -m venv venv
source ~/PyOTI/venv/bin/activate
# make sure to fill in your API secrets!
vim examples/keys.py
# install PyOTI library
python3 -m pip install .

No virtualenv:

# clone PyOTI repository and copy sample keys file
git clone https://github.com/RH-ISAC/PyOTI ~/PyOTI
cd ~/PyOTI
cp examples/keys.py.sample examples/keys.py
# make sure to fill in your API secrets!
vim examples/keys.py
# install PyOTI library
python3 -m pip install .

Updating

Virtualenv (recommended):

# activate virtual environment
source ~/PyOTI/venv/bin/activate
# pull PyOTI repository
cd ~/PyOTI
git pull
bash update_keys.sh 
# make sure to fill in your updated API secrets!
vim examples/keys.py
# make sure PyOTI library is updated
python3 -m pip install .

No virtualenv:

# pull PyOTI repository
cd ~/PyOTI
git pull
bash update_keys.sh 
# make sure to fill in your updated API secrets!
vim examples/keys.py
# make sure PyOTI library is updated
python3 -m pip install .