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.

Files changed (44) hide show
  1. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/PKG-INFO +1 -1
  2. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/config.py +1 -0
  3. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/directories.py +9 -5
  4. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/utils.py +13 -12
  5. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/pyproject.toml +1 -1
  6. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/LICENSE +0 -0
  7. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/README.md +0 -0
  8. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/__init__.py +0 -0
  9. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/api.py +0 -0
  10. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/__init__.py +0 -0
  11. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/README +0 -0
  12. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/env.py +0 -0
  13. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/script.py.mako +0 -0
  14. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_23_1748-f089dfb7e3ba_.py +0 -0
  15. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1216-c62251b129ed_.py +0 -0
  16. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_24_1711-86457e2f333f_.py +0 -0
  17. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic/versions/2025_06_25_1759-72aa496ca65b_.py +0 -0
  18. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/alembic.ini +0 -0
  19. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/__init__.py +0 -0
  20. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/base.py +0 -0
  21. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/experiment.py +0 -0
  22. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature.py +0 -0
  23. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature_selection.py +0 -0
  24. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/feature_selection_rank.py +0 -0
  25. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model.py +0 -0
  26. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model_selection.py +0 -0
  27. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/model_training.py +0 -0
  28. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/score.py +0 -0
  29. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/models/target.py +0 -0
  30. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/db/session.py +0 -0
  31. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/experiment.py +0 -0
  32. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/feature_engineering.py +0 -0
  33. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/feature_selection.py +0 -0
  34. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/integrations/openai_integration.py +0 -0
  35. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/__init__.py +0 -0
  36. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/config.py +0 -0
  37. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/scheduler.py +0 -0
  38. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/jobs/tasks.py +0 -0
  39. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/model_selection.py +0 -0
  40. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/search_space.py +0 -0
  41. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-bilstm.ipynb +0 -0
  42. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-resnet.ipynb +0 -0
  43. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/test-gpu-transformers.ipynb +0 -0
  44. {lecrapaud-0.10.0 → lecrapaud-0.10.1}/lecrapaud/speed_tests/tests.ipynb +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: Framework for machine and deep learning, with regression, classification and time series analysis
5
5
  License: Apache License
6
6
  Author: Pierre H. Gallet
@@ -31,3 +31,4 @@ DB_URI = (
31
31
  else os.getenv("DB_URI", None)
32
32
  )
33
33
  OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
34
+ LECRAPAUD_LOGFILE = os.getenv("LECRAPAUD_LOGFILE")
@@ -1,12 +1,16 @@
1
- import os, shutil
2
- from pathlib import Path
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
- os.makedirs(logger_dir, exist_ok=True)
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
- _LOGGER_ALREADY_CONFIGURED = False
16
+ _LECRAPAUD_LOGGER_ALREADY_CONFIGURED = False
17
17
 
18
18
 
19
19
  def setup_logger():
20
20
 
21
- global _LOGGER_ALREADY_CONFIGURED
22
- if _LOGGER_ALREADY_CONFIGURED: # ← bail out if done before
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
- file_handler = RotatingFileHandler(
51
- f"{logger_dir}/{env_file}",
52
- maxBytes=5 * 1024 * 1024,
53
- backupCount=3,
54
- )
55
- file_handler.setFormatter(formatter)
56
- file_handler.setLevel(log_level)
57
- logger.addHandler(file_handler)
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
- _LOGGER_ALREADY_CONFIGURED = True
60
+ _LECRAPAUD_LOGGER_ALREADY_CONFIGURED = True
60
61
  return logger
61
62
 
62
63
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lecrapaud"
3
- version = "0.10.0"
3
+ version = "0.10.1"
4
4
  description = "Framework for machine and deep learning, with regression, classification and time series analysis"
5
5
  authors = [
6
6
  {name = "Pierre H. Gallet"}
File without changes
File without changes
File without changes