Skip to content

Instantly share code, notes, and snippets.

@paul-schwendenman
Last active January 16, 2016 21:27
Show Gist options
  • Save paul-schwendenman/ff51e6b93788925c3bd6 to your computer and use it in GitHub Desktop.
Save paul-schwendenman/ff51e6b93788925c3bd6 to your computer and use it in GitHub Desktop.
Config parser example
[example]
username = this
password = that
#!/usr/bin/env python3
'''
configparser example
'''
import configparser
config.read('example.conf')
print('username:', config.get('example', 'username'))
print('password:', config.get('example', 'password'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment