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

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
Filename, size xntool-0.8.2.tar.gz (13.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page