mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-10-31 16:07:51 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			603 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			603 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Run example application."""
 | |
| 
 | |
| import sys
 | |
| import logging
 | |
| 
 | |
| from containers import Core, Application
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     # Configure platform:
 | |
|     Core.config.override({'database': {'dsn': ':memory:'},
 | |
|                           'aws': {'access_key_id': 'KEY',
 | |
|                                   'secret_access_key': 'SECRET'},
 | |
|                           'auth': {'token_ttl': 3600}})
 | |
|     Core.logger().addHandler(logging.StreamHandler(sys.stdout))
 | |
| 
 | |
|     # Run application:
 | |
|     Application.main(uid=sys.argv[1],
 | |
|                      password=sys.argv[2],
 | |
|                      photo=sys.argv[3])
 |