Skip to main content

Useful debugging tools.

Project description

# python-debug

Useful debugging tools.

## Save text to temp file

>>> text = 'Lorem ipsum dolor sit amet,\n consectetur adipiscing elit...'
>>> import pydebug
>>> pydebug.save(text)
'/tmp/tmpSTTRow'

## Use less from python console

>>> text = 'Lorem ipsum dolor sit amet,\n consectetur adipiscing elit...'
>>> import pydebug
>>> pydebug.less(text)

## Use ack-grep from python console

>>> text = 'Lorem ipsum dolor sit amet,\n consectetur adipiscing elit...'
>>> import pydebug
>>> pydebug.grep(text, '-i lorem')
Lorem ipsum dolor sit amet, consectetur adipiscing elit...

## XML formatting

>>> xml = '<settings><a>hellow world</a></settings>'
>>> import pydebug
>>> print pydebug.xmlformat(xml)
<settings>
  <a>hellow world</a>
</settings>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-debug, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size python-debug-0.1.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page