nano-dev-utils 1.4.3__tar.gz → 1.4.4__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.
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/workspace.xml +15 -15
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/PKG-INFO +8 -8
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/README.md +7 -7
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/benchmark/benchtest.py +3 -18
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/pyproject.toml +1 -1
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/uv.lock +1 -1
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.gitignore +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/.gitignore +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/encodings.xml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/misc.xml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/modules.xml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/nano_dev_utils.iml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/vcs.xml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.pre-commit-config.yaml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/LICENSE +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/benchmark/__init__.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/benchmark/win_tree_wrapper.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/ruff.toml +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/__init__.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/common.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/dynamic_importer.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/file_tree_display.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/release_ports.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/src/nano_dev_utils/timers.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/__init__.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_common.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_dynamic_importer.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_file_tree_display.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_release_ports.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_timers/__init__.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_timers/conftest.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_timers/test_duration_formatter.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_timers/test_timer.py +0 -0
- {nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/tests/test_timers/test_timers_async.py +0 -0
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="1859e23b-7665-4b92-98cc-65e07a208923" name="Changes" comment="
|
|
8
|
-
<change afterPath="$PROJECT_DIR$/benchmark/__init__.py" afterDir="false" />
|
|
7
|
+
<list default="true" id="1859e23b-7665-4b92-98cc-65e07a208923" name="Changes" comment="minor update v1.4.3">
|
|
9
8
|
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
|
9
|
+
<change beforePath="$PROJECT_DIR$/benchmark/benchtest.py" beforeDir="false" afterPath="$PROJECT_DIR$/benchmark/benchtest.py" afterDir="false" />
|
|
10
10
|
<change beforePath="$PROJECT_DIR$/pyproject.toml" beforeDir="false" afterPath="$PROJECT_DIR$/pyproject.toml" afterDir="false" />
|
|
11
11
|
<change beforePath="$PROJECT_DIR$/uv.lock" beforeDir="false" afterPath="$PROJECT_DIR$/uv.lock" afterDir="false" />
|
|
12
12
|
</list>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
<recent name="C:\GitHubWS\nano_dev_utils\tests" />
|
|
81
81
|
</key>
|
|
82
82
|
</component>
|
|
83
|
-
<component name="RunManager" selected="Python
|
|
83
|
+
<component name="RunManager" selected="Python.benchtest">
|
|
84
84
|
<configuration name="benchtest" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
85
85
|
<module name="nano_dev_utils" />
|
|
86
86
|
<option name="ENV_FILES" value="" />
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
</list>
|
|
173
173
|
<recent_temporary>
|
|
174
174
|
<list>
|
|
175
|
+
<item itemvalue="Python.benchtest" />
|
|
175
176
|
<item itemvalue="Python tests.Python tests in tests" />
|
|
176
177
|
<item itemvalue="Python tests.Python tests in test_file_tree_display.py" />
|
|
177
|
-
<item itemvalue="Python.benchtest" />
|
|
178
178
|
<item itemvalue="Python tests.Python tests in test_timers" />
|
|
179
179
|
<item itemvalue="Python tests.Python tests in test_dynamic_importer.py" />
|
|
180
180
|
</list>
|
|
@@ -196,14 +196,6 @@
|
|
|
196
196
|
<option name="presentableId" value="Default" />
|
|
197
197
|
<updated>1746126505743</updated>
|
|
198
198
|
</task>
|
|
199
|
-
<task id="LOCAL-00070" summary="message formatter: using local verbose and changing to static method">
|
|
200
|
-
<option name="closed" value="true" />
|
|
201
|
-
<created>1761748675961</created>
|
|
202
|
-
<option name="number" value="00070" />
|
|
203
|
-
<option name="presentableId" value="LOCAL-00070" />
|
|
204
|
-
<option name="project" value="LOCAL" />
|
|
205
|
-
<updated>1761748675961</updated>
|
|
206
|
-
</task>
|
|
207
199
|
<task id="LOCAL-00071" summary="ongoing updates">
|
|
208
200
|
<option name="closed" value="true" />
|
|
209
201
|
<created>1761749373855</created>
|
|
@@ -588,7 +580,15 @@
|
|
|
588
580
|
<option name="project" value="LOCAL" />
|
|
589
581
|
<updated>1762180401037</updated>
|
|
590
582
|
</task>
|
|
591
|
-
<
|
|
583
|
+
<task id="LOCAL-00119" summary="minor update v1.4.3">
|
|
584
|
+
<option name="closed" value="true" />
|
|
585
|
+
<created>1762181821368</created>
|
|
586
|
+
<option name="number" value="00119" />
|
|
587
|
+
<option name="presentableId" value="LOCAL-00119" />
|
|
588
|
+
<option name="project" value="LOCAL" />
|
|
589
|
+
<updated>1762181821368</updated>
|
|
590
|
+
</task>
|
|
591
|
+
<option name="localTasksCounter" value="120" />
|
|
592
592
|
<servers />
|
|
593
593
|
</component>
|
|
594
594
|
<component name="Vcs.Log.Tabs.Properties">
|
|
@@ -640,7 +640,6 @@
|
|
|
640
640
|
</option>
|
|
641
641
|
</component>
|
|
642
642
|
<component name="VcsManagerConfiguration">
|
|
643
|
-
<MESSAGE value="README updates IAW recends mods" />
|
|
644
643
|
<MESSAGE value="bumped to v1.4.0" />
|
|
645
644
|
<MESSAGE value="+build" />
|
|
646
645
|
<MESSAGE value="Readme updates" />
|
|
@@ -665,6 +664,7 @@
|
|
|
665
664
|
<MESSAGE value="tiny reformatting and renaming" />
|
|
666
665
|
<MESSAGE value="+improved error handling for win_tree_wrapper +benchtest code, comparing my FTD module to MS-Windows Tree (focusing on running time) +updating bench results (FTD is very stable twice as fast)" />
|
|
667
666
|
<MESSAGE value="+improved error handling for win_tree_wrapper +benchtest code, comparing my FTD module to MS-Windows Tree (focusing on running time)" />
|
|
668
|
-
<
|
|
667
|
+
<MESSAGE value="minor update v1.4.3" />
|
|
668
|
+
<option name="LAST_COMMIT_MESSAGE" value="minor update v1.4.3" />
|
|
669
669
|
</component>
|
|
670
670
|
</project>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nano_dev_utils
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: A collection of small Python utilities for developers.
|
|
5
5
|
Project-URL: Homepage, https://github.com/yaronday/nano_utils
|
|
6
6
|
Project-URL: Issues, https://github.com/yaronday/nano_utils/issues
|
|
@@ -199,20 +199,20 @@ Output can be displayed in the console or saved to a file.
|
|
|
199
199
|
A measurement on an unfiltered, high-depth dataset of 10553 files, 1235 folders (ca. 16 GB) using Python 3.10 on SSD.
|
|
200
200
|
Avg. time was measured over 20 runs per configuration, using `timeit` decorator I've implemented in this package.
|
|
201
201
|
|
|
202
|
-
Comparing FileTreeDisplay (FTD)
|
|
203
|
-
[
|
|
202
|
+
Comparing FileTreeDisplay (FTD) with
|
|
203
|
+
[win_tree_wrapper](https://github.com/yaronday/nano_dev_utils/blob/master/benchmark/win_tree_wrapper.py)
|
|
204
204
|
(Windows [Tree](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tree)
|
|
205
205
|
wrapper which I've implemented for this purpose):
|
|
206
206
|
|
|
207
|
-
ftd_run took
|
|
208
|
-
win_tree_cmd took
|
|
207
|
+
03-11-2025 17:10:06 - INFO: ftd_run took 182.155 ms (avg. over 20 runs)
|
|
208
|
+
03-11-2025 17:10:14 - INFO: win_tree_cmd took 406.849 ms (avg. over 20 runs)
|
|
209
209
|
|
|
210
210
|
| Tool | Time (s) |
|
|
211
211
|
|--------|----------|
|
|
212
|
-
| FTD | 0.
|
|
213
|
-
| Tree | 0.
|
|
214
|
-
|
|
212
|
+
| FTD | 0.182 |
|
|
213
|
+
| Tree | 0.407 |
|
|
215
214
|
|
|
215
|
+
[Benchtest code](https://github.com/yaronday/nano_dev_utils/blob/master/benchmark/benchtest.py)
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
#### Class Overview
|
|
@@ -183,20 +183,20 @@ Output can be displayed in the console or saved to a file.
|
|
|
183
183
|
A measurement on an unfiltered, high-depth dataset of 10553 files, 1235 folders (ca. 16 GB) using Python 3.10 on SSD.
|
|
184
184
|
Avg. time was measured over 20 runs per configuration, using `timeit` decorator I've implemented in this package.
|
|
185
185
|
|
|
186
|
-
Comparing FileTreeDisplay (FTD)
|
|
187
|
-
[
|
|
186
|
+
Comparing FileTreeDisplay (FTD) with
|
|
187
|
+
[win_tree_wrapper](https://github.com/yaronday/nano_dev_utils/blob/master/benchmark/win_tree_wrapper.py)
|
|
188
188
|
(Windows [Tree](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tree)
|
|
189
189
|
wrapper which I've implemented for this purpose):
|
|
190
190
|
|
|
191
|
-
ftd_run took
|
|
192
|
-
win_tree_cmd took
|
|
191
|
+
03-11-2025 17:10:06 - INFO: ftd_run took 182.155 ms (avg. over 20 runs)
|
|
192
|
+
03-11-2025 17:10:14 - INFO: win_tree_cmd took 406.849 ms (avg. over 20 runs)
|
|
193
193
|
|
|
194
194
|
| Tool | Time (s) |
|
|
195
195
|
|--------|----------|
|
|
196
|
-
| FTD | 0.
|
|
197
|
-
| Tree | 0.
|
|
198
|
-
|
|
196
|
+
| FTD | 0.182 |
|
|
197
|
+
| Tree | 0.407 |
|
|
199
198
|
|
|
199
|
+
[Benchtest code](https://github.com/yaronday/nano_dev_utils/blob/master/benchmark/benchtest.py)
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
#### Class Overview
|
|
@@ -14,27 +14,12 @@ logging.basicConfig(
|
|
|
14
14
|
datefmt='%d-%m-%Y %H:%M:%S',
|
|
15
15
|
)
|
|
16
16
|
|
|
17
|
+
ITER = 20
|
|
17
18
|
|
|
18
19
|
root = r'c:/HugeHighDepthFolder' # a directory nested many levels deep within a file system hierarchy.
|
|
19
20
|
target_path = r'YourTargetPath'
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
'.git',
|
|
23
|
-
'.idea',
|
|
24
|
-
'.pytest_cache',
|
|
25
|
-
'.ruff_cache',
|
|
26
|
-
'.venv',
|
|
27
|
-
'__pycache__',
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
IGNORE_FILES = ['.gitignore']
|
|
31
|
-
|
|
32
|
-
INCLUDE_FOLDERS: list[str] = ['Chemistry', 'AdditionalStudyMaterial']
|
|
33
|
-
INCLUDE_FILES: list[str] = ['*.docx']
|
|
34
|
-
|
|
35
|
-
ITER = 20
|
|
36
|
-
|
|
37
|
-
timer.update({'precision': 3, 'printout': True})
|
|
22
|
+
timer.update({'precision': 3})
|
|
38
23
|
|
|
39
24
|
|
|
40
25
|
@timer.timeit(iterations=ITER)
|
|
@@ -60,7 +45,7 @@ def win_tree_cmd():
|
|
|
60
45
|
|
|
61
46
|
|
|
62
47
|
def run():
|
|
63
|
-
|
|
48
|
+
ftd_run()
|
|
64
49
|
win_tree_cmd()
|
|
65
50
|
|
|
66
51
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nano_dev_utils-1.4.3 → nano_dev_utils-1.4.4}/.idea/inspectionProfiles/profiles_settings.xml
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|