A tool to solve daily work.
Project description
workutils
A tool to solve daily work
Installation
You can install, upgrade, uninstall workutils with these commands(without $):
$ pip install workutils
$ pip install --upgrade workutils
$ pip unstall workutils
Help
$ workutils -h
usage: workutils [-h] [-s SUFFIX] [-a] [-o OUTPUT] directory
A toolkit for daily work
positional arguments:
directory Folder path to analyze
options:
-h, --help show this help message and exit
-s SUFFIX, --suffix SUFFIX
File suffix to analyze
-a, --all-files Traverse all files, including hidden files
-o OUTPUT, --output OUTPUT
File path to save the result
Examples
- Select the folder path to analyze
E:\workutils\workutils> workutils ../
E:\workutils\a.txt
E:\workutils\LICENSE
E:\workutils\README.md
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
========================================
Suffix Counts
----------------------------------------
.txt 1
1
.md 1
.py 2
----------------------------------------
Total 5
========================================
E:\workutils\workutils>
- Select the folder path and specify the files with a certain suffix to analyze.
E:\workutils\workutils> workutils ../ -s py
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
========================================
Suffix Counts
----------------------------------------
.py 2
----------------------------------------
Total 2
========================================
E:\workutils\workutils>
- Traverse all files, including hidden files
E:\workutils\workutils> workutils ../ -a
E:\workutils\a.txt
E:\workutils\LICENSE
E:\workutils\README.md
E:\workutils\.git\config
...
E:\workutils\.git\refs\remotes\origin\HEAD
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
========================================
Suffix Counts
----------------------------------------
.txt 1
15
.md 1
.sample 13
.idx 1
.pack 1
.py 2
----------------------------------------
Total 34
========================================
PS E:\workutils\workutils>
- Input result file path to save the result
E:\workutils\workutils> workutils ../ -s py -o result.txt
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
========================================
Suffix Counts
----------------------------------------
.py 2
----------------------------------------
Total 2
========================================
The result has been saved to the E:\workutils\workutils\result.txt file.
E:\workutils\workutils>
result.txt
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
workutils-0.0.2.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workutils-0.0.2.tar.gz.
File metadata
- Download URL: workutils-0.0.2.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9d31a422232795b1ed823c09627efa9333e4911615ad5898449d92f9b7a5bc4
|
|
| MD5 |
9105a54114449cef7604038c955de0b6
|
|
| BLAKE2b-256 |
ecfeef612b27397bea4fc8b5e4d06f12df0fe0cc8d7616925edf157fe2380b3a
|
File details
Details for the file workutils-0.0.2-py3-none-any.whl.
File metadata
- Download URL: workutils-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e649c8ba43e4cad882103231ff897b2a3fe72fade29f6caf8df4596acfeea96
|
|
| MD5 |
05f5138e4fc126c3e43b7b5cf007601e
|
|
| BLAKE2b-256 |
93a17376249c776492962f628c17de21ca81ed625aa5470dbf42458629efe68c
|