lecrapaud 0.3.0__tar.gz → 0.4.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.3.0 → lecrapaud-0.4.1}/PKG-INFO +1 -1
- lecrapaud-0.4.1/lecrapaud/db/alembic.ini +116 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/session.py +1 -1
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/pyproject.toml +1 -1
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/LICENSE +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/README.md +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/__init__.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/api.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/config.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/__init__.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/README +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/env.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/script.py.mako +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_04_06_1738-7390745388e4_initial_setup.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_04_06_1755-40cd8d3e798e_unique_constraint_for_data.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_23_1724-2360941fa0bd_longer_string.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_27_1159-b96396dcfaff_add_env_to_trading_tables.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_27_1337-40cbfc215f7c_fix_nb_character_on_portfolio.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_27_1526-3de994115317_to_datetime.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_27_2003-25c227c684f8_add_fees_to_transactions.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_27_2047-6b6f2d38e9bc_double_instead_of_float.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1111-c175e4a36d68_generalise_stock_to_group.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1256-5681095bfc27_create_investment_run_and_portfolio_.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1806-339927587383_add_investment_run_id.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1834-52b809a34371_make_nullablee.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1849-3b8550297e8e_change_date_to_datetime.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_05_31_1852-e6b8c95d8243_add_date_to_portfolio_history.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_06_10_1136-db8cdd83563a_addnewsandoptiontodata.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/alembic/versions/2025_06_17_1652-c45f5e49fa2c_make_fields_nullable.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/__init__.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/base.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/dataset.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/feature.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/feature_selection.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/feature_selection_rank.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/model.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/model_selection.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/model_training.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/score.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/db/models/target.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/directories.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/experiment.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/feature_engineering.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/feature_selection.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/integrations/openai_integration.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/jobs/__init__.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/jobs/config.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/jobs/scheduler.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/jobs/tasks.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/model_selection.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/search_space.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/services/__init__.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/services/embedding_categorical.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/services/indicators.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/experiments.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/test-gpu-bilstm.ipynb +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/test-gpu-resnet.ipynb +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/test-gpu-transformers.ipynb +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/tests.ipynb +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/speed_tests/trash.py +0 -0
- {lecrapaud-0.3.0 → lecrapaud-0.4.1}/lecrapaud/utils.py +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# A generic, single database configuration.
|
|
2
|
+
|
|
3
|
+
[alembic]
|
|
4
|
+
# path to migration scripts
|
|
5
|
+
script_location = alembic
|
|
6
|
+
|
|
7
|
+
# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
|
|
8
|
+
# Uncomment the line below if you want the files to be prepended with date and time
|
|
9
|
+
# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
|
|
10
|
+
# for all available tokens
|
|
11
|
+
file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
|
|
12
|
+
|
|
13
|
+
# sys.path path, will be prepended to sys.path if present.
|
|
14
|
+
# defaults to the current working directory.
|
|
15
|
+
prepend_sys_path = .
|
|
16
|
+
|
|
17
|
+
# timezone to use when rendering the date within the migration file
|
|
18
|
+
# as well as the filename.
|
|
19
|
+
# If specified, requires the python-dateutil library that can be
|
|
20
|
+
# installed by adding `alembic[tz]` to the pip requirements
|
|
21
|
+
# string value is passed to dateutil.tz.gettz()
|
|
22
|
+
# leave blank for localtime
|
|
23
|
+
# timezone =
|
|
24
|
+
|
|
25
|
+
# max length of characters to apply to the
|
|
26
|
+
# "slug" field
|
|
27
|
+
# truncate_slug_length = 40
|
|
28
|
+
|
|
29
|
+
# set to 'true' to run the environment during
|
|
30
|
+
# the 'revision' command, regardless of autogenerate
|
|
31
|
+
# revision_environment = false
|
|
32
|
+
|
|
33
|
+
# set to 'true' to allow .pyc and .pyo files without
|
|
34
|
+
# a source .py file to be detected as revisions in the
|
|
35
|
+
# versions/ directory
|
|
36
|
+
# sourceless = false
|
|
37
|
+
|
|
38
|
+
# version location specification; This defaults
|
|
39
|
+
# to src/db/alembic/versions. When using multiple version
|
|
40
|
+
# directories, initial revisions must be specified with --version-path.
|
|
41
|
+
# The path separator used here should be the separator specified by "version_path_separator" below.
|
|
42
|
+
# version_locations = %(here)s/bar:%(here)s/bat:src/db/alembic/versions
|
|
43
|
+
|
|
44
|
+
# version path separator; As mentioned above, this is the character used to split
|
|
45
|
+
# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.
|
|
46
|
+
# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.
|
|
47
|
+
# Valid values for version_path_separator are:
|
|
48
|
+
#
|
|
49
|
+
# version_path_separator = :
|
|
50
|
+
# version_path_separator = ;
|
|
51
|
+
# version_path_separator = space
|
|
52
|
+
version_path_separator = os # Use os.pathsep. Default configuration used for new projects.
|
|
53
|
+
|
|
54
|
+
# set to 'true' to search source files recursively
|
|
55
|
+
# in each "version_locations" directory
|
|
56
|
+
# new in Alembic version 1.10
|
|
57
|
+
# recursive_version_locations = false
|
|
58
|
+
|
|
59
|
+
# the output encoding used when revision files
|
|
60
|
+
# are written from script.py.mako
|
|
61
|
+
# output_encoding = utf-8
|
|
62
|
+
|
|
63
|
+
sqlalchemy.url = %(DATABASE_URL)s
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
[post_write_hooks]
|
|
67
|
+
# post_write_hooks defines scripts or Python functions that are run
|
|
68
|
+
# on newly generated revision scripts. See the documentation for further
|
|
69
|
+
# detail and examples
|
|
70
|
+
|
|
71
|
+
# format using "black" - use the console_scripts runner, against the "black" entrypoint
|
|
72
|
+
# hooks = black
|
|
73
|
+
# black.type = console_scripts
|
|
74
|
+
# black.entrypoint = black
|
|
75
|
+
# black.options = -l 79 REVISION_SCRIPT_FILENAME
|
|
76
|
+
|
|
77
|
+
# lint with attempts to fix using "ruff" - use the exec runner, execute a binary
|
|
78
|
+
# hooks = ruff
|
|
79
|
+
# ruff.type = exec
|
|
80
|
+
# ruff.executable = %(here)s/.venv/bin/ruff
|
|
81
|
+
# ruff.options = --fix REVISION_SCRIPT_FILENAME
|
|
82
|
+
|
|
83
|
+
# Logging configuration
|
|
84
|
+
[loggers]
|
|
85
|
+
keys = root,sqlalchemy,alembic
|
|
86
|
+
|
|
87
|
+
[handlers]
|
|
88
|
+
keys = console
|
|
89
|
+
|
|
90
|
+
[formatters]
|
|
91
|
+
keys = generic
|
|
92
|
+
|
|
93
|
+
[logger_root]
|
|
94
|
+
level = WARN
|
|
95
|
+
handlers = console
|
|
96
|
+
qualname =
|
|
97
|
+
|
|
98
|
+
[logger_sqlalchemy]
|
|
99
|
+
level = WARN
|
|
100
|
+
handlers =
|
|
101
|
+
qualname = sqlalchemy.engine
|
|
102
|
+
|
|
103
|
+
[logger_alembic]
|
|
104
|
+
level = INFO
|
|
105
|
+
handlers =
|
|
106
|
+
qualname = alembic
|
|
107
|
+
|
|
108
|
+
[handler_console]
|
|
109
|
+
class = StreamHandler
|
|
110
|
+
args = (sys.stderr,)
|
|
111
|
+
level = NOTSET
|
|
112
|
+
formatter = generic
|
|
113
|
+
|
|
114
|
+
[formatter_generic]
|
|
115
|
+
format = %(levelname)-5.5s [%(name)s] %(message)s
|
|
116
|
+
datefmt = %H:%M:%S
|
|
@@ -43,7 +43,7 @@ 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.
|
|
46
|
+
project_root = os.path.abspath(os.path.dirname(__file__))
|
|
47
47
|
alembic_cfg_path = os.path.join(project_root, "alembic.ini")
|
|
48
48
|
|
|
49
49
|
alembic_cfg = Config(alembic_cfg_path)
|
|
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
|
|
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
|
|
File without changes
|