cpl_core.environment

cpl_core.environment.application_environment

class cpl_core.environment.application_environment.ApplicationEnvironment(name: cpl_core.environment.environment_name_enum.EnvironmentNameEnum = EnvironmentNameEnum.production)

Bases: cpl_core.environment.application_environment_abc.ApplicationEnvironmentABC

Represents environment of the application

property application_name: str
property customer: str
property date_time_now: datetime.datetime
property end_time: datetime.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

set_working_directory(working_directory: str)

Sets the current working directory

working_directory: str

Path of the current working directory

property start_time: datetime.datetime
property working_directory: str

cpl_core.environment.application_environment_abc

class cpl_core.environment.application_environment_abc.ApplicationEnvironmentABC

Bases: abc.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.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

abstract set_working_directory(working_directory: str)

Sets the current working directory

working_directory: str

Path of the current working directory

abstract property start_time: datetime.datetime
abstract property working_directory: str

cpl_core.environment.environment_name_enum

class cpl_core.environment.environment_name_enum.EnvironmentNameEnum(value)

Bases: enum.Enum

An enumeration.

development = 'development'
production = 'production'
staging = 'staging'
testing = 'testing'