Personal toolkit implemented by Python.
Project description
Toolkit-Py
Table of Contents
- Toolkit-Py
- Table of Contents
- Installation
- Usage
- Automatically unzip files recursively
- Recursively change the encoding of text files in the current folder
- Generates HTTP User-Agent header
- Change to other faster open source mirror sites
- Create basic project scaffold
- Upload pictures to public image hosting server
- Create or display the configuration of commonly used software
Installation
pip install -U toolkit-py
pip install -U toolkit-py -i https://pypi.douban.com/simple
Usage
Remove the ui ads of YoudaoNote
$ ucmd youdao
Automatically unzip files recursively
Recursively change the encoding of text files in the current folder
$ cen
c05_mbr.asm: GB2312 -> utf-8
c17_core.asm: GB2312 -> utf-8
c17_mbr.asm: GB2312 -> utf-8
nasmide.ini: ascii -> utf-8
Generates HTTP User-Agent header
$ gua
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/15.14986
$ gua -n chrome
Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3489.10 Safari/537.36
$ gua -o android
Mozilla/5.0 (Linux; Android 8.1; Huawei P20 Lite Build/OPR3.170623.008) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3297.48 Mobile Safari/537.36
$ gua -n safari -o ios
Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_3 like Mac OS X) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/9.0 Mobile/13G34 Safari/602.2
Change to other faster open source mirror sites
$ cfm
Usage: cfm [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
python (py) Change pypi & conda source mirrors.
raspberrypi (pi) Change Raspberry Pi OS source mirrors.
ubuntu (ubuntu) Change ubuntu/ubuntu-port source mirrors.
Create basic project scaffold
$ cps
Usage: cps [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
base Create basic project scaffold.
c Create C/C++ project scaffold.
clean (clean,clear,release,rm) Remove all example files for release.
golang (go) Create Golang project scaffold.
notes Create notes project scaffold.
python (py) Create Python project scaffold.
qt5 Create Qt5 project scaffold.
Upload pictures to public image hosting server
$ upsfortypora test.png
Upload Success:
http://dd-static.jd.com/ddimg/jfs/t1/132543/17/21538/145549/61fa87f9E883b9b32/f23efa3a806cab76.jpg
Create or display the configuration of commonly used software
$ ccf
Usage: ccf [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
alias Generate aliases for powershell or bash configuration
files.
clash Display configuration file of clash.
hosts Display configuration file of hosts.
notes (nn) Create a new note for hugo.
powershell (ps) Create or display configuration files about PowerShell.
python (py) Create or display configuration files about Python.
$ ccf py -h
Usage: ccf py [OPTIONS]
Create or display configuration files about Python.
Options:
-m, --method INTEGER 1 -> .pypirc
-r, --read-only BOOLEAN Read only or create configuration files.
-h, --help Show this message and exit.
Thanks
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
toolkit-py-0.18.1.tar.gz
(378.9 kB
view details)
Built Distribution
toolkit_py-0.18.1-py3-none-any.whl
(458.7 kB
view details)
File details
Details for the file toolkit-py-0.18.1.tar.gz
.
File metadata
- Download URL: toolkit-py-0.18.1.tar.gz
- Upload date:
- Size: 378.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a273ab0e573c4ec07b2a0e2dcdd0e8a685766911699b5a9933aa21a018ab4f50 |
|
MD5 | 77ae181df3730c6c42dfbb84dfa9025b |
|
BLAKE2b-256 | c032668d84a7c913621b019497e0bdbcbbf7e3b3eb0a6d592028742f60c48269 |
File details
Details for the file toolkit_py-0.18.1-py3-none-any.whl
.
File metadata
- Download URL: toolkit_py-0.18.1-py3-none-any.whl
- Upload date:
- Size: 458.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e555570c309808bcab041a9dc560ba0cc923c7674d43bdc9a421967760b689 |
|
MD5 | fe80c9c6286113efb93395b97365e099 |
|
BLAKE2b-256 | 08f5bde64b9d0e0b02838d0935ecc7e28d23220af4e16075a0f764233682b2a7 |