lodgeitlibA client library to the lodgeit | |
Download |
lodgeitlib Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Sebastian Wiesner
- Publisher web site:
- http://developer.berlios.de/projects/keyjnotegui/
lodgeitlib Tags
lodgeitlib Description
A client library to the lodgeit lodgeitlib is a Python tool that provides a command-line client and a convenient client library for the pastebin at http://paste.pocoo.org.The command-line script lodgeit supports creation and retrival of pastes, providing convenience features such as colored output of pastes (using the pygments library).The library lodgeitlib provides an easy-to-use, object-oriented wrapper:from lodgeitlib import lodgeit# some python codecode = 'print "Hello World"'# create a pastepaste_id = lodgeit.new_paste(code, 'python')# fetch some pastesmy_paste = lodgeit.get_paste_by_id(paste_id)last = lodgeit.get_last_paste()# print some information about a pasteprint 'date:', last.publication_date.isoformat()print 'url: ', last.urlprint 'language: ', last.language_descSee project site for more information. Requirements: · Python
lodgeitlib Related Software