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 …
Resources
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
xntool-0.8.2.tar.gz
(13.5 kB
view hashes)
Built Distribution
xntool-0.8.2-py2-none-any.whl
(17.3 kB
view hashes)