0% found this document useful (0 votes)
168 views13 pages

Code Documentation - Pastebin - Python 1.0 Documentation

This document provides documentation for the pastebin_python module, which is a Python wrapper for the pastebin.com API. It describes the PastebinPython class, which is used to make API calls. Methods are described like createPaste() to create a new paste, listUserPastes() to get a list of the user's pastes, and deletePaste() to delete a paste. The documentation provides details on parameters, return values, and exceptions for each method.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
168 views13 pages

Code Documentation - Pastebin - Python 1.0 Documentation

This document provides documentation for the pastebin_python module, which is a Python wrapper for the pastebin.com API. It describes the PastebinPython class, which is used to make API calls. Methods are described like createPaste() to create a new paste, listUserPastes() to get a list of the user's pastes, and deletePaste() to delete a paste. The documentation provides details on parameters, return values, and exceptions for each method.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

8/16/2019 Code Documentation — pastebin_python 1.

0 documentation

Code Documentation
A complete pastebin.com API wrapper for Python

pastebin
class pastebin_python.pastebin. PastebinPython (**kwargs)
This is the main class to be instantiated to use pastebin.com functionality

__init__ (**kwargs)
You need to put your API Key when instantiating this class

Parameters: kwargs (dict) – keyword arguments to set settings that can be use to call
pastebin.com API function
Returns: class – pastebin_python.pastebin.PastebinPython
Example::

>>> pasteBin = PastebinPython(api_dev_key='123456789')


>>> print pasteBin.api_dev_key
123456789

api_user_key
This is where the api_user_key is stored after calling
pastebin_python.pastebin.PastebinPython.createAPIUserKey()

Returns: str – the api_user_key

api_user_paste_list
This where the list of pastes of the current user is stored after calling
pastebin_python.pastebin.PastebinPython.listUserPastes()

Returns: list – current user pastes list

createPaste (api_paste_code, api_paste_name='', api_paste_format='', api_paste_private='',


api_paste_expire_date='')
This will create a new paste

Parameters: api_paste_code (str) – this is the text that will be written inside your
paste
api_paste_name (str) – this will be the name / title of your paste
api_paste_format (str) – this will be the syntax highlighting value,
values to be assign can be found at pastebin_python.pastebin_formats
api_paste_private (int) – this makes a paste public or private, values
to be assign can be found at pastebin_python.pastebin_constants
api_paste_expire_date (str) – this sets the expiration date of your
paste, values to be assign can be found at

https://pythonhosted.org/pastebin_python/code.html 1/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_constants
Returns: str – pastebin.com paste URL
Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException

Note: api_paste_code is the only required parameter

createPasteFromFile (filename, api_paste_name='', api_paste_format='',


api_paste_private='', api_paste_expire_date='')
Almost the same as pastebin_python.pastebin.PastebinPython.createPaste() ,the only
difference is that the value of api_paste_code came from the file you opened

Parameters: filename (str) – the full path of the file


api_paste_name (str) – this will be the name / title of your paste
api_paste_format (str) – this will be the syntax highlighting value,
values to be assign can be found at pastebin_python.pastebin_formats
api_paste_private (int) – this makes a paste public or private, values
to be assign can be found at pastebin_python.pastebin_constants
api_paste_expire_date (str) – this sets the expiration date of your
paste, values to be assign can be found at
pastebin_python.pastebin_constants
Returns: str – pastebin.com paste URL
Raises : pastebin_python.pastebin_exceptions.PastebinFileException

Note: filename is the only required field

createAPIUserKey (api_user_name, api_user_password)


This is used to request an api_user_key which can be used to create a paste as a logged
in user

Parameters: api_user_name (str) – this is the pastebin.com username


api_user_password (str) – this is the pastebin.com password
Returns: str – unique user session key
Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException

Note: If successfull the unique user session key will be assigned to the private variable
__api_user_key and can be get with the property api_user_key

listUserPastes (api_results_limit=50)
This will list pastes created by a user

Parameters: api_results_limit (int) – this is not required but the min value should be 1
and the max value should be 1000
Returns: list – the list of of pastes in a dictionary type
Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException ,
pastebin_python.pastebin_exceptions.PastebinNoPastesException

