Skip to main content

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

$ python .\workutils.py -h
usage: workutils.py [-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

  1. Select the folder path to analyze
E:\workutils\workutils> python .\workutils.py ../
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>
  1. Select the folder path and specify the files with a certain suffix to analyze.
E:\workutils\workutils> python .\workutils.py ../ -s py
E:\workutils\workutils\workutils.py
E:\workutils\workutils\__init__.py
========================================
Suffix    Counts
----------------------------------------
.py       2
----------------------------------------
Total     2
========================================
E:\workutils\workutils> 
  1. Traverse all files, including hidden files
E:\workutils\workutils> python .\workutils.py ../ -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> 
  1. Input result file path to save the result
E:\workutils\workutils> python .\workutils.py ../ -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


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.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workutils-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file workutils-0.0.1.tar.gz.

File metadata

  • Download URL: workutils-0.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for workutils-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a3d303a46672b10a1be18738332bb44369b22618c420e9e3eb9c52f79e6403f
MD5 c850c6e62f7bbea8f43730f46dd4c9d3
BLAKE2b-256 a18b8b794beb7cab9c9a3c0605309b0e02be77df6be1c59fc5bbdd5ec4f769f6

See more details on using hashes here.

File details

Details for the file workutils-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: workutils-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for workutils-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00d6dd170c67a4e736612d2f863f74e7e12273abafe3b8873f7b45c060e87ed5
MD5 e66fadab2707224f46a7a842661658df
BLAKE2b-256 02a837b3b02502820c3c092de89a1d04b5de809ef1413fba0c63885cf666572e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page