onekit 4.0.0__tar.gz → 5.0.0__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: 4.0.0
3
+ Version: 5.0.0
4
4
  Summary: All-in-One Python Kit.
5
5
  License: BSD 3-Clause
6
6
  Keywords: onekit
@@ -13,10 +13,10 @@ Classifier: Programming Language :: Python :: 3.12
13
13
  Provides-Extra: analytics
14
14
  Provides-Extra: base
15
15
  Provides-Extra: pyspark
16
+ Requires-Dist: duckdb (>=1.3.1,<2.0.0) ; extra == "base"
16
17
  Requires-Dist: pandas[compression,computation,excel,output-formatting,parquet,performance,plot] (>=2.2.3,<3.0.0) ; extra == "analytics"
17
18
  Requires-Dist: pyspark (==3.5.3) ; extra == "pyspark"
18
19
  Requires-Dist: python-dateutil (>=2.9.0.post0,<3.0.0) ; extra == "base"
19
- Requires-Dist: pytz (>=2025.2,<2026.0) ; extra == "base"
20
20
  Requires-Dist: scikit-learn (>=1.6.1,<2.0.0) ; extra == "analytics"
21
21
  Requires-Dist: toolz (>=1.0.0,<2.0.0) ; extra == "base"
22
22
  Requires-Dist: tqdm (>=4.67.1,<5.0.0) ; extra == "analytics"
@@ -22,12 +22,12 @@ requires-python = ">=3.11"
22
22
  dependencies = []
23
23
 
24
24
  [tool.poetry]
25
- version = "4.0.0"
25
+ version = "5.0.0"
26
26
 
27
27
  [project.optional-dependencies]
28
28
  base = [
29
+ "duckdb (>=1.3.1,<2.0.0)",
29
30
  "python-dateutil (>=2.9.0.post0,<3.0.0)",
30
- "pytz (>=2025.2,<2026.0)",
31
31
  "toolz (>=1.0.0,<2.0.0)",
32
32
  ]
33
33
  analytics = [
@@ -9,9 +9,7 @@ from onekit import pythonkit as pk
9
9
  __all__ = (
10
10
  "ColumnNotFoundError",
11
11
  "InvalidChoiceError",
12
- "InvalidDateRangeWarning",
13
12
  "OnekitError",
14
- "OnekitWarning",
15
13
  "RowCountMismatchError",
16
14
  "RowValueMismatchError",
17
15
  "SchemaMismatchError",
@@ -141,11 +139,3 @@ class SchemaMismatchError(OnekitError):
141
139
  num_diff = sum(c == "|" for c in msg.splitlines()[1])
142
140
  self.message = pk.concat_strings(os.linesep, f"{num_diff=}", msg)
143
141
  super().__init__(self.message)
144
-
145
-
146
- class OnekitWarning(UserWarning):
147
- """A base class for onekit warnings."""
148
-
149
-
150
- class InvalidDateRangeWarning(OnekitWarning):
151
- """Warning for when a date range is provided in reverse order but is corrected."""
@@ -118,7 +118,7 @@ def archive_files(
118
118
  """
119
119
  target = Path(target).resolve()
120
120
  wildcards = wildcards or ["**/*"]
121
- name = name or f"{tk.timestamp(zone=timezone, fmt='%Y%m%d%H%M%S')}_{target.stem}"
121
+ name = name or f"{tk.timestamp(timezone, fmt='%Y%m%d%H%M%S')}_{target.stem}"
122
122
  makedir = functools.partial(os.makedirs, exist_ok=True)
123
123
 
124
124
  with TemporaryDirectory() as tmpdir: