Models Classes

class pbwrap.models.Paste(paste_dict)[source]

Defines a Paste from Pastebin paste contains the following fields: key, date, title, size, expire_date, private, format_short, format_long, url, hits.

get_raw_text()[source]

Fetch the text of a paste via the public API. :returns: the paste’s text :rtype: string, None

scrape_raw_text()[source]

Fetch the ext of a paste via the Paid API. :returns: the paste’s text :rtype: string, None

class pbwrap.models.User(user_dict)[source]

Defines a user contains the following fields: name format_short expiration avatar_url private website email location account_type