simtoolsz 0.2.6__tar.gz → 0.2.9__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.
Files changed (37) hide show
  1. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/PKG-INFO +3 -1
  2. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/README.md +2 -0
  3. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/pyproject.toml +1 -1
  4. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/__init__.py +1 -1
  5. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/reader.py +4 -4
  6. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/.github/workflows/publish.yml +0 -0
  7. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/.gitignore +0 -0
  8. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/.python-version +0 -0
  9. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/LICENSE +0 -0
  10. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/README_EN.md +0 -0
  11. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/docs/DATETIME_CONVERSION.md +0 -0
  12. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/docs/mail_usage_guide.md +0 -0
  13. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/docs/special2db_usage.md +0 -0
  14. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/examples/conversion_examples.py +0 -0
  15. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/examples/mail_examples.py +0 -0
  16. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/examples/special2db_example.py +0 -0
  17. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/examples/today_examples.py +0 -0
  18. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/examples/zip2db_example.py +0 -0
  19. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/requirements-dev.lock +0 -0
  20. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/requirements.lock +0 -0
  21. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/datetime.py +0 -0
  22. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/db.py +0 -0
  23. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/mail.py +0 -0
  24. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/src/simtoolsz/utils.py +0 -0
  25. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/test_optimized_reader.py +0 -0
  26. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_conversion.py +0 -0
  27. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_iso_comprehensive.py +0 -0
  28. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_iso_format.py +0 -0
  29. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_simple.py +0 -0
  30. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_special2db.py +0 -0
  31. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_special2db_simple.py +0 -0
  32. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_today_optimized.py +0 -0
  33. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_which_format.py +0 -0
  34. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_zip2db.py +0 -0
  35. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/test_zip2db_simple.py +0 -0
  36. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/tests/verify_unicode_fix.py +0 -0
  37. {simtoolsz-0.2.6 → simtoolsz-0.2.9}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: simtoolsz
3
- Version: 0.2.6
3
+ Version: 0.2.9
4
4
  Summary: A simple and convenient toolkit containing useful functions, classes, and methods.
5
5
  Project-URL: Homepage, https://github.com/SidneyLYZhang/simtoolsz
6
6
  Project-URL: Repository, https://github.com/SidneyLYZhang/simtoolsz.git
@@ -34,6 +34,8 @@ Description-Content-Type: text/markdown
34
34
 
35
35
  一个简单、方便的工具集合,均是个人工作中的常用功能。对之前[pytoolsz](https://github.com/SidneyLYZhang/pytoolsz)工具包的精简重构,保留最实用的功能模块。
36
36
 
37
+ 部分功能可能还有问题,如果使用中发现问题还请反馈给我。
38
+
37
39
  ## 功能特性
38
40
 
39
41
  ### 🕐 时间处理 (`simtoolsz.datetime`)
@@ -10,6 +10,8 @@
10
10
 
11
11
  一个简单、方便的工具集合,均是个人工作中的常用功能。对之前[pytoolsz](https://github.com/SidneyLYZhang/pytoolsz)工具包的精简重构,保留最实用的功能模块。
12
12
 
13
+ 部分功能可能还有问题,如果使用中发现问题还请反馈给我。
14
+
13
15
  ## 功能特性
14
16
 
15
17
  ### 🕐 时间处理 (`simtoolsz.datetime`)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "simtoolsz"
3
- version = "0.2.6"
3
+ version = "0.2.9"
4
4
  description = "A simple and convenient toolkit containing useful functions, classes, and methods."
5
5
  keywords = ["tool", "collection"]
6
6
  license = { text = "MulanPSL-2.0" }
@@ -10,7 +10,7 @@ import simtoolsz.reader as reader
10
10
  try:
11
11
  __version__ = importlib.metadata.version("simtoolsz")
12
12
  except importlib.metadata.PackageNotFoundError:
13
- __version__ = "0.2.6"
13
+ __version__ = "0.2.9"
14
14
 
15
15
  __all__ = [
16
16
  '__version__', 'mail', 'utils', 'datetime', 'db', 'reader'
@@ -1,10 +1,12 @@
1
1
  import warnings
2
2
  import polars as pl
3
+
4
+ from polars.io.csv.batched_reader import BatchedCsvReader
5
+
3
6
  from pathlib import Path
4
7
  from typing import Optional, Callable
5
8
  from zipfile import ZipFile, is_zipfile
6
9
  from tarfile import TarFile, is_tarfile
7
-
8
10
  from tempfile import TemporaryDirectory
9
11
 
10
12
 
@@ -244,8 +246,6 @@ def is_archive_file(file_path: Path) -> bool:
244
246
  Returns:
245
247
  bool: True if the file is an archive file(zip or tar), False otherwise
246
248
  """
247
- if not file_path.is_file():
248
- return False
249
249
  return _is_archive_file(file_path) or any(
250
250
  _is_archive_file(p) for p in file_path.parents
251
251
  )
@@ -445,7 +445,7 @@ def load_data(
445
445
  focus: bool = False,
446
446
  transtype: pl.Expr|list[pl.Expr]|None = None,
447
447
  **kwargs
448
- ) -> pl.DataFrame | pl.LazyFrame | pl.BatchedCsvReader:
448
+ ) -> pl.DataFrame | pl.LazyFrame | BatchedCsvReader:
449
449
  """
450
450
  Load data from a file using the appropriate reader.
451
451
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes