luxorasap 0.2.4__tar.gz → 0.2.5__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.
- {luxorasap-0.2.4 → luxorasap-0.2.5}/PKG-INFO +1 -1
- {luxorasap-0.2.4 → luxorasap-0.2.5}/pyproject.toml +2 -2
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/__init__.py +1 -1
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/datareader/core.py +10 -3
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/PKG-INFO +1 -1
- {luxorasap-0.2.4 → luxorasap-0.2.5}/README.md +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/setup.cfg +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/btgapi/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/btgapi/auth.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/btgapi/reports.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/btgapi/trades.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/datareader/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/ingest/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/ingest/cloud/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/ingest/legacy_local/dataloader.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/dataframe/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/dataframe/reader.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/dataframe/transforms.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/storage/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/storage/blob.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/storage/change_tracker.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/tools/__init__.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap/utils/tools/excel.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/SOURCES.txt +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/dependency_links.txt +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/entry_points.txt +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/requires.txt +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/src/luxorasap.egg-info/top_level.txt +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_btgapi_auth.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_btgapi_reports.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_btgapi_trades.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_datareader.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_ingest_cloud.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_ingest_legacy_local.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_utils_change_tracker.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_utils_dataframe.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/test_utils_storage.py +0 -0
- {luxorasap-0.2.4 → luxorasap-0.2.5}/tests/tests_utils_pickle_excel.py +0 -0
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
#############################
|
|
11
11
|
[project]
|
|
12
12
|
name = "luxorasap"
|
|
13
|
-
version = "0.2.
|
|
13
|
+
version = "0.2.5"
|
|
14
14
|
description = "Toolbox da Luxor para ingestão, análise e automação de dados financeiros."
|
|
15
15
|
readme = "README.md"
|
|
16
16
|
requires-python = ">=3.9"
|
|
@@ -78,7 +78,7 @@ exclude = ["tests*"]
|
|
|
78
78
|
# bumpver (sem-ver)
|
|
79
79
|
#############################
|
|
80
80
|
[tool.bumpver]
|
|
81
|
-
current_version = "0.2.
|
|
81
|
+
current_version = "0.2.5"
|
|
82
82
|
version_pattern = "MAJOR.MINOR.PATCH"
|
|
83
83
|
|
|
84
84
|
# regex explícito – obrigatório no bumpver 2024+
|
|
@@ -13,7 +13,7 @@ from types import ModuleType
|
|
|
13
13
|
try:
|
|
14
14
|
__version__: str = metadata.version(__name__)
|
|
15
15
|
except metadata.PackageNotFoundError: # editable install
|
|
16
|
-
__version__ = "0.2.
|
|
16
|
+
__version__ = "0.2.5"
|
|
17
17
|
|
|
18
18
|
# ─── Lazy loader ─────────────────────────────────────────────────
|
|
19
19
|
def __getattr__(name: str) -> ModuleType:
|
|
@@ -107,7 +107,7 @@ class LuxorQuery:
|
|
|
107
107
|
return tables
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
def get_table(self, table_name, index=False, index_name="index", dtypes_override={}, force_reload=False):
|
|
110
|
+
def get_table(self, table_name, index=False, index_name="index", dtypes_override={}, force_reload=False, drop_last_updated_columns=True):
|
|
111
111
|
"""
|
|
112
112
|
Retorna uma copia do DataFrame do 'table_name' correspondente. Se não estiver disponivel,
|
|
113
113
|
retorna None.
|
|
@@ -142,7 +142,14 @@ class LuxorQuery:
|
|
|
142
142
|
if (table_name in self.tables_in_use) and not force_reload:
|
|
143
143
|
return self.tables_in_use[table_name]["table_data"]
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
|
|
146
|
+
table_data = self.__load_table(table_name, index=index, index_name=index_name, dtypes_override=dtypes_override)
|
|
147
|
+
|
|
148
|
+
if drop_last_updated_columns:
|
|
149
|
+
if "Last_Updated" in table_data.columns:
|
|
150
|
+
return table_data.drop(columns=["Last_Updated"])
|
|
151
|
+
|
|
152
|
+
return table_data
|
|
146
153
|
|
|
147
154
|
|
|
148
155
|
|
|
@@ -1213,7 +1220,7 @@ class LuxorQuery:
|
|
|
1213
1220
|
).set_index("Date")
|
|
1214
1221
|
if pct_changes.empty:
|
|
1215
1222
|
return pd.DataFrame(columns=["Asset", "Pct_Change"]).set_index("Asset")
|
|
1216
|
-
|
|
1223
|
+
print(pct_changes)
|
|
1217
1224
|
pct_changes["Pct_Change"] = pct_changes.groupby("Asset").pct_change().fillna(0)+1
|
|
1218
1225
|
pct_changes = pct_changes[["Asset", "Pct_Change"]]
|
|
1219
1226
|
pct_changes["Pct_Change"] = pct_changes.groupby("Asset").cumprod()-1
|
|
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
|