Evoml common feature set in python language
- python 3.8
user@pc:~/evoml-python-commons$ conda activate env-py38
(env-py38) user@pc:~/evoml-python-commons$ pip install pre-commit
(env-py38) user@pc:~/evoml-python-commons$ pre-commit install \
-t pre-commit pre-commit install \
-t pre-push pre-commit install \
--hook-type commit-msg
- __init__.py: Expose the most important modules of the library.
- py.typed: File to create PEP 561 compatible packages. To publish a
library package to a package repository yourself (e.g. on PyPI) for either internal or external use in type checking,
packages that supply type information via type comments or annotations in the code should put a
py.typed
file in their package directory.
- Default: The default packaging of this library is
BUILDTOOL=wheel
.
(env-py38-evoml-python-commons) user@pc:~/evoml-python-commons$ make package
- Open source:
(env-py38-evoml-python-commons) user@pc:~/evoml-python-commons$ make package BUILDTOOL=wheel
- Binary distribution:
(env-py38-evoml-python-commons) user@pc:~/evoml-python-commons$ make package BUILDTOOL=nuitka
Installation:
(env-py38-evoml-python-commons) user@pc:~/evoml-python-commons$ pip install evoml-python-commons
The values indicated as an example in each of the variables is the value that will be taken by default if you do not specify that variable in the file '.env'
For more details, see loguru
Variable | Description | Default value |
---|---|---|
LOGGER_ENABLE | Flag that indicates whether the logging configuration should be initialized (true) or, if on the contrary, this configuration is already supposed to be initialized (false) | false |
LOGGER_SINK | Path to the log file. | /tmp/evoml-python-commons/logs/evoml_python_commons.log |
LOGGER_LEVEL | The minimum severity level from which logged messages should be sent to the sink. - Options: critical, error, warning, success, info, debug, trace |
INFO |
LOGGER_ROTATION | A condition indicating whenever the current logged file should be closed and a new one started. | "12:00" # New file is created each day at noon |
LOGGER_RETENTION | A directive filtering old files that should be removed during rotation or end of program. | "1 month" |