SkillAgentSearch skills...

PastebinPython

A complete pastebin.com API wrapper for Python

Install / Use

/learn @six519/PastebinPython
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PastebinPython

A complete http://pastebin.com API wrapper for Python

Sample Usage

::

"""
Creating paste from file...

"""
from pastebin_python import PastebinPython
from pastebin_python.pastebin_exceptions import PastebinBadRequestException, PastebinNoPastesException, PastebinFileException
from pastebin_python.pastebin_constants import PASTE_PUBLIC, EXPIRE_10_MIN
from pastebin_python.pastebin_formats import FORMAT_NONE, FORMAT_PYTHON, FORMAT_HTML

pbin = PastebinPython(api_dev_key='<unique api key>')

try:
	pbin.createAPIUserKey('<username>','<password>')
	print pbin.createPasteFromFile('/home/six519/Downloads/email.html', 'Email format testing 2...', FORMAT_HTML, PASTE_PUBLIC, EXPIRE_10_MIN)
except PastebinBadRequestException as e:
	print e.message
except PastebinFileException as e:
	print e.message

Code Documentation

You can read the documentation at: http://pythonhosted.org/pastebin_python/

View on GitHub
GitHub Stars89
CategoryDevelopment
Updated2mo ago
Forks47

Languages

Python

Security Score

80/100

Audited on Jan 26, 2026

No findings