forked from MarieluiseOden/FiLiP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings_example.py
More file actions
24 lines (18 loc) · 801 Bytes
/
Copy pathsettings_example.py
File metadata and controls
24 lines (18 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
"""
This an example for demonstrating the effect of different
configuration settings. Using *.json config-files or environment
variables. You can also use the .env.filip file to provide the variables
Feel free to play around with the settings and the check how
the urls and header parameter will be checked and/or automatically
guessed based on the provided information.
Imported Note:
Although Urls are also guessed the safest is to set the service_group url directly
"""
import os
if __name__=='__main__':
# Example using environment variables
os.environ["ORION_URL"] = "http://localhost:1026"
os.environ["QUANTUMLEAP_URL"] = "http://localhost:8668"
os.environ["IOTA_URL"] = "http://localhost:4041"
from filip import settings
print(settings.json(indent=2))