bidviz 1.1.0__tar.gz → 1.1.3__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.
- {bidviz-1.1.0 → bidviz-1.1.3}/PKG-INFO +2 -2
- {bidviz-1.1.0 → bidviz-1.1.3}/README.md +1 -1
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/__init__.py +3 -1
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/__init__.py +20 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/core/__init__.py +1 -1
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformer.py +1 -1
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/__init__.py +7 -7
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/bar.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/heatmap.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/kpi.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/line.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/other.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/pie.py +2 -2
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/transformers/table.py +2 -2
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz.egg-info/PKG-INFO +2 -2
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz.egg-info/SOURCES.txt +13 -13
- bidviz-1.1.3/bidviz.egg-info/top_level.txt +1 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/pyproject.toml +1 -1
- {bidviz-1.1.0 → bidviz-1.1.3}/tests/test_polars_transformer.py +1 -1
- {bidviz-1.1.0 → bidviz-1.1.3}/tests/test_polars_utils.py +1 -1
- bidviz-1.1.0/bidviz.egg-info/top_level.txt +0 -2
- {bidviz-1.1.0 → bidviz-1.1.3}/LICENSE +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/core/__init__.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/core/base.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/exceptions.py +0 -0
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/core/base.py +0 -0
- {bidviz-1.1.0/bidviz_polars → bidviz-1.1.3/bidviz/polars}/utils.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformer.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/__init__.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/bar.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/heatmap.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/kpi.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/line.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/other.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/pie.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/transformers/table.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz/utils.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz.egg-info/dependency_links.txt +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/bidviz.egg-info/requires.txt +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/setup.cfg +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/tests/test_exceptions.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/tests/test_transformer.py +0 -0
- {bidviz-1.1.0 → bidviz-1.1.3}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bidviz
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: A powerful, configurable backend visualization data transformation library
|
|
5
5
|
Author-email: Mohammad Amin Khara <kharama8709@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -114,7 +114,7 @@ print(result)
|
|
|
114
114
|
|
|
115
115
|
```python
|
|
116
116
|
import polars as pl
|
|
117
|
-
from
|
|
117
|
+
from bidviz.polars import ChartTransformer
|
|
118
118
|
|
|
119
119
|
# Initialize the Polars transformer
|
|
120
120
|
transformer = ChartTransformer()
|
|
@@ -3,6 +3,8 @@ BidViz - Backend Visualization Data Transformation Library
|
|
|
3
3
|
|
|
4
4
|
A powerful, configurable backend visualization data transformation library designed to bridge
|
|
5
5
|
the gap between raw data and frontend charting libraries.
|
|
6
|
+
|
|
7
|
+
Supports both pandas and Polars backends for high-performance data transformation.
|
|
6
8
|
"""
|
|
7
9
|
|
|
8
10
|
__version__ = "1.0.0"
|
|
@@ -11,4 +13,4 @@ __author__ = "Mohammad Amin Khara"
|
|
|
11
13
|
from bidviz.exceptions import TransformationError, ValidationError
|
|
12
14
|
from bidviz.transformer import ChartTransformer
|
|
13
15
|
|
|
14
|
-
__all__ = ["ChartTransformer", "TransformationError", "ValidationError"]
|
|
16
|
+
__all__ = ["ChartTransformer", "TransformationError", "ValidationError", "polars"]
|
|
@@ -14,7 +14,7 @@ Main Classes:
|
|
|
14
14
|
|
|
15
15
|
Example:
|
|
16
16
|
>>> import polars as pl
|
|
17
|
-
>>> from
|
|
17
|
+
>>> from bidviz.polars import ChartTransformer
|
|
18
18
|
>>>
|
|
19
19
|
>>> transformer = ChartTransformer()
|
|
20
20
|
>>> df = pl.DataFrame({'vendor': ['A', 'B'], 'revenue': [100, 200]})
|
|
@@ -22,7 +22,17 @@ Example:
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
from bidviz.exceptions import TransformationError, ValidationError
|
|
25
|
-
from
|
|
25
|
+
from bidviz.polars.transformer import ChartTransformer
|
|
26
|
+
from bidviz.polars.utils import (
|
|
27
|
+
clean_dataframe,
|
|
28
|
+
dataframe_to_dicts,
|
|
29
|
+
format_label,
|
|
30
|
+
get_numeric_columns,
|
|
31
|
+
paginate_dataframe,
|
|
32
|
+
safe_convert_to_numeric,
|
|
33
|
+
safe_get_value,
|
|
34
|
+
validate_columns,
|
|
35
|
+
)
|
|
26
36
|
|
|
27
37
|
__version__ = "1.0.0"
|
|
28
38
|
|
|
@@ -30,4 +40,12 @@ __all__ = [
|
|
|
30
40
|
"ChartTransformer",
|
|
31
41
|
"TransformationError",
|
|
32
42
|
"ValidationError",
|
|
43
|
+
"clean_dataframe",
|
|
44
|
+
"dataframe_to_dicts",
|
|
45
|
+
"format_label",
|
|
46
|
+
"get_numeric_columns",
|
|
47
|
+
"paginate_dataframe",
|
|
48
|
+
"safe_convert_to_numeric",
|
|
49
|
+
"safe_get_value",
|
|
50
|
+
"validate_columns",
|
|
33
51
|
]
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"""Chart transformers for Polars DataFrames."""
|
|
2
2
|
|
|
3
|
-
from
|
|
4
|
-
from
|
|
3
|
+
from bidviz.polars.transformers.bar import BarChartTransformer
|
|
4
|
+
from bidviz.polars.transformers.heatmap import (
|
|
5
5
|
CorrelationHeatmapTransformer,
|
|
6
6
|
HeatmapTransformer,
|
|
7
7
|
)
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.transformers.kpi import KPICardsTransformer
|
|
9
|
+
from bidviz.polars.transformers.line import (
|
|
10
10
|
LineChartTransformer,
|
|
11
11
|
MultiLineChartTransformer,
|
|
12
12
|
)
|
|
13
|
-
from
|
|
13
|
+
from bidviz.polars.transformers.pie import PieChartTransformer
|
|
14
|
+
from bidviz.polars.transformers.table import DataTableTransformer
|
|
15
|
+
from bidviz.polars.transformers.other import (
|
|
14
16
|
FunnelChartTransformer,
|
|
15
17
|
StackedBarChartTransformer,
|
|
16
18
|
)
|
|
17
|
-
from bidviz_polars.transformers.pie import PieChartTransformer
|
|
18
|
-
from bidviz_polars.transformers.table import DataTableTransformer
|
|
19
19
|
|
|
20
20
|
__all__ = [
|
|
21
21
|
"BarChartTransformer",
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict, Optional
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, safe_get_value, validate_columns
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class BarChartTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict, List, Optional
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, get_numeric_columns, safe_get_value, validate_columns
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class HeatmapTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, safe_get_value
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class KPICardsTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict, List, Optional
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, safe_get_value, validate_columns
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class LineChartTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict, List, Optional
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, safe_get_value, validate_columns
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class FunnelChartTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, safe_get_value, validate_columns
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class PieChartTransformer(BaseChartTransformer):
|
|
@@ -5,8 +5,8 @@ from typing import Any, Dict
|
|
|
5
5
|
import polars as pl
|
|
6
6
|
|
|
7
7
|
from bidviz.exceptions import TransformationError
|
|
8
|
-
from
|
|
9
|
-
from
|
|
8
|
+
from bidviz.polars.core.base import BaseChartTransformer
|
|
9
|
+
from bidviz.polars.utils import format_label, paginate_dataframe, safe_get_value
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class DataTableTransformer(BaseChartTransformer):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bidviz
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.3
|
|
4
4
|
Summary: A powerful, configurable backend visualization data transformation library
|
|
5
5
|
Author-email: Mohammad Amin Khara <kharama8709@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -114,7 +114,7 @@ print(result)
|
|
|
114
114
|
|
|
115
115
|
```python
|
|
116
116
|
import polars as pl
|
|
117
|
-
from
|
|
117
|
+
from bidviz.polars import ChartTransformer
|
|
118
118
|
|
|
119
119
|
# Initialize the Polars transformer
|
|
120
120
|
transformer = ChartTransformer()
|
|
@@ -12,6 +12,19 @@ bidviz.egg-info/requires.txt
|
|
|
12
12
|
bidviz.egg-info/top_level.txt
|
|
13
13
|
bidviz/core/__init__.py
|
|
14
14
|
bidviz/core/base.py
|
|
15
|
+
bidviz/polars/__init__.py
|
|
16
|
+
bidviz/polars/transformer.py
|
|
17
|
+
bidviz/polars/utils.py
|
|
18
|
+
bidviz/polars/core/__init__.py
|
|
19
|
+
bidviz/polars/core/base.py
|
|
20
|
+
bidviz/polars/transformers/__init__.py
|
|
21
|
+
bidviz/polars/transformers/bar.py
|
|
22
|
+
bidviz/polars/transformers/heatmap.py
|
|
23
|
+
bidviz/polars/transformers/kpi.py
|
|
24
|
+
bidviz/polars/transformers/line.py
|
|
25
|
+
bidviz/polars/transformers/other.py
|
|
26
|
+
bidviz/polars/transformers/pie.py
|
|
27
|
+
bidviz/polars/transformers/table.py
|
|
15
28
|
bidviz/transformers/__init__.py
|
|
16
29
|
bidviz/transformers/bar.py
|
|
17
30
|
bidviz/transformers/heatmap.py
|
|
@@ -20,19 +33,6 @@ bidviz/transformers/line.py
|
|
|
20
33
|
bidviz/transformers/other.py
|
|
21
34
|
bidviz/transformers/pie.py
|
|
22
35
|
bidviz/transformers/table.py
|
|
23
|
-
bidviz_polars/__init__.py
|
|
24
|
-
bidviz_polars/transformer.py
|
|
25
|
-
bidviz_polars/utils.py
|
|
26
|
-
bidviz_polars/core/__init__.py
|
|
27
|
-
bidviz_polars/core/base.py
|
|
28
|
-
bidviz_polars/transformers/__init__.py
|
|
29
|
-
bidviz_polars/transformers/bar.py
|
|
30
|
-
bidviz_polars/transformers/heatmap.py
|
|
31
|
-
bidviz_polars/transformers/kpi.py
|
|
32
|
-
bidviz_polars/transformers/line.py
|
|
33
|
-
bidviz_polars/transformers/other.py
|
|
34
|
-
bidviz_polars/transformers/pie.py
|
|
35
|
-
bidviz_polars/transformers/table.py
|
|
36
36
|
tests/test_exceptions.py
|
|
37
37
|
tests/test_polars_transformer.py
|
|
38
38
|
tests/test_polars_utils.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bidviz
|
|
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
|