lecrapaud 0.10.0__tar.gz → 0.10.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of lecrapaud might be problematic. Click here for more details.
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/PKG-INFO +1 -1
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/config.py +1 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/directories.py +9 -5
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/utils.py +13 -12
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/pyproject.toml +1 -1
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/LICENSE +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/README.md +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/__init__.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/api.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/__init__.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/README +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/env.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/script.py.mako +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic.ini +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/__init__.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/base.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/experiment.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature_selection.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature_selection_rank.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model_selection.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model_training.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/score.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/target.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/session.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/experiment.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/feature_engineering.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/feature_selection.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/integrations/openai_integration.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/__init__.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/config.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/scheduler.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/tasks.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/model_selection.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/search_space.py +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-bilstm.ipynb +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-resnet.ipynb +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-transformers.ipynb +0 -0
- {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/tests.ipynb +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
1
|
+
import os
|
|
2
|
+
import shutil
|
|
3
|
+
from config import LECRAPAUD_LOGFILE
|
|
3
4
|
|
|
4
5
|
cwd = os.getcwd()
|
|
5
|
-
tmp_dir = cwd + "/tmp"
|
|
6
|
-
logger_dir = cwd + "/log"
|
|
7
6
|
|
|
7
|
+
tmp_dir = cwd + "/tmp"
|
|
8
8
|
os.makedirs(tmp_dir, exist_ok=True)
|
|
9
|
-
|
|
9
|
+
|
|
10
|
+
logger_dir = None
|
|
11
|
+
if LECRAPAUD_LOGFILE:
|
|
12
|
+
logger_dir = os.path.join(cwd, LECRAPAUD_LOGFILE)
|
|
13
|
+
os.makedirs(logger_dir, exist_ok=True)
|
|
10
14
|
|
|
11
15
|
|
|
12
16
|
def clean_directories():
|
|
@@ -13,13 +13,13 @@ import string
|
|
|
13
13
|
from lecrapaud.directories import logger_dir
|
|
14
14
|
from lecrapaud.config import LOGGING_LEVEL, PYTHON_ENV
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
_LECRAPAUD_LOGGER_ALREADY_CONFIGURED = False
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
def setup_logger():
|
|
20
20
|
|
|
21
|
-
global
|
|
22
|
-
if
|
|
21
|
+
global _LECRAPAUD_LOGGER_ALREADY_CONFIGURED
|
|
22
|
+
if _LECRAPAUD_LOGGER_ALREADY_CONFIGURED: # ← bail out if done before
|
|
23
23
|
|
|
24
24
|
return logging.getLogger("lecrapaud" if PYTHON_ENV != "Worker" else "")
|
|
25
25
|
|
|
@@ -47,16 +47,17 @@ def setup_logger():
|
|
|
47
47
|
"Worker": "worker.log",
|
|
48
48
|
}.get(PYTHON_ENV, "app.log")
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
if logger_dir:
|
|
51
|
+
file_handler = RotatingFileHandler(
|
|
52
|
+
f"{logger_dir}/{env_file}",
|
|
53
|
+
maxBytes=5 * 1024 * 1024,
|
|
54
|
+
backupCount=3,
|
|
55
|
+
)
|
|
56
|
+
file_handler.setFormatter(formatter)
|
|
57
|
+
file_handler.setLevel(log_level)
|
|
58
|
+
logger.addHandler(file_handler)
|
|
58
59
|
|
|
59
|
-
|
|
60
|
+
_LECRAPAUD_LOGGER_ALREADY_CONFIGURED = True
|
|
60
61
|
return logger
|
|
61
62
|
|
|
62
63
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py
RENAMED
|
File without changes
|
{lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py
RENAMED
|
File without changes
|
{lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py
RENAMED
|
File without changes
|
{lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|