add some functions
This commit is contained in:
commit
ef59090610
11 changed files with 649 additions and 0 deletions
18
README
Normal file
18
README
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
python-oxutils some tools to build tools
|
||||
|
||||
Depends:
|
||||
python2.5
|
||||
python-chardet (http://chardet.feedparser.org/)
|
||||
BitTornado(optional)
|
||||
|
||||
Usage:
|
||||
import oxutils
|
||||
|
||||
data = oxutils.cache.readUrl('http:/...')
|
||||
text = oxutils.stripTags(data)
|
||||
oxutils.normalizeNewlines(text)
|
||||
oxutils.formatBytes(len(data))
|
||||
|
||||
oxutils.formatBytes(1234567890)
|
||||
'1.15 GB'
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue