pathflow-toolkit 0.1.1__tar.gz → 0.1.2__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 (59) hide show
  1. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/PKG-INFO +5 -10
  2. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/README.md +4 -9
  3. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/pyproject.toml +102 -102
  4. pathflow_toolkit-0.1.2/src/path_file/_version.py +1 -0
  5. pathflow_toolkit-0.1.1/src/path_file/_version.py +0 -1
  6. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/.gitignore +0 -0
  7. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/CHANGELOG.md +0 -0
  8. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/LICENSE +0 -0
  9. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/__init__.py +0 -0
  10. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/__main__.py +0 -0
  11. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/_internal/__init__.py +0 -0
  12. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/_internal/_iterators.py +0 -0
  13. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/_internal/_log.py +0 -0
  14. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/_internal/_parsers.py +0 -0
  15. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/_internal/_safety.py +0 -0
  16. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/actions.py +0 -0
  17. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/archive.py +0 -0
  18. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/chain.py +0 -0
  19. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/cli.py +0 -0
  20. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/entries.py +0 -0
  21. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/exceptions.py +0 -0
  22. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/filters.py +0 -0
  23. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/hash.py +0 -0
  24. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/progress.py +0 -0
  25. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/py.typed +0 -0
  26. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/report.py +0 -0
  27. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/rules.py +0 -0
  28. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/search.py +0 -0
  29. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/sync.py +0 -0
  30. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/units.py +0 -0
  31. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/utils.py +0 -0
  32. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/src/path_file/watch.py +0 -0
  33. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/conftest.py +0 -0
  34. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_actions.py +0 -0
  35. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_actions_deep.py +0 -0
  36. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_archive.py +0 -0
  37. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_archive_sync_entries.py +0 -0
  38. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_chain.py +0 -0
  39. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_chain_deep.py +0 -0
  40. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_cli.py +0 -0
  41. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_cli_inproc.py +0 -0
  42. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_exceptions.py +0 -0
  43. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_filters.py +0 -0
  44. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_filters_deep.py +0 -0
  45. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_final_gaps.py +0 -0
  46. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_gap_fillers.py +0 -0
  47. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_hash.py +0 -0
  48. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_integration.py +0 -0
  49. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_internals.py +0 -0
  50. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_iterators_watch.py +0 -0
  51. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_report_progress.py +0 -0
  52. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_rules.py +0 -0
  53. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_rules_deep.py +0 -0
  54. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_search.py +0 -0
  55. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_search_safety.py +0 -0
  56. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_sync.py +0 -0
  57. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_units_parsers_hash.py +0 -0
  58. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_utils.py +0 -0
  59. {pathflow_toolkit-0.1.1 → pathflow_toolkit-0.1.2}/tests/test_watch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: pathflow-toolkit
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: The elegant file automation library for Python
5
5
  Project-URL: Homepage, https://github.com/Largo-m/path_file
6
6
  Project-URL: Documentation, https://github.com/Largo-m/path_file#readme
