Take a look at the following steps, which can be found on Chapter8/pipelines/galaxy/api.py:
- We start by decrypting our configuration file. We need to supply a password:
import base64from collections import defaultdictimport ftplibimport getpassimport pprintimport warningsfrom ruamel.yaml import YAMLfrom cryptography.fernet import Fernetfrom cryptography.hazmat.backends import default_backendfrom cryptography.hazmat.primitives import hashesfrom cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMACimport pandas as pdfrom bioblend.galaxy import GalaxyInstancepp = pprint.PrettyPrinter()warnings.filterwarnings('ignore')# explain above, and warnwith open('galaxy.yaml.enc', 'rb') as f: enc_conf = f.read()password = getpass.getpass('Please ...