https://pythonhosted.org/pastebin_python/code.html 2/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

Note: Need to call the pastebin_python.pastebin.PastebinPython.createAPIUserKey()


first before calling this function Pastes list will be stored to the private variable
__api_user_paste_list and can be retrieve by the property api_user_key

listTrendingPastes ()
This will list the 18 currently trending pastes

Returns: list – the 18 currently trending pastes in a dictionary format


Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException

deletePaste (api_paste_key)
This will delete pastes created by certain users

Parameters: api_paste_key (str) – this is the paste key that which you can get in the
pastebin_python.pastebin.PastebinPython.listUserPastes() function
Returns: bool – True if the deletion is successfull else False

Note: Before calling this function, you need to call the


pastebin_python.pastebin.PastebinPython.createAPIUserKey() first then call the
pastebin_python.pastebin.PastebinPython.listUserPastes()

getUserInfos ()
You can obtain a users personal info and certain settings by calling this function

Returns: list – user info in a dictionary format


Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException

Note: You need to call the


pastebin_python.pastebin.PastebinPython.createAPIUserKey() before calling this function

getPasteRawOutput (api_paste_key)
This will get the raw output of the paste

Parameters: api_paste_key (str) – this is the paste key that which you can get in the
pastebin_python.pastebin.PastebinPython.listUserPastes() function
Returns: str – raw output of the paste
Raises : pastebin_python.pastebin_exceptions.PastebinHTTPErrorException

_PastebinPython__parsePaste (xmlString)
This will parse the xml string returned by the the function
pastebin_python.pastebin.PastebinPython.listUserPastes() or
pastebin_python.pastebin.PastebinPython.listTrendingPastes()

Parameters: xmlString (str) – this is the returned xml string from


pastebin_python.pastebin.PastebinPython.listUserPastes() or
pastebin_python.pastebin.PastebinPython.listTrendingPastes()

https://pythonhosted.org/pastebin_python/code.html 3/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

Returns: list – pastes info in a dictionary format

_PastebinPython__parseUser (xmlString)
This will parse the xml string returned by the function
pastebin_python.pastebin.PastebinPython.getUserInfos()

Parameters: xmlString (str) – this is the returned xml string from


pastebin_python.pastebin.PastebinPython.getUserInfos()
Returns: list – user info in a dictionary format

_PastebinPython__parseXML (xml, isPaste=True)


This will handle all of the xml string parsing

Parameters: xml (str) – xml string


isPaste (bool) – if True then it will parse the pastes info else it will
parse the user info
Returns: list – info in a dictionary format

_PastebinPython__processPost (url, data)


A private function that is responsible of calling/executing the pastebin.com functionality

Parameters: url (str) – the url of the pastebin.com API


data (dict) – the data to be POSTed to the pastebin.com API
Returns: str – the successfull output of the pastebin.com API if no exception raised
Raises : pastebin_python.pastebin_exceptions.PastebinBadRequestException ,
pastebin_python.pastebin_exceptions.PastebinNoPastesException

__weakref__
list of weak references to the object (if defined)

pastebin_exceptions
exception pastebin_python.pastebin_exceptions. PastebinBadRequestException

exception pastebin_python.pastebin_exceptions. PastebinNoPastesException

exception pastebin_python.pastebin_exceptions. PastebinFileException

exception pastebin_python.pastebin_exceptions. PastebinHTTPErrorException

pastebin_constants
pastebin_python.pastebin_constants. PASTEBIN_URL = 'http://pastebin.com/'
The pastebin.com base url

pastebin_python.pastebin_constants. PASTEBIN_API_URL = 'http://pastebin.com/api/'


The pastebin.com API base URL

https://pythonhosted.org/pastebin_python/code.html 4/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_constants. PASTEBIN_API_POST_URL =
'http://pastebin.com/api/api_post.php'
The pastebin.com API POST URL

pastebin_python.pastebin_constants. PASTEBIN_API_LOGIN_URL =
'http://pastebin.com/api/api_login.php'
The pastebin.com API login URL

pastebin_python.pastebin_constants. PASTE_PUBLIC =0

pastebin_python.pastebin_constants. PASTE_UNLISTED =1

