YAML
PyYAML
$ pip install pyyamlYAML file
datadir: 'data/'
db: 'data/rawtweets.sqlite'
filter: ['aerobic', 'anaerobic']
api_key: 'kn3tkFsvJaJi3'
token: '11062wsT2b7xFkVe4'""" function that fetches the configuration
parameters from config.yaml
"""
import yaml
def get_config():
with open("config.yaml", 'r') as stream:
config = yaml.safe_load(stream)
return configyaml.dump()
Last updated