python-oxlib/README

22 lines
371 B
Plaintext
Raw 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/)
BitTornado(optional)
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'
Tests:
2008-07-03 09:23:42 +00:00
nosetests --with-doctest oxlib