pastebin_python.pastebin_constants. PASTE_PRIVATE =2

pastebin_python.pastebin_constants. EXPIRE_NEVER = 'N'

pastebin_python.pastebin_constants. EXPIRE_10_MIN = '10M'

pastebin_python.pastebin_constants. EXPIRE_1_HOUR = '1H'

pastebin_python.pastebin_constants. EXPIRE_1_DAY = '1D'

pastebin_python.pastebin_constants. EXPIRE_1_MONTH = '1M'

pastebin_formats
pastebin_python.pastebin_formats. FORMAT_4CS = '4cs'

pastebin_python.pastebin_formats. FORMAT_6502_ACME_CROSS_ASSEMBLER = '6502acme'

pastebin_python.pastebin_formats. FORMAT_6502_KICK_ASSEMBLER = '6502kickass'

pastebin_python.pastebin_formats. FORMAT_6502_TASM_64TASS = '6502tasm'

pastebin_python.pastebin_formats. FORMAT_ABAP = 'abap'

pastebin_python.pastebin_formats. FORMAT_ACTIONSCRIPT = 'actionscript'

pastebin_python.pastebin_formats. FORMAT_ACTIONSCRIPT_3 = 'actionscript3'

pastebin_python.pastebin_formats. FORMAT_ADA = 'ada'

pastebin_python.pastebin_formats. FORMAT_ALGOL_68 = 'algol68'

pastebin_python.pastebin_formats. FORMAT_APACHE_LOG = 'apache'

pastebin_python.pastebin_formats. FORMAT_APPLESCRIPT = 'applescript'

pastebin_python.pastebin_formats. FORMAT_APT_SOURCES = 'apt_sources'

pastebin_python.pastebin_formats. FORMAT_ARM = 'arm'

pastebin_python.pastebin_formats. FORMAT_ASM_NASM = 'asm'

pastebin_python.pastebin_formats. FORMAT_ASP = 'asp'


https://pythonhosted.org/pastebin_python/code.html 5/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_ASYMPTOTE = 'asymptote'

pastebin_python.pastebin_formats. FORMAT_AUTOCONF = 'autoconf'

pastebin_python.pastebin_formats. FORMAT_AUTOHOTKEY = 'autohotkey'

pastebin_python.pastebin_formats. FORMAT_AUTOIT = 'autoit'

pastebin_python.pastebin_formats. FORMAT_AVISYNTH = 'avisynth'

pastebin_python.pastebin_formats. FORMAT_AWK = 'awk'

pastebin_python.pastebin_formats. FORMAT_BASCOM_AVR = 'bascomavr'

pastebin_python.pastebin_formats. FORMAT_BASH = 'bash'

pastebin_python.pastebin_formats. FORMAT_BASIC4GL = 'basic4gl'

pastebin_python.pastebin_formats. FORMAT_BIBTEX = 'bibtex'

pastebin_python.pastebin_formats. FORMAT_BLITZ_BASIC = 'blitzbasic'

pastebin_python.pastebin_formats. FORMAT_BNF = 'bnf'

pastebin_python.pastebin_formats. FORMAT_BOO = 'boo'

pastebin_python.pastebin_formats. FORMAT_BRAINFUCK = 'bf'

pastebin_python.pastebin_formats. FORMAT_C = 'c'

pastebin_python.pastebin_formats. FORMAT_C_FOR_MACS = 'c_mac'

pastebin_python.pastebin_formats. FORMAT_C_INTERMEDIATE_LANGUAGE = 'cil'

pastebin_python.pastebin_formats. FORMAT_C_SHARP = 'csharp'

pastebin_python.pastebin_formats. FORMAT_CPP = 'cpp'

pastebin_python.pastebin_formats. FORMAT_CPP_WITH_QT = 'cpp-qt'

pastebin_python.pastebin_formats. FORMAT_C_LOADRUNNER = 'c_loadrunner'

pastebin_python.pastebin_formats. FORMAT_CAD_DCL = 'caddcl'

pastebin_python.pastebin_formats. FORMAT_CAD_LISP = 'cadlisp'

pastebin_python.pastebin_formats. FORMAT_CFDG = 'cfdg'

pastebin_python.pastebin_formats. FORMAT_CHAISCRIPT = 'chaiscript'

pastebin_python.pastebin_formats. FORMAT_CLOJURE = 'clojure'

pastebin_python.pastebin_formats. FORMAT_CLONE_C = 'klonec'

pastebin_python.pastebin_formats. FORMAT_CLONE_CPP = 'klonecpp'

pastebin_python.pastebin_formats. FORMAT_CMAKE = 'cmake'


https://pythonhosted.org/pastebin_python/code.html 6/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_COBOL = 'cobol'

pastebin_python.pastebin_formats. FORMAT_COFFEESCRIPT = 'coffeescript'

pastebin_python.pastebin_formats. FORMAT_COLDFUSION = 'cfm'

pastebin_python.pastebin_formats. FORMAT_CSS = 'css'

pastebin_python.pastebin_formats. FORMAT_CUESHEET = 'cuesheet'

pastebin_python.pastebin_formats. FORMAT_D = 'd'

pastebin_python.pastebin_formats. FORMAT_DCL = 'dcl'

pastebin_python.pastebin_formats. FORMAT_DCPU_16 = 'dcpu16'

pastebin_python.pastebin_formats. FORMAT_DCS = 'dcs'

pastebin_python.pastebin_formats. FORMAT_DELPHI = 'delphi'

pastebin_python.pastebin_formats. FORMAT_DELPHI_PRISM_OXYGENE = 'oxygene'

pastebin_python.pastebin_formats. FORMAT_DIFF = 'diff'

pastebin_python.pastebin_formats. FORMAT_DIV = 'div'

pastebin_python.pastebin_formats. FORMAT_DOS = 'dos'

pastebin_python.pastebin_formats. FORMAT_DOT = 'dot'

pastebin_python.pastebin_formats. FORMAT_E = 'e'

pastebin_python.pastebin_formats. FORMAT_ECMASCRIPT = 'ecmascript'

pastebin_python.pastebin_formats. FORMAT_EIFFEL = 'eiffel'

pastebin_python.pastebin_formats. FORMAT_EMAIL = 'email'

pastebin_python.pastebin_formats. FORMAT_EPC = 'epc'

pastebin_python.pastebin_formats. FORMAT_ERLANG = 'erlang'

pastebin_python.pastebin_formats. FORMAT_F_SHARP = 'fsharp'

pastebin_python.pastebin_formats. FORMAT_FALCON = 'falcon'

pastebin_python.pastebin_formats. FORMAT_FO_LANGUAGE = 'fo'

pastebin_python.pastebin_formats. FORMAT_FORMULA_ONE = 'f1'

pastebin_python.pastebin_formats. FORMAT_FORTRAN = 'fortran'

pastebin_python.pastebin_formats. FORMAT_FREEBASIC = 'freebasic'

pastebin_python.pastebin_formats. FORMAT_FREESWITCH = 'freeswitch'

pastebin_python.pastebin_formats. FORMAT_GAMBAS = 'gambas'


https://pythonhosted.org/pastebin_python/code.html 7/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_GAME_MAKER = 'gml'

pastebin_python.pastebin_formats. FORMAT_GDB = 'gdb'

pastebin_python.pastebin_formats. FORMAT_GENERO = 'genero'

pastebin_python.pastebin_formats. FORMAT_GENIE = 'genie'

pastebin_python.pastebin_formats. FORMAT_GETTEXT = 'gettext'

pastebin_python.pastebin_formats. FORMAT_GO = 'go'

pastebin_python.pastebin_formats. FORMAT_GROOVY = 'groovy'

pastebin_python.pastebin_formats. FORMAT_GWBASIC = 'gwbasic'

pastebin_python.pastebin_formats. FORMAT_HASKELL = 'haskell'

pastebin_python.pastebin_formats. FORMAT_HAXE = 'haxe'

pastebin_python.pastebin_formats. FORMAT_HICEST = 'hicest'

pastebin_python.pastebin_formats. FORMAT_HQ9_PLUS = 'hq9plus'

pastebin_python.pastebin_formats. FORMAT_HTML = 'html4strict'

pastebin_python.pastebin_formats. FORMAT_HTML_5 = 'html5'

