skekre98 opened a new pull request #74:
URL: https://github.com/apache/kibble/pull/74


   I've made `KibbleConfigParser` a subclass of `configparser.ConfigParser`. 
Currently the class is assuming that the `ini` file has been configured 
correctly. Let me know if you'd like me to do some error handling if this is 
not the case. 
   
   The usage of this class is as follows:
   ```python
   from parser import KibbleConfigParser
   
   conf = KibbleConfigParser()
   
   for section in conf:
       for key in conf[section]:
               print(conf[section][key])
   
   # Can also be used as follows
   # conf.get(section, key)
   ```
   
   Output
   ```bash
   True
   True
   2
   0.1.0
   kibble
   elasticsearch
   9200
   False
   localhost
   25
   Kibble <[email protected]>
   ```
   
   I have also created a class variable called _uri_ which is in the format 
_dbname://host:port_. Let me know if this is the format you were looking for.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to