A Pastebin API Wrapper for Python
Pastebin API wrapper for Python (pbwrap)
**Python API wrapper for the Pastebin Public API.
Only Python 3 supported!
This wrapper is based on Pastebin API read their Documentation here.
for extra information and usage guide.
For a full list of the methods offered by the package Read.
Import and instantiate a Pastebin Object.
from pbwrap import Pastebin pastebin = Pastebin(api_dev_key)
Get User Id
Returns a string with the user_id created after authentication.
user_id = pastebin.authenticate(username, password)
Get Trending Pastes details
Returns a list containing Paste objects of the top 18 trending Pastes.
trending_pastes = pastebin.get_trending()
Some API endpoints return paste data in xml format the wrapper either converts them in a python dictionary format
or returns them as Paste objects which contain the following fields:
- date in UNIXTIME
pbwrap is released under MIT License
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.