pastebin_python.pastebin_formats. FORMAT_ICON = 'icon'

pastebin_python.pastebin_formats. FORMAT_IDL = 'idl'

pastebin_python.pastebin_formats. FORMAT_INI_FILE = 'ini'

pastebin_python.pastebin_formats. FORMAT_INNO_SCRIPT = 'inno'

pastebin_python.pastebin_formats. FORMAT_INTERCAL = 'intercal'

pastebin_python.pastebin_formats. FORMAT_IO = 'io'

pastebin_python.pastebin_formats. FORMAT_J = 'j'

pastebin_python.pastebin_formats. FORMAT_JAVA = 'java'

pastebin_python.pastebin_formats. FORMAT_JAVA_5 = 'java5'

pastebin_python.pastebin_formats. FORMAT_JAVASCRIPT = 'javascript'

pastebin_python.pastebin_formats. FORMAT_JQUERY = 'jquery'

pastebin_python.pastebin_formats. FORMAT_KIXTART = 'kixtart'

pastebin_python.pastebin_formats. FORMAT_LATEX = 'latex'

pastebin_python.pastebin_formats. FORMAT_LDIF = 'ldif'

pastebin_python.pastebin_formats. FORMAT_LIBERTY_BASIC = 'lb'


https://pythonhosted.org/pastebin_python/code.html 8/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_LINDEN_SCRIPTING = 'lsl2'

pastebin_python.pastebin_formats. FORMAT_LISP = 'lisp'

pastebin_python.pastebin_formats. FORMAT_LLVM = 'llvm'

pastebin_python.pastebin_formats. FORMAT_LOCO_BASIC = 'locobasic'

pastebin_python.pastebin_formats. FORMAT_LOGTALK = 'logtalk'

pastebin_python.pastebin_formats. FORMAT_LOL_CODE = 'lolcode'

pastebin_python.pastebin_formats. FORMAT_LOTUS_FORMULAS = 'lotusformulas'

pastebin_python.pastebin_formats. FORMAT_LOTUS_SCRIPT = 'lotusscript'

pastebin_python.pastebin_formats. FORMAT_LSCRIPT = 'lscript'

pastebin_python.pastebin_formats. FORMAT_LUA = 'lua'

pastebin_python.pastebin_formats. FORMAT_M68000_ASSEMBLER = 'm68k'

pastebin_python.pastebin_formats. FORMAT_MAGIKSF = 'magiksf'

pastebin_python.pastebin_formats. FORMAT_MAKE = 'make'

pastebin_python.pastebin_formats. FORMAT_MAPBASIC = 'mapbasic'

pastebin_python.pastebin_formats. FORMAT_MATLAB = 'matlab'

pastebin_python.pastebin_formats. FORMAT_MIRC = 'mirc'

pastebin_python.pastebin_formats. FORMAT_MIX_ASSEMBLER = 'mmix'

pastebin_python.pastebin_formats. FORMAT_MODULA_2 = 'modula2'

pastebin_python.pastebin_formats. FORMAT_MODULA_3 = 'modula3'

pastebin_python.pastebin_formats. FORMAT_MOTOROLA_68000_HISOFT_DEV = '68000devpac'

pastebin_python.pastebin_formats. FORMAT_MPASM = 'mpasm'

pastebin_python.pastebin_formats. FORMAT_MXML = 'mxml'

pastebin_python.pastebin_formats. FORMAT_MYSQL = 'mysql'

pastebin_python.pastebin_formats. FORMAT_NAGIOS = 'nagios'

pastebin_python.pastebin_formats. FORMAT_NEWLISP = 'newlisp'

pastebin_python.pastebin_formats. FORMAT_NONE = 'text'

pastebin_python.pastebin_formats. FORMAT_NULLSOFT_INSTALLER = 'nsis'

pastebin_python.pastebin_formats. FORMAT_OBERON_2 = 'oberon2'

pastebin_python.pastebin_formats. FORMAT_OBJECK_PROGRAMMING_LANGUA = 'objeck'


https://pythonhosted.org/pastebin_python/code.html 9/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_OBJECTIVE_C = 'objc'

pastebin_python.pastebin_formats. FORMAT_OCALM_BRIEF = 'ocaml-brief'

pastebin_python.pastebin_formats. FORMAT_OCAML = 'ocaml'

pastebin_python.pastebin_formats. FORMAT_OCTAVE = 'octave'

pastebin_python.pastebin_formats. FORMAT_OPENBSD_PACKET_FILTER = 'pf'

pastebin_python.pastebin_formats. FORMAT_OPENGL_SHADING = 'glsl'

pastebin_python.pastebin_formats. FORMAT_OPENOFFICE_BASIC = 'oobas'

pastebin_python.pastebin_formats. FORMAT_ORACLE_11 = 'oracle11'

pastebin_python.pastebin_formats. FORMAT_ORACLE_8 = 'oracle8'

pastebin_python.pastebin_formats. FORMAT_OZ = 'oz'

pastebin_python.pastebin_formats. FORMAT_PARASAIL = 'parasail'

pastebin_python.pastebin_formats. FORMAT_PARI_GP = 'parigp'

pastebin_python.pastebin_formats. FORMAT_PASCAL = 'pascal'

pastebin_python.pastebin_formats. FORMAT_PAWN = 'pawn'

pastebin_python.pastebin_formats. FORMAT_PCRE = 'pcre'

pastebin_python.pastebin_formats. FORMAT_PER = 'per'

pastebin_python.pastebin_formats. FORMAT_PERL = 'perl'

pastebin_python.pastebin_formats. FORMAT_PERL_6 = 'perl6'

pastebin_python.pastebin_formats. FORMAT_PHP = 'php'

pastebin_python.pastebin_formats. FORMAT_PHP_BRIEF = 'php-brief'

pastebin_python.pastebin_formats. FORMAT_PIC_16 = 'pic16'

pastebin_python.pastebin_formats. FORMAT_PIKE = 'pike'

pastebin_python.pastebin_formats. FORMAT_PIXEL_BENDER = 'pixelbender'

pastebin_python.pastebin_formats. FORMAT_PL_SQL = 'plsql'

pastebin_python.pastebin_formats. FORMAT_POSTGRESQL = 'postgresql'

pastebin_python.pastebin_formats. FORMAT_POV_RAY = 'povray'

pastebin_python.pastebin_formats. FORMAT_POWER_SHELL = 'powershell'

pastebin_python.pastebin_formats. FORMAT_POWERBUILDER = 'powerbuilder'

pastebin_python.pastebin_formats. FORMAT_PROFTPD = 'proftpd'


https://pythonhosted.org/pastebin_python/code.html 10/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_PROGRESS = 'progress'

pastebin_python.pastebin_formats. FORMAT_PROLOG = 'prolog'

pastebin_python.pastebin_formats. FORMAT_PROPERTIES = 'properties'

pastebin_python.pastebin_formats. FORMAT_PROVIDEX = 'providex'

pastebin_python.pastebin_formats. FORMAT_PUREBASIC = 'purebasic'

pastebin_python.pastebin_formats. FORMAT_PYCON = 'pycon'

pastebin_python.pastebin_formats. FORMAT_PYTHON = 'python'

pastebin_python.pastebin_formats. FORMAT_PYTHON_FOR_S60 = 'pys60'

pastebin_python.pastebin_formats. FORMAT_Q_KDB_PLUS = 'q'

pastebin_python.pastebin_formats. FORMAT_QBASIC = 'qbasic'

pastebin_python.pastebin_formats. FORMAT_R = 'rsplus'

pastebin_python.pastebin_formats. FORMAT_RAILS = 'rails'

pastebin_python.pastebin_formats. FORMAT_REBOL = 'rebol'

pastebin_python.pastebin_formats. FORMAT_REG = 'reg'

pastebin_python.pastebin_formats. FORMAT_REXX = 'rexx'

pastebin_python.pastebin_formats. FORMAT_ROBOTS = 'robots'

pastebin_python.pastebin_formats. FORMAT_RPM_SPEC = 'rpmspec'

pastebin_python.pastebin_formats. FORMAT_RUBY = 'ruby'

pastebin_python.pastebin_formats. FORMAT_RUBY_GNUPLOT = 'gnuplot'

