AscSecTeam / knackered

Scoring Engine API Service
MIT License
0 stars 0 forks source link

add knackered settings objects #4

Closed brettlangdon closed 10 years ago

brettlangdon commented 10 years ago

this is the basic code to load configuration settings for knackered.

Example Usage

[db]
host=127.0.0.1
port=3306
name=knackered

[api]
access_key=some_key
from knackered.settings import Settings

config = Settings("config.ini")
config.db.host
config.db.port
config.db.name
config.api.acccess_key