@@ -101,17 +101,12 @@ result = pf.find("~/Downloads").files().older_than("30 days").delete(dry_run=Tru
101
101
  print(result.summary())
102
102
 
103
103
  # Actually delete (requires confirmation)
104
- pf.find("~/Downloads") \
105
- .files() \
106
- .older_than("30 days") \
107
- .delete(confirm=True) \
108
- .execute()
104
+ pf.find("~/Downloads").files().older_than("30 days").delete(confirm=True).execute()
109
105
 
110
106
  # Organize photos by date
111
- pf.find("~/Photos") \
112
- .files() \
113
- .with_extensions(".jpg", ".png", ".heic") \
114
- .for_each(lambda e: e.path.rename(f"~/Photos/Organized/{e.modified:%Y/%m}/{e.name}"))
107
+ pf.find("~/Photos").files().with_extensions(".jpg", ".png", ".heic").for_each(
108
+ lambda e: e.path.rename(f"~/Photos/Organized/{e.modified:%Y/%m}/{e.name}")
109
+ )
115
110
 
116
111
  # Sync with verification
117
112
  syncer = pf.sync("~/Documents", "/backup/Documents")
@@ -63,17 +63,12 @@ result = pf.find("~/Downloads").files().older_than("30 days").delete(dry_run=Tru
63
63
  print(result.summary())
64
64
 
65
65
  # Actually delete (requires confirmation)
66
- pf.find("~/Downloads") \
67
- .files() \
68
- .older_than("30 days") \
69
- .delete(confirm=True) \
70
- .execute()
66
+ pf.find("~/Downloads").files().older_than("30 days").delete(confirm=True).execute()
71
67
 
72
68
  # Organize photos by date
73
- pf.find("~/Photos") \
74
- .files() \
75
- .with_extensions(".jpg", ".png", ".heic") \
76
- .for_each(lambda e: e.path.rename(f"~/Photos/Organized/{e.modified:%Y/%m}/{e.name}"))
69
+ pf.find("~/Photos").files().with_extensions(".jpg", ".png", ".heic").for_each(
70
+ lambda e: e.path.rename(f"~/Photos/Organized/{e.modified:%Y/%m}/{e.name}")
71
+ )
77
72
 
78
73
  # Sync with verification
79
74
  syncer = pf.sync("~/Documents", "/backup/Documents")
@@ -1,103 +1,103 @@
1
- [build-system]
2
- requires = ["hatchling"]
3
- build-backend = "hatchling.build"
4
-
5
- [project]
6
- name = "pathflow-toolkit"
7
- version = "0.1.1"
8
- description = "The elegant file automation library for Python"
9
- readme = "README.md"
10
- license = {text = "MIT"}
11
- authors = [{name = "Largo-m", email = "Largo-m@users.noreply.github.com"}]
12
- keywords = ["files", "automation", "pathlib", "shutil", "chainable", "filters", "sync"]
13
- classifiers = [
14
- "Development Status :: 4 - Beta",
15
- "Intended Audience :: Developers",
16
- "License :: OSI Approved :: MIT License",
17
- "Programming Language :: Python :: 3",
18
- "Programming Language :: Python :: 3.10",
19
- "Programming Language :: Python :: 3.11",
20
- "Programming Language :: Python :: 3.12",
21
- "Programming Language :: Python :: 3.13",
22
- "Topic :: Software Development :: Libraries :: Python Modules",
23
- "Topic :: System :: Filesystems",
24
- "Typing :: Typed",
25
- ]
26
- requires-python = ">=3.10"
27
- dependencies = []
28
-
29
- [project.optional-dependencies]
30
- trash = ["send2trash>=1.5"]
31
- dev = [
32
- "pytest>=8.0",
33
- "pytest-cov>=5.0",
34
- "pytest-xdist>=3.5",
35
- "mypy>=1.10",
36
- "ruff>=0.5",
37
- "black>=24.0",
38
- "build>=1.2",
39
- "twine>=5.0",
40
- ]
41
-
42
- [project.scripts]
43
- pathflow = "path_file.cli:main"
44
-
45
- [project.urls]
46
- Homepage = "https://github.com/Largo-m/path_file"
47
- Documentation = "https://github.com/Largo-m/path_file#readme"
48
- Repository = "https://github.com/Largo-m/path_file"
49
- Issues = "https://github.com/Largo-m/path_file/issues"
50
- Changelog = "https://github.com/Largo-m/path_file/blob/main/CHANGELOG.md"
51
-
52
- [tool.hatch.build.targets.wheel]
53
- packages = ["src/path_file"]
54
-
55
- [tool.hatch.build.targets.sdist]
56
- include = ["src/path_file", "tests", "README.md", "LICENSE", "CHANGELOG.md"]
57
-
58
- [tool.ruff]
59
- line-length = 100
60
- target-version = "py310"
61
- [tool.ruff.lint]
62
- select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "RUF", "S"]
63
- ignore = ["S101"]
64
-
65
- [[tool.mypy.overrides]]
66
- module = ["send2trash.*"]
67
- ignore_missing_imports = true
68
-
69
- [tool.mypy]
70
- python_version = "3.10"
71
- strict = true
72
- warn_return_any = true
73
- warn_unused_configs = true
74
- disallow_untyped_defs = true
75
- disallow_any_unimported = true
76
- no_implicit_optional = true
77
- warn_redundant_casts = true
78
- warn_unused_ignores = true
79
- show_error_codes = true
80
-
81
- [tool.pytest.ini_options]
82
- minversion = "8.0"
83
- addopts = "-ra -q --strict-markers --strict-config"
84
- testpaths = ["tests"]
85
- python_files = ["test_*.py"]
86
- python_functions = ["test_*"]
87
-
88
- [tool.coverage.run]
89
- source = ["src/path_file"]
90
- branch = true
91
- omit = ["*/tests/*", "*/__main__.py"]
92
-
93
- [tool.coverage.report]
94
- fail_under = 85
95
- show_missing = true
96
- skip_covered = false
97
- exclude_lines = [
98
- "pragma: no cover",
99
- "if TYPE_CHECKING:",
100
- "raise NotImplementedError",
101
- "@overload",
102
- ]
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "pathflow-toolkit"
7
+ version = "0.1.2"
8
+ description = "The elegant file automation library for Python"
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ authors = [{name = "Largo-m", email = "Largo-m@users.noreply.github.com"}]
12
+ keywords = ["files", "automation", "pathlib", "shutil", "chainable", "filters", "sync"]
13
+ classifiers = [
14
+ "Development Status :: 4 - Beta",
15
+ "Intended Audience :: Developers",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Programming Language :: Python :: 3",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Software Development :: Libraries :: Python Modules",
23
+ "Topic :: System :: Filesystems",
24
+ "Typing :: Typed",
25
+ ]
26
+ requires-python = ">=3.10"
27
+ dependencies = []
28
+
29
+ [project.optional-dependencies]
30
+ trash = ["send2trash>=1.5"]
31
+ dev = [
32
+ "pytest>=8.0",
33
+ "pytest-cov>=5.0",
34
+ "pytest-xdist>=3.5",
35
+ "mypy>=1.10",
36
+ "ruff>=0.5",
37
+ "black>=24.0",
38
+ "build>=1.2",
39
+ "twine>=5.0",
40
+ ]
41
+
42
+ [project.scripts]
43
+ pathflow = "path_file.cli:main"
44
+
45
+ [project.urls]
46
+ Homepage = "https://github.com/Largo-m/path_file"
47
+ Documentation = "https://github.com/Largo-m/path_file#readme"
48
+ Repository = "https://github.com/Largo-m/path_file"
49
+ Issues = "https://github.com/Largo-m/path_file/issues"
50
+ Changelog = "https://github.com/Largo-m/path_file/blob/main/CHANGELOG.md"
51
+
52
+ [tool.hatch.build.targets.wheel]
53
+ packages = ["src/path_file"]
54
+
55
+ [tool.hatch.build.targets.sdist]
56
+ include = ["src/path_file", "tests", "README.md", "LICENSE", "CHANGELOG.md"]
57
+
58
+ [tool.ruff]
59
+ line-length = 100
60
+ target-version = "py310"
61
+ [tool.ruff.lint]
62
+ select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM", "RUF", "S"]
63
+ ignore = ["S101"]
64
+
65
+ [[tool.mypy.overrides]]
66
+ module = ["send2trash.*"]
67
+ ignore_missing_imports = true
68
+
69
+ [tool.mypy]
70
+ python_version = "3.10"
71
+ strict = true
72
+ warn_return_any = true
73
+ warn_unused_configs = true
74
+ disallow_untyped_defs = true
75
+ disallow_any_unimported = true
76
+ no_implicit_optional = true
77
+ warn_redundant_casts = true
78
+ warn_unused_ignores = true
79
+ show_error_codes = true
80
+
81
+ [tool.pytest.ini_options]
82
+ minversion = "8.0"
83
+ addopts = "-ra -q --strict-markers --strict-config"
84
+ testpaths = ["tests"]
85
+ python_files = ["test_*.py"]
86
+ python_functions = ["test_*"]
87
+
88
+ [tool.coverage.run]
89
+ source = ["src/path_file"]
90
+ branch = true
91
+ omit = ["*/tests/*", "*/__main__.py"]
92
+
93
+ [tool.coverage.report]
94
+ fail_under = 85
95
+ show_missing = true
96
+ skip_covered = false
97
+ exclude_lines = [
98
+ "pragma: no cover",
99
+ "if TYPE_CHECKING:",
100
+ "raise NotImplementedError",
101
+ "@overload",
102
+ ]
103
103
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.2"
@@ -1 +0,0 @@
1
- __version__ = "0.1.0"