Skip to content

Instantly share code, notes, and snippets.

@Ichinga-Samuel
Last active April 27, 2024 22:31
Show Gist options
  • Save Ichinga-Samuel/463126bc075942694eb482561e999325 to your computer and use it in GitHub Desktop.
Save Ichinga-Samuel/463126bc075942694eb482561e999325 to your computer and use it in GitHub Desktop.
from aiomql import Config, Account
config = Config()
print(config.path, config.login, config.password)
# load the config from a file different file.
# remember to pass reload=True to reload the config file
Config(filename='config.json', reload=True)
# a config instance is defined on most classes in the library, so you can access the config from any class
config = Account().config
print(config.path, config.login, config.password, config.filename, config.server, config.foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment