pastebin- python wrapper for the pastebin api |
git clone git://git.acid.vegas/pastebin.git |
Log | Files | Refs | Archive | README | LICENSE |
pastebin
python wrapper for the pastebin api
API Documentation:
Example:
#!/usr/bin/env python
import pastebin
api_key = 'CHANGEME'
api = pastebin.PasteBin(api_key)
data = open(__file__).read()
result = api.paste(data, guest=True, name='Example Script', format='Python', private='1', expire='10M')
print('PasteBin URL: ' + result)
Note: A posix shell script example can be found here