cpl_core.environment
cpl_core.environment.application_environment
- class cpl_core.environment.application_environment.ApplicationEnvironment(name: EnvironmentNameEnum = EnvironmentNameEnum.production)
Bases:
ApplicationEnvironmentABC
Represents environment of the application
- property application_name: str
- property customer: str
- property date_time_now: datetime
- property end_time: datetime
- property environment_name: str
- property host_name
- property runtime_directory: str
- set_runtime_directory(runtime_directory: str)
Sets the current runtime directory
- runtime_directory:
str
Path of the runtime directory
- runtime_directory:
- set_working_directory(working_directory: str)
Sets the current working directory
- working_directory:
str
Path of the current working directory
- working_directory:
- property start_time: datetime
- property working_directory: str
cpl_core.environment.application_environment_abc
- class cpl_core.environment.application_environment_abc.ApplicationEnvironmentABC
Bases:
ABC
ABC of the class
cpl_core.environment.application_environment.ApplicationEnvironment
- abstract property application_name: str
- abstract property customer: str
- abstract property date_time_now: datetime
- abstract property end_time
- abstract property environment_name: str
- abstract property host_name: str
- abstract property runtime_directory: str
- abstract set_runtime_directory(runtime_directory: str)
Sets the current runtime directory
- runtime_directory:
str
Path of the runtime directory
- runtime_directory:
- abstract set_working_directory(working_directory: str)
Sets the current working directory
- working_directory:
str
Path of the current working directory
- working_directory:
- abstract property start_time: datetime
- abstract property working_directory: str