Welcome to pbwrap’s documentation!

This wrapper is based on Pastebin API read their Documentation here for extra information and usage guide.

Quickstart

Use pip to install pbwrap

pip install pbwrap

Import pbwrap to you script and create a Pastebin object.

from pbwrap import Pastebin

pb = Pastebin(your_api_key)

You are now ready to request things from the Pastebin API

Note

It’s reccomended to authenticate as most endpoints require a user_key API is limited without authenticating.

pb.authenticate(username, password)

Note

More documentation will be added in later releases!Read the Pastebin Class methods to learn how to use all the API endpoints.