python-oxlib/README

23 lines
384 B
Text
Raw Permalink Normal View History

2008-07-03 09:23:42 +00:00
python-oxlib some tools to build tools
2008-04-27 16:54:37 +00:00
Depends:
python2.5
python-chardet (http://chardet.feedparser.org/)
Usage:
2008-07-03 09:23:42 +00:00
import oxlib
2008-04-27 16:54:37 +00:00
2008-07-03 09:23:42 +00:00
data = oxlib.cache.readUrl('http:/...')
text = oxlib.stripTags(data)
oxlib.normalizeNewlines(text)
oxlib.formatBytes(len(data))
2008-04-27 16:54:37 +00:00
2008-07-03 09:23:42 +00:00
oxlib.formatBytes(1234567890)
2008-04-27 16:54:37 +00:00
'1.15 GB'
2009-08-21 15:18:03 +00:00
Install:
python setup.py install
Tests:
2008-07-03 09:23:42 +00:00
nosetests --with-doctest oxlib