All Projects → abersheeran → usefuls

abersheeran / usefuls

Licence: MIT license
Some useful scripts

Programming Languages

python
139335 projects - #7 most used programming language

Usefuls

Some useful script by Python3.6+.

All script will be auto register by setup.py.

Install

It is strongly recommended to use pipx for installation to ensure a clean environment.

pipx install git+https://github.com/abersheeran/usefuls

In China, you can also install from Gitee

pipx install git+https://gitee.com/abersheeran/usefuls

Commands

Commands always like py-xxx. So, you can type py- and then use Tab to use autocomplete.

dns

Need dnspython, run pipx inject usefuls dnspython.

> py-dns --help
Usage: py-dns [OPTIONS] DOMAIN
              [[A|AAAA|CNAME|MX|NAPTR|NS|PTR|SOA|SRV|TXT|ALL]]

Options:
  -NS, --nameserver TEXT   DNS Server
  --help                   Show this message and exit.

whois

Need requests and mecache, run pipx inject usefuls requests mecache.

> py-whois --help
Usage: py-whois [OPTIONS] DOMAIN

Options:
  --help  Show this message and exit.

ping

> py-ping --help
Usage: py-ping [OPTIONS] TARGET

Options:
  --timeout FLOAT                [default: 1.3]
  --packet-size INTEGER          [default: 32]
  --interval FLOAT               [default: 0.5]
  --max-number-of-times INTEGER  [default: 4]
  --ipv4 / --ipv6                [default: ipv4]
  --help                         Show this message and exit.

tcping

If you want to use tcping with HTTP/HTTPS/Socks proxy, need pysocks, run pipx inject usefuls pysocks.

Usage: py-tcping [OPTIONS] TARGET...

Options:
  --timeout FLOAT                [default: 1.3]
  --interval FLOAT               [default: 0.5]
  --max-number-of-times INTEGER  [default: 4]
  --proxy TEXT
  --help                         Show this message and exit.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].