Open swapagarwal opened 7 years ago
I've started working on this. As it stands, I instantiate the class and then call a class method passing the name of the key or the data file variable name. The method then needs to retrieve the key from the environment, or failing that, from config.
Another way to do it would be to take the key name as a constructor argument and have the constructor store the key as an object variable which could then be retrieved from the object.
Do you have any thoughts on which you would prefer?
key_getter = util.GetConfig()
key = key_getter.retrieve_key("KEY_NAME")
assert(key)
vs.
key_getter = util.GetConfig("KEY_NAME")
key = key_getter.retrieved_key
assert(key)
Is this still an issue? I would like to work on this.
PR #266 is currently opened to address it. You could comment on that, or even open up your own PR if you want to implement it in a different way.
@edadesd seems like #266 solves the issue, I don't think more action is needed but to fix the test not passing in the code. Thanks for the quick response :)
Hello, I was wondering if you want an Arabic translator? so the project can reach a wider audience.
This extraction https://github.com/swapagarwal/JARVIS-on-Messenger/blob/master/modules/src/dictionary.py#L9 would be abstracted out to a util class.