Skip to main content

funny tools

Project description

xntool has many convenient tools, use xntool --help to show more examples.

install

usage:

pip install xntool

Wiki

show honey words

usage:

xntool love

tail like

usage:

xntool tail /var/log/web.log 'python'

convert Windows’ CRLF into Unix’s LF

usage:

xntool dos2unix /var/log/web.log

replace text in file

usage:

xntool replace data.txt python perl

evaluate file’s md5

usage:

xntool md5 data.txt

upload picture to qiniu

first login <http://www.qiniu.com/>, get your configuration and modify /usr/etc/xntool/xntool.conf :

#  Access Key and Secret Key
ACCESS_KEY = 'xxxxxxxxxxxxxxxx'
SECRET_KEY = 'yyyyyyyyyyyyyyyy'
# your URL
URL_PRE = 'http://yidaospace.qiniudn.com/'
# your bucket name
BUCKET_NAME = 'yidaospace'

usage:

xntool qiniu /tmp/pics

you can fetch the urls of uploaded pictures in url.txt

More

for more, please use xntool --help

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for xntool, version 0.8.2
Filename, size File type Python version Upload date Hashes
Filename, size xntool-0.8.2-py2-none-any.whl (17.3 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size xntool-0.8.2.tar.gz (13.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page