pastebin_python.pastebin_formats. FORMAT_SAS = 'sas'

pastebin_python.pastebin_formats. FORMAT_SCALA = 'scala'

pastebin_python.pastebin_formats. FORMAT_SCHEME = 'scheme'

pastebin_python.pastebin_formats. FORMAT_SCILAB = 'scilab'

pastebin_python.pastebin_formats. FORMAT_SDLBASIC = 'sdlbasic'

pastebin_python.pastebin_formats. FORMAT_SMALLTALK = 'smalltalk'

pastebin_python.pastebin_formats. FORMAT_SMARTY = 'smarty'

pastebin_python.pastebin_formats. FORMAT_SPARK = 'spark'

pastebin_python.pastebin_formats. FORMAT_SPARQL = 'sparql'

pastebin_python.pastebin_formats. FORMAT_SQL = 'sql'


https://pythonhosted.org/pastebin_python/code.html 11/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_STONESCRIPT = 'stonescript'

pastebin_python.pastebin_formats. FORMAT_SYSTEMVERILOG = 'systemverilog'

pastebin_python.pastebin_formats. FORMAT_T_SQL = 'tsql'

pastebin_python.pastebin_formats. FORMAT_TCL = 'tcl'

pastebin_python.pastebin_formats. FORMAT_TERA_TERM = 'teraterm'

pastebin_python.pastebin_formats. FORMAT_THINBASIC = 'thinbasic'

pastebin_python.pastebin_formats. FORMAT_TYPOSCRIPT = 'typoscript'

pastebin_python.pastebin_formats. FORMAT_UNICON = 'unicon'

pastebin_python.pastebin_formats. FORMAT_UNREALSCRIPT = 'uscript'

pastebin_python.pastebin_formats. FORMAT_UPC = 'ups'

pastebin_python.pastebin_formats. FORMAT_URBI = 'urbi'

pastebin_python.pastebin_formats. FORMAT_VALA = 'vala'

pastebin_python.pastebin_formats. FORMAT_VB_NET = 'vbnet'

pastebin_python.pastebin_formats. FORMAT_VEDIT = 'vedit'

pastebin_python.pastebin_formats. FORMAT_VERILOG = 'verilog'

pastebin_python.pastebin_formats. FORMAT_VHDL = 'vhdl'

pastebin_python.pastebin_formats. FORMAT_VIM = 'vim'

pastebin_python.pastebin_formats. FORMAT_VISUAL_PRO_LOG = 'visualprolog'

pastebin_python.pastebin_formats. FORMAT_VISUALBASIC = 'vb'

pastebin_python.pastebin_formats. FORMAT_VISUALFOXPRO = 'visualfoxpro'

pastebin_python.pastebin_formats. FORMAT_WHITESPACE = 'whitespace'

pastebin_python.pastebin_formats. FORMAT_WHOIS = 'whois'

pastebin_python.pastebin_formats. FORMAT_WINBATCH = 'winbatch'

pastebin_python.pastebin_formats. FORMAT_XBASIC = 'xbasic'

pastebin_python.pastebin_formats. FORMAT_XML = 'xml'

pastebin_python.pastebin_formats. FORMAT_XORG_CONFIG = 'xorg_conf'

pastebin_python.pastebin_formats. FORMAT_XPP = 'xpp'

pastebin_python.pastebin_formats. FORMAT_YAML = 'yaml'

pastebin_python.pastebin_formats. FORMAT_Z80_ASSEMBLER = 'z80'


https://pythonhosted.org/pastebin_python/code.html 12/13
8/16/2019 Code Documentation — pastebin_python 1.0 documentation

pastebin_python.pastebin_formats. FORMAT_ZXBASIC = 'zxbasic'

pastebin_options
pastebin_python.pastebin_options. OPTION_PASTE = 'paste'

pastebin_python.pastebin_options. OPTION_LIST = 'list'

pastebin_python.pastebin_options. OPTION_TRENDS = 'trends'

pastebin_python.pastebin_options. OPTION_DELETE = 'delete'

pastebin_python.pastebin_options. OPTION_USER_DETAILS = 'userdetails'

https://pythonhosted.org/pastebin_python/code.html 13/13

You might also like