mayutils 1.2.8__tar.gz → 1.2.10__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.
- {mayutils-1.2.8 → mayutils-1.2.10}/PKG-INFO +2 -1
- {mayutils-1.2.8 → mayutils-1.2.10}/pyproject.toml +2 -1
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/read.py +8 -6
- {mayutils-1.2.8 → mayutils-1.2.10}/LICENSE +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/README.md +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/core/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/core/constants.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/analysis/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/cache/.gitkeep +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/live.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/local.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/queries/.gitkeep +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/queries/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/data/queries/examples/.gitkeep +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/benchmarking.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/databases.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/filesystem.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/logging.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/memoisation.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/oauth.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/environment/webdrivers.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/export/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/export/images.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/export/pdf.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/export/slides.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/interfaces/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/interfaces/google.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/interfaces/microsoft.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/interfaces/streamlit.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/mathematics/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/mathematics/numba.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/mathematics/numpy.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/classes.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/colours.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/dataframes.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/datetime.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/decorators.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/dictionaries.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/functions.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/hashing.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/numbers.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/strings.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/objects/types.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/scripts/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/scripts/clear_cache.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/scripts/versioning.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/testing/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/console.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/combine.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/matplotlib/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/matplotlib/template.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/plotly/__init__.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/plotly/charts.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/plotly/templates.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/plotly/traces.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/graphs/plotly/utilities.py +0 -0
- {mayutils-1.2.8 → mayutils-1.2.10}/src/mayutils/visualisation/notebook.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: mayutils
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.10
|
|
4
4
|
Summary: Utilities for Python from Mayuran Visakan
|
|
5
5
|
Author: Mayuran Visakan
|
|
6
6
|
Author-email: Mayuran Visakan <mayuran.k.v@gmail.com>
|
|
@@ -38,6 +38,7 @@ Requires-Dist: great-tables>=0.18.0
|
|
|
38
38
|
Requires-Dist: html2image>=2.0.7
|
|
39
39
|
Requires-Dist: ipykernel>=6.30.1
|
|
40
40
|
Requires-Dist: itables>=2.4.5
|
|
41
|
+
Requires-Dist: jupysql>=0.11.1
|
|
41
42
|
Requires-Dist: jupyter>=1.1.1
|
|
42
43
|
Requires-Dist: kaleido>=1.0.0
|
|
43
44
|
Requires-Dist: keyring>=25.6.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mayutils"
|
|
3
|
-
version = "1.2.
|
|
3
|
+
version = "1.2.10"
|
|
4
4
|
description = "Utilities for Python from Mayuran Visakan"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Mayuran Visakan", email = "mayuran.k.v@gmail.com" }
|
|
@@ -22,6 +22,7 @@ dependencies = [
|
|
|
22
22
|
"html2image>=2.0.7",
|
|
23
23
|
"ipykernel>=6.30.1",
|
|
24
24
|
"itables>=2.4.5",
|
|
25
|
+
"jupysql>=0.11.1",
|
|
25
26
|
"jupyter>=1.1.1",
|
|
26
27
|
"kaleido>=1.0.0",
|
|
27
28
|
"keyring>=25.6.0",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
from functools import _lru_cache_wrapper
|
|
2
1
|
from pathlib import Path
|
|
3
|
-
from typing import Literal, overload
|
|
2
|
+
from typing import TYPE_CHECKING, Literal, overload
|
|
4
3
|
|
|
5
|
-
from pandas import DataFrame
|
|
6
4
|
import polars as pl
|
|
5
|
+
from pandas import DataFrame
|
|
7
6
|
|
|
8
7
|
from mayutils.data import CACHE_FOLDER
|
|
9
8
|
from mayutils.data.queries import QUERIES_FOLDERS, get_formatted_query
|
|
@@ -12,11 +11,14 @@ from mayutils.environment.memoisation import DataframeBackends
|
|
|
12
11
|
from mayutils.objects.dataframes import DataFrames, read_parquet, to_parquet
|
|
13
12
|
from mayutils.objects.hashing import hash_inputs
|
|
14
13
|
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from functools import _lru_cache_wrapper as LRUCacheWrapper
|
|
16
|
+
|
|
15
17
|
|
|
16
18
|
@overload
|
|
17
19
|
def get_query_data(
|
|
18
20
|
query_name: Path | str,
|
|
19
|
-
read_query:
|
|
21
|
+
read_query: LRUCacheWrapper[DataFrames],
|
|
20
22
|
dataframe_backend: Literal["pandas"],
|
|
21
23
|
queries_folders: tuple[Path, ...] = QUERIES_FOLDERS,
|
|
22
24
|
cache: bool | Literal["persistent"] = True,
|
|
@@ -27,7 +29,7 @@ def get_query_data(
|
|
|
27
29
|
@overload
|
|
28
30
|
def get_query_data(
|
|
29
31
|
query_name: Path | str,
|
|
30
|
-
read_query:
|
|
32
|
+
read_query: LRUCacheWrapper[DataFrames],
|
|
31
33
|
dataframe_backend: Literal["polars"],
|
|
32
34
|
queries_folders: tuple[Path, ...] = QUERIES_FOLDERS,
|
|
33
35
|
cache: bool | Literal["persistent"] = True,
|
|
@@ -37,7 +39,7 @@ def get_query_data(
|
|
|
37
39
|
|
|
38
40
|
def get_query_data(
|
|
39
41
|
query_name: Path | str,
|
|
40
|
-
read_query:
|
|
42
|
+
read_query: LRUCacheWrapper[DataFrames],
|
|
41
43
|
dataframe_backend: DataframeBackends = "pandas",
|
|
42
44
|
queries_folders: tuple[Path, ...] = QUERIES_FOLDERS,
|
|
43
45
|
cache: bool | Literal["persistent"] = True,
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|