Coverage for synkronoida/__init__.py: 0.00%

17 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-04 22:54:38 +00:00

1"""Synchronize (Finnish: synkronoida) state across a local cluster of machines hosting multiple linked processes.""" 

2 

3import os 

4import pathlib 

5 

6# [[[fill git_describe()]]] 

7__version__ = '2023.7.7+parent.86968e85' 

8# [[[end]]] (checksum: df9f9ae4d0b408052e637f76baa3463d) 

9__version_info__ = tuple( 

10 e if '-' not in e else e.split('-')[0] for part in __version__.split('+') for e in part.split('.') if e != 'parent' 

11) 

12 

13APP_ALIAS = str(pathlib.Path(__file__).parent.name) 

14APP_ENV = APP_ALIAS.upper() 

15APP_NAME = locals()['__doc__'] 

16DEBUG = bool(os.getenv(f'{APP_ENV}_DEBUG', '')) 

17VERBOSE = bool(os.getenv(f'{APP_ENV}_VERBOSE', '')) 

18QUIET = False 

19STRICT = bool(os.getenv(f'{APP_ENV}_STRICT', '')) 

20ENCODING = 'utf-8' 

21ENCODING_ERRORS_POLICY = 'ignore' 

22DEFAULT_CONFIG_NAME = f'.{APP_ALIAS}.json' 

23 

24VERSION = __version__ 

25VERSION_INFO = __version_info__ 

26 

27__all__ = [ 

28 'APP_ALIAS', 

29 'APP_ENV', 

30 'APP_NAME', 

31 'VERSION', 

32 'VERSION_INFO', 

33]