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
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:
py Change pypi & conda source minors.
python Change pypi & conda source minors.
Create basic project scaffold
$ cps
Usage: cps [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
base Create basic project scaffold.
notes Create notes project scaffold.
py Create Python project scaffold.
python Create Python 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:
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.
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.7.0.tar.gz
(68.6 kB
view details)
Built Distribution
toolkit_py-0.7.0-py3-none-any.whl
(115.3 kB
view details)
File details
Details for the file toolkit-py-0.7.0.tar.gz
.
File metadata
- Download URL: toolkit-py-0.7.0.tar.gz
- Upload date:
- Size: 68.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e5ad743cf76c33557f7995582fe80ed3f72cafb8353320b40448cd049d0b31 |
|
MD5 | a86071dcc3dca4fc852755937ae49352 |
|
BLAKE2b-256 | e6bd21f85227fda5e266acc618259e4871666333a83a827506c96669952f215a |
File details
Details for the file toolkit_py-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: toolkit_py-0.7.0-py3-none-any.whl
- Upload date:
- Size: 115.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab4716537576d005e3150ecf62bc68f4f1886e6708d3b768fcd4935ee39aa65 |
|
MD5 | 60a2ccb77702428c4ba1f5d4104ee198 |
|
BLAKE2b-256 | 5dc7410b510950f8e80403a3222bc4741e7a3fb059f6d1c38bd94ba455173b82 |