luxorasap 0.0.1__py3-none-any.whl → 0.0.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.
- luxorasap/__init__.py +20 -11
- luxorasap/ingest/__init__.py +0 -0
- luxorasap/utils/__init__.py +0 -0
- {luxorasap-0.0.1.dist-info → luxorasap-0.0.2.dist-info}/METADATA +1 -1
- luxorasap-0.0.2.dist-info/RECORD +10 -0
- luxorasap-0.0.1.dist-info/RECORD +0 -8
- {luxorasap-0.0.1.dist-info → luxorasap-0.0.2.dist-info}/WHEEL +0 -0
- {luxorasap-0.0.1.dist-info → luxorasap-0.0.2.dist-info}/entry_points.txt +0 -0
- {luxorasap-0.0.1.dist-info → luxorasap-0.0.2.dist-info}/top_level.txt +0 -0
luxorasap/__init__.py
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
"""
|
|
2
|
-
LuxorASAP – pacote
|
|
2
|
+
LuxorASAP – pacote raiz.
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
• Versão única obtida via importlib.metadata.
|
|
5
|
+
• Lazy-loading dos subpacotes (datareader, ingest, utils).
|
|
6
|
+
• Reexporta LuxorQuery para conveniência: from luxorasap import LuxorQuery
|
|
5
7
|
"""
|
|
6
8
|
|
|
7
|
-
from importlib
|
|
9
|
+
from importlib import import_module, metadata
|
|
10
|
+
from types import ModuleType
|
|
8
11
|
|
|
12
|
+
# ─── Versão ───────────────────────────────────────────────────────
|
|
9
13
|
try:
|
|
10
|
-
__version__: str =
|
|
11
|
-
except PackageNotFoundError: #
|
|
12
|
-
__version__ = "0.0.
|
|
14
|
+
__version__: str = metadata.version(__name__)
|
|
15
|
+
except metadata.PackageNotFoundError: # editable install
|
|
16
|
+
__version__ = "0.0.2"
|
|
13
17
|
|
|
14
|
-
#
|
|
15
|
-
|
|
18
|
+
# ─── Lazy loader ─────────────────────────────────────────────────
|
|
19
|
+
def __getattr__(name: str) -> ModuleType:
|
|
20
|
+
if name in {"datareader", "ingest", "utils"}:
|
|
21
|
+
module = import_module(f".{name}", __name__)
|
|
22
|
+
globals()[name] = module # cache no namespace
|
|
23
|
+
return module
|
|
24
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
16
25
|
|
|
17
|
-
# Conveniência
|
|
18
|
-
|
|
26
|
+
# ─── Conveniência: import direto de LuxorQuery ───────────────────
|
|
27
|
+
LuxorQuery = import_module(".datareader", __name__).LuxorQuery # type: ignore[attr-defined]
|
|
19
28
|
|
|
20
|
-
__all__ = ["__version__", "
|
|
29
|
+
__all__ = ["__version__", "LuxorQuery"]
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
luxorasap/__init__.py,sha256=UTn522ZJQ17wVxA8touIplzT0y21tzJL3XmsqAbq7XY,1355
|
|
2
|
+
luxorasap/datareader/__init__.py,sha256=41RAvbrQ4R6oj67S32CrKqolx0CJ2W8cbOF6g5Cqm2g,120
|
|
3
|
+
luxorasap/datareader/core.py,sha256=VURibG9qly5Q1Fu6rrgvXypERb39S535wKd-xc8g0uU,156887
|
|
4
|
+
luxorasap/ingest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
luxorasap/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
luxorasap-0.0.2.dist-info/METADATA,sha256=SrdjdL1Ce62fym3jfpsTYxI66NCuaRx_21GdwJwnQb0,2633
|
|
7
|
+
luxorasap-0.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
luxorasap-0.0.2.dist-info/entry_points.txt,sha256=XFh-dOwUhlya9DmGvgookMI0ezyUJjcOvTIHDEYS44g,52
|
|
9
|
+
luxorasap-0.0.2.dist-info/top_level.txt,sha256=9YOL6bUIpzY06XFBRkUW1e4rgB32Ds91fQPGwUEjxzU,10
|
|
10
|
+
luxorasap-0.0.2.dist-info/RECORD,,
|
luxorasap-0.0.1.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
luxorasap/__init__.py,sha256=tmaOA_ENRSY0yOvTx21yZvOnefVUUTMdnkL0bElLzq0,621
|
|
2
|
-
luxorasap/datareader/__init__.py,sha256=41RAvbrQ4R6oj67S32CrKqolx0CJ2W8cbOF6g5Cqm2g,120
|
|
3
|
-
luxorasap/datareader/core.py,sha256=VURibG9qly5Q1Fu6rrgvXypERb39S535wKd-xc8g0uU,156887
|
|
4
|
-
luxorasap-0.0.1.dist-info/METADATA,sha256=2jG86LoDMn789Lb8odUG9nP3LFsFUPikW1TEzA7F3pw,2633
|
|
5
|
-
luxorasap-0.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
6
|
-
luxorasap-0.0.1.dist-info/entry_points.txt,sha256=XFh-dOwUhlya9DmGvgookMI0ezyUJjcOvTIHDEYS44g,52
|
|
7
|
-
luxorasap-0.0.1.dist-info/top_level.txt,sha256=9YOL6bUIpzY06XFBRkUW1e4rgB32Ds91fQPGwUEjxzU,10
|
|
8
|
-
luxorasap-0.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|