lecrapaud 0.16.5__py3-none-any.whl → 0.16.6__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/session.py CHANGED
@@ -13,7 +13,7 @@ from lecrapaud.config import DB_USER, DB_PASSWORD, DB_HOST, DB_PORT, DB_NAME, DB
13
13
  _engine = None
14
14
  _SessionLocal = None
15
15
  if DB_URI:
16
- if "mysql://" in DB_URI:
16
+ if "mysql://" in DB_URI and "pymysql://" not in DB_URI:
17
17
  DB_URI = DB_URI.replace("mysql://", "mysql+pymysql://")
18
18
  DATABASE_URL = DB_URI
19
19
  elif DB_USER:
@@ -27,7 +27,7 @@ else:
27
27
  def init_db(uri: str = None):
28
28
  global _engine, _SessionLocal, DATABASE_URL, DB_URI
29
29
  if uri:
30
- if "mysql://" in uri:
30
+ if "mysql://" in uri and "pymysql://" not in uri:
31
31
  uri = uri.replace("mysql://", "mysql+pymysql://")
32
32
  DATABASE_URL = uri
33
33
  elif DATABASE_URL:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lecrapaud
3
- Version: 0.16.5
3
+ Version: 0.16.6
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
@@ -22,7 +22,7 @@ lecrapaud/db/models/model_training.py,sha256=jAIYPdwBln2jf593soLQ730uYrTfNK8zdG8
22
22
  lecrapaud/db/models/score.py,sha256=fSfXLt6Dm-8Fy9ku0urMT5Fa6zNqn4YqVnEO4o3zKVI,1669
23
23
  lecrapaud/db/models/target.py,sha256=DKnfeaLU8eT8J_oh_vuFo5-o1CaoXR13xBbswme6Bgk,1649
24
24
  lecrapaud/db/models/utils.py,sha256=-a-nWWmpJ2XzidIxo2COVUTrGZIPYCfBzjhcszJj_bM,1109
25
- lecrapaud/db/session.py,sha256=NPa7A_uOaE4YegMYru2AwNk_kxg6rAZb0b-wqfWOjeY,2763
25
+ lecrapaud/db/session.py,sha256=E93WXcFFILFAIeH61ft2Egs7D-6caqs0oi4zCkO5Lq4,2822
26
26
  lecrapaud/directories.py,sha256=0LrANuDgbuneSLker60c6q2hmGnQ3mKHIztTGzTx6Gw,826
27
27
  lecrapaud/experiment.py,sha256=1xLWjOrqAxJh9CdXOx9ppQuRFRRj0GH-xYZqg-ty9hI,2463
28
28
  lecrapaud/feature_engineering.py,sha256=2HaWn5UnZzczJBo7EyY1m1SGPmI6TpGXcwF58h_9wBE,32580
@@ -39,7 +39,7 @@ lecrapaud/misc/test-gpu-transformers.ipynb,sha256=k6MBSs_Um1h4PykvE-LTBcdpbWLbIF
39
39
  lecrapaud/model_selection.py,sha256=tjBM9X5CP02pNiuNLdNK2MFZblrH7w-gQgBc5FEN-TY,68514
40
40
  lecrapaud/search_space.py,sha256=-JkzuMhaomdwiWi4HvVQY5hiw3-oREemJA16tbwEIp4,34854
41
41
  lecrapaud/utils.py,sha256=JdBB1NvbNIx4y0Una-kSZdo1_ZEocc5hwyYFIZKHmGg,8305
42
- lecrapaud-0.16.5.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
43
- lecrapaud-0.16.5.dist-info/METADATA,sha256=QLHyo-W9PTm_-_We0bNDLgPdgXGy-KrgJOX-UhtZ39s,11081
44
- lecrapaud-0.16.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
45
- lecrapaud-0.16.5.dist-info/RECORD,,
42
+ lecrapaud-0.16.6.dist-info/LICENSE,sha256=MImCryu0AnqhJE_uAZD-PIDKXDKb8sT7v0i1NOYeHTM,11350
43
+ lecrapaud-0.16.6.dist-info/METADATA,sha256=F3S8Mi9uPQRGwGM-QYWykf4kE7dRcAw6vSOnvt8u0XY,11081
44
+ lecrapaud-0.16.6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
45
+ lecrapaud-0.16.6.dist-info/RECORD,,