lecrapaud 0.4.1__py3-none-any.whl → 0.4.2__py3-none-any.whl

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/db/alembic.ini CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [alembic]
4
4
  # path to migration scripts
5
- script_location = alembic
5
+ script_location = lecrapaud.db.alembic
6
6
 
7
7
  # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
8
8
  # Uncomment the line below if you want the files to be prepended with date and time
lecrapaud/db/session.py CHANGED
@@ -43,11 +43,13 @@ def init_db(uri: str = None):
43
43
  _SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=_engine)
44
44
 
45
45
  # Step 5: Apply Alembic migrations programmatically
46
- project_root = os.path.abspath(os.path.dirname(__file__))
47
- alembic_cfg_path = os.path.join(project_root, "alembic.ini")
46
+ current_dir = os.path.dirname(__file__) # → lecrapaud/db
47
+ alembic_ini_path = os.path.join(current_dir, "alembic.ini")
48
48
 
49
- alembic_cfg = Config(alembic_cfg_path)
49
+ alembic_cfg = Config(alembic_ini_path)
50
+ alembic_cfg.set_main_option("script_location", "lecrapaud.db.alembic")
50
51
  alembic_cfg.set_main_option("sqlalchemy.url", uri or os.getenv("DATABASE_URL"))
52
+
51
53
  command.upgrade(alembic_cfg, "head")
52
54
 
53
55
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.4.1
3
+ Version: 0.4.2
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
@@ -55,6 +55,12 @@ Description-Content-Type: text/markdown
55
55
 
56
56
  **An all-in-one machine learning framework**
57
57
 
58
+ [![GitHub stars](https://img.shields.io/github/stars/pierregallet/lecrapaud.svg?style=flat&logo=github&colorB=blue&label=stars)](https://github.com/pierregallet/lecrapaud/stargazers)
59
+ [![PyPI version](https://badge.fury.io/py/lecrapaud.svg)](https://badge.fury.io/py/lecrapaud)
60
+ [![Python versions](https://img.shields.io/pypi/pyversions/lecrapaud.svg)](https://pypi.org/project/lecrapaud)
61
+ [![License](https://img.shields.io/github/license/pierregallet/lecrapaud.svg)](https://github.com/pierregallet/lecrapaud/blob/main/LICENSE)
62
+ [![codecov](https://codecov.io/gh/pierregallet/lecrapaud/branch/main/graph/badge.svg)](https://codecov.io/gh/pierregallet/lecrapaud)
63
+
58
64
  </div>
59
65
 
60
66
  ## 🚀 Introduction
@@ -21,7 +21,7 @@ lecrapaud/db/alembic/versions/2025_05_31_1849-3b8550297e8e_change_date_to_dateti
21
21
  lecrapaud/db/alembic/versions/2025_05_31_1852-e6b8c95d8243_add_date_to_portfolio_history.py,sha256=veTx2DTbJDZ-wUhQTHJRA9lKam6To45jtRKT1UTX93I,829
22
22
  lecrapaud/db/alembic/versions/2025_06_10_1136-db8cdd83563a_addnewsandoptiontodata.py,sha256=V_Wjm-XMfMyG988R-3ii3-fzHP_tb2FtZmc4C6WkQOM,907
23
23
  lecrapaud/db/alembic/versions/2025_06_17_1652-c45f5e49fa2c_make_fields_nullable.py,sha256=0avBVj5WwNXZjCMuobqJFTtwMAlHNIWx5jsIpBR2lgs,2887
24
- lecrapaud/db/alembic.ini,sha256=Xnp4kJLcZvReD4CWu7du-zX61cqLFHw74Dg-PAftRBE,3574
24
+ lecrapaud/db/alembic.ini,sha256=lQe8leIj1uOfXX5s2t-mmDPz3KRQYWX2nVBfneDLBew,3587
25
25
  lecrapaud/db/models/__init__.py,sha256=oiOQitb8zEA7TK262zWLN6xnbZWYfg4eOaKVfAVyAFA,540
26
26
  lecrapaud/db/models/base.py,sha256=zXI7biTA6-nzdTW8I71nGhHubkNLDFrQ5L1k9heOnuo,4889
27
27
  lecrapaud/db/models/dataset.py,sha256=KnnsCThMvU1s7fqrhTmrn8eX6S776SrVd6eiqKNe2Xg,3705
@@ -33,7 +33,7 @@ lecrapaud/db/models/model_selection.py,sha256=Lj2WZBWvaVpJeDjdiAs8wvkoI-XrWv2IIj
33
33
  lecrapaud/db/models/model_training.py,sha256=2xv9SOh8IUV1ROSsKlooAGanl9G8nBdmr7vaV4GAWtw,1618
34
34
  lecrapaud/db/models/score.py,sha256=I6kA55ZQhReo9dA_JEgeRSqDoFKmYyL3l-zCffwsofs,1719
35
35
  lecrapaud/db/models/target.py,sha256=scEtXVO3oysEvg9uwm_ncsS3-4o2A6z6XiDVGrg5WHE,1644
36
- lecrapaud/db/session.py,sha256=0go-0Ym_GAZe-c48fum7mJUwOufSIsQGwnq9eEJrAjw,2054
36
+ lecrapaud/db/session.py,sha256=TIk6ZgNZieKx3wmkt1vrHrU6i0Qwn6nrp4mzUrM1CK4,2131
37
37
  lecrapaud/directories.py,sha256=wrHmAJ-cBKb0GhJifxrb_RoLhZJX8xdkeirrWs7jQHk,791
38
38
  lecrapaud/experiment.py,sha256=ApsGtGaISYsQCdAGa1llzBslfODK-w1_zf44p6Es3Xs,1985
39
39
  lecrapaud/feature_engineering.py,sha256=MEPW8-AgO3xnbwMHV3dC_gMtrBeKQhaCDrAicWgXX6w,30251
@@ -55,7 +55,7 @@ lecrapaud/speed_tests/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcd
55
55
  lecrapaud/speed_tests/tests.ipynb,sha256=RjI7LDHSsbadUkea_hT14sD7ivljtIQk4NB5McXJ1bE,3835
56
56
  lecrapaud/speed_tests/trash.py,sha256=E4zrrRyVqeNEumWg8rYKquR9VTIULN52eCRqjmv_s58,1647
57
57
  lecrapaud/utils.py,sha256=TMlEyU6aRhgiYRtdbvKrlq2t1L9Al5BXfQ3cPbeHlX8,8098
58
- lecrapaud-0.4.1.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
59
- lecrapaud-0.4.1.dist-info/METADATA,sha256=W5RyIgKZW3K9A8Z7Xink8xb09HhaaOduosu4A05B9eg,4525
60
- lecrapaud-0.4.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
61
- lecrapaud-0.4.1.dist-info/RECORD,,
58
+ lecrapaud-0.4.2.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
59
+ lecrapaud-0.4.2.dist-info/METADATA,sha256=69vSPi3zCcGsLYIwWxHrNLHVIRz6Y9HMIXgqP0kDNmQ,5187
60
+ lecrapaud-0.4.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
61
+ lecrapaud-0.4.2.dist-info/RECORD,,