python-ox/README
2008-07-03 11:23:42 +02:00

21 lines
371 B
Text

python-oxlib some tools to build tools
Depends:
python2.5
python-chardet (http://chardet.feedparser.org/)
BitTornado(optional)
Usage:
import oxlib
data = oxlib.cache.readUrl('http:/...')
text = oxlib.stripTags(data)
oxlib.normalizeNewlines(text)
oxlib.formatBytes(len(data))
oxlib.formatBytes(1234567890)
'1.15 GB'
Tests:
nosetests --with-doctest oxlib