python-dependency-injector/examples/di_demo2/example_no_di.py
2020-08-15 11:01:58 -04:00

19 lines
275 B
Python

import os
class ApiClient:
def __init__(self):
self.api_key = os.getenv('API_KEY')
self.timeout = os.getenv('TIMEOUT')
class Service:
def __init__(self):
self.api_client = ApiClient()
if __name__ == '__main__':
service = Service()