Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A complete API wrapper for Python

Project description


A complete 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>')

        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
except PastebinFileException as e:
        print e

Code Documentation

You can read the documentation at:

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 pastebin_python, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size pastebin_python-1.2.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page