onekit 2.1.0__tar.gz → 2.1.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: onekit
3
- Version: 2.1.0
3
+ Version: 2.1.1
4
4
  Summary: All-in-One Python Kit.
5
5
  License: BSD 3-Clause
6
6
  Keywords: onekit
@@ -11,12 +11,13 @@ Classifier: Programming Language :: Python :: 3 :: Only
11
11
  Classifier: Programming Language :: Python :: 3.11
12
12
  Classifier: Programming Language :: Python :: 3.12
13
13
  Provides-Extra: analytics
14
- Provides-Extra: basic
14
+ Provides-Extra: base
15
+ Provides-Extra: pyspark
15
16
  Requires-Dist: pandas[compression,computation,excel,output-formatting,parquet,performance,plot] (>=2.2.3,<3.0.0) ; extra == "analytics"
16
- Requires-Dist: pyspark (==3.5.3) ; extra == "analytics"
17
- Requires-Dist: pytz (>=2025.2,<2026.0) ; extra == "basic"
17
+ Requires-Dist: pyspark (==3.5.3) ; extra == "pyspark"
18
+ Requires-Dist: pytz (>=2025.2,<2026.0) ; extra == "base"
18
19
  Requires-Dist: scikit-learn (>=1.6.1,<2.0.0) ; extra == "analytics"
19
- Requires-Dist: toolz (>=1.0.0,<2.0.0) ; extra == "basic"
20
+ Requires-Dist: toolz (>=1.0.0,<2.0.0) ; extra == "base"
20
21
  Requires-Dist: tqdm (>=4.67.1,<5.0.0) ; extra == "analytics"
21
22
  Description-Content-Type: text/markdown
22
23
 
@@ -53,7 +54,7 @@ pip install onekit
53
54
  With optional dependencies:
54
55
 
55
56
  ```shell
56
- pip install onekit[basic,analytics]
57
+ pip install onekit[base,analytics,pyspark]
57
58
  ```
58
59
 
59
60
  ## Disclaimer
@@ -31,7 +31,7 @@ pip install onekit
31
31
  With optional dependencies:
32
32
 
33
33
  ```shell
34
- pip install onekit[basic,analytics]
34
+ pip install onekit[base,analytics,pyspark]
35
35
  ```
36
36
 
37
37
  ## Disclaimer
@@ -22,10 +22,10 @@ requires-python = ">=3.11"
22
22
  dependencies = []
23
23
 
24
24
  [tool.poetry]
25
- version = "2.1.0"
25
+ version = "2.1.1"
26
26
 
27
27
  [project.optional-dependencies]
28
- basic = [
28
+ base = [
29
29
  "toolz (>=1.0.0,<2.0.0)",
30
30
  "pytz (>=2025.2,<2026.0)",
31
31
  ]
@@ -33,12 +33,12 @@ analytics = [
33
33
  "pandas[compression,computation,excel,output-formatting,parquet,performance,plot] (>=2.2.3,<3.0.0)",
34
34
  "scikit-learn (>=1.6.1,<2.0.0)",
35
35
  "tqdm (>=4.67.1,<5.0.0)",
36
- "pyspark (==3.5.3)",
37
36
  ]
37
+ pyspark = ["pyspark (==3.5.3)"]
38
38
 
39
39
  [tool.poetry.group.dev.dependencies]
40
40
  autoflake = "^2.3.1"
41
- black = {extras = ["jupyter"], version = "^25.1.0"}
41
+ black = { extras = ["jupyter"], version = "^25.1.0" }
42
42
  isort = "^6.0.1"
43
43
  flake8 = "^7.1.2"
44
44
  pre-commit = "^4.2.0"
@@ -1104,8 +1104,8 @@ def with_date_diff_ago(
1104
1104
  ref_date: str | dt.date,
1105
1105
  new_col: str,
1106
1106
  ) -> SparkDF:
1107
- """Add column with date differences w.r.t. the reference date,
1108
- where date differences of past dates are positive integers.
1107
+ """Add a column showing date differences with respect to the reference date,
1108
+ where differences to past dates are positive integers.
1109
1109
 
1110
1110
  Examples
1111
1111
  --------
@@ -1150,8 +1150,8 @@ def with_date_diff_ahead(
1150
1150
  ref_date: str | dt.date,
1151
1151
  new_col: str,
1152
1152
  ) -> SparkDF:
1153
- """Add column with date differences w.r.t. the reference date,
1154
- where date differences of future dates are positive integers.
1153
+ """Add a column showing date differences with respect to the reference date,
1154
+ where differences to future dates are positive integers.
1155
1155
 
1156
1156
  Examples
1157
1157
  --------
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