{ "info": { "author": "Ian Havelock", "author_email": "ian@morrolan.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Other Environment", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Education", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "============\r\nPastebin API\r\n============\r\nAbout\r\n-----\r\n\r\nThe package allows you to communicate directly with Pastebin.com from your Python application, either logged in or anonymously. This can be handy \r\n\r\nfor a number of reasons - dumping error logs before an abort, regular web based status updates, but can't be bothered getting a web-server running etc.\r\n\r\nIt allows you to do everything the API allows, which is:\r\n\r\n- Paste, either logged in or anonymously\r\n- 200+ selectable languages for syntax highlighting\r\n- Set expiry times on pastes\r\n- Set public/private/unlisted status for pastes\r\n- See trending pastes\r\n- See pastes by a particular user\r\n- Delete your pastes\r\n- Retrieve your user details\r\n- Generate a session (user) key for added security\r\n- Paste using the old, non-token anonymous API (for as long as they keep it open)\r\n\r\n\r\n\r\n\r\nInstallation\r\n------------\r\n\r\nIf you have downloaded the source distribution, to install do the following at the commandline: \r\n\r\n::\r\n \r\n $ python setup.py install\r\n\r\n\r\nIf you can use and install Python Egg's, you can do:\r\n\r\n::\r\n\r\n $ easy_install Pastebin\r\n\r\n\r\nAnd it will download the latest version from the Python Package Index.\r\n\r\n\r\n\r\n\r\nUsage Examples\r\n--------------\r\n\r\n**Generate a user/session key** (this is required by other functions):\r\n\r\n::\r\n\r\n >>> from pastebin import PastebinAPI\r\n >>> my_key = PastebinAPI.generate_user_key(api_dev_key, username, password)\r\n >>> print my_key\r\n\r\n\r\n\r\nReturn an XML list of **User Details** of user specified by API key.\r\n\r\n::\r\n\r\n >>> details = PastebinAPI.user_details(api_dev_key, api_user_key)\r\n >>> print details\r\n\r\n\r\n\r\nReturn a list of **trending pastes**. The result is in XML:\r\n\r\n::\r\n\r\n >>> trending_pastes = PastebinAPI.trending(api_dev_key)\r\n >>> print trending_pastes\r\n\r\n\r\n\r\nReturn an XML list of all **pastes by user**. Result limit defaults to none, so it will return all pastes:\r\n\r\n::\r\n\r\n >>> details = x.user_details(api_dev_key, api_user_key, results_limit = None)\r\n\r\n\r\n\r\n**Delete a paste**:\r\n\r\n::\r\n\r\n >>> PastebinAPI.delete_paste(api_dev_key, api_user_key, api_paste_key)\r\n\r\n\r\n**Paste** to Pastebin, where api_paste_code is the contents of your paste. This will accept any valid Python data type:\r\n\r\n::\r\n\r\n >>> PastebinAPI.paste(api_dev_key, api_paste_code, api_user_key = None, paste_name = None, \r\n ... paste_format = None, paste_private = None, \r\n ... paste_expire_date = None)\r\n\r\n\r\n\r\nNote that any parameter which is listed about as ' = *None*' is optional. \r\nDetails of valid input parameters for paste function are below.\r\n\r\n\r\nValid paste_private values: \r\n\r\n- 'public'\r\n- 'unlisted'\r\n- 'private'\r\n\r\n\r\n\r\nValid paste_expire_date values:\r\n\r\n====== ===========\r\nInput Description\r\n====== ===========\r\n'N' Never\r\n'10M' 10 minutes\r\n'1H' 1 hour\r\n'1D' 1 day\r\n'1M' 1 month\r\n====== ===========\r\n\r\n\r\nValid parse_format values:\r\n\r\n\r\n================ =============================== \r\n Input Language\r\n================ =============================== \r\n'4cs' 4CS\r\n'6502acme' 6502 ACME Cross Assembler\r\n'6502kickass' 6502 Kick Assembler\r\n'6502tasm' 6502 TASM/64TASS\r\n'abap' ABAP\r\n'actionscript' ActionScript\r\n'actionscript3' ActionScript 3\r\n'ada' Ada\r\n'algol68' ALGOL 68\r\n'apache' Apache Log\r\n'applescript' AppleScript\r\n'apt_sources' APT Sources\r\n'asm' ASM (NASM)\r\n'asp' ASP\r\n'autoconf' autoconf\r\n'autohotkey' Autohotkey\r\n'autoit' AutoIt\r\n'avisynth' Avisynth\r\n'awk' Awk\r\n'bascomavr' BASCOM AVR\r\n'bash' Bash\r\n'basic4gl' Basic4GL\r\n'bibtex' BibTeX\r\n'blitzbasic' Blitz Basic\r\n'bnf' BNF\r\n'boo' BOO\r\n'bf' BrainFuck\r\n'c' C\r\n'c_mac' C for Macs\r\n'cil' C Intermediate Language\r\n'csharp' C#\r\n'cpp' C++\r\n'cpp-qt' C++ (with QT extensions)\r\n'c_loadrunner' C: Loadrunner\r\n'caddcl' CAD DCL\r\n'cadlisp' CAD Lisp\r\n'cfdg' CFDG\r\n'chaiscript' ChaiScript\r\n'clojure' Clojure\r\n'klonec' Clone C\r\n'klonecpp' Clone C++\r\n'cmake' CMake\r\n'cobol' COBOL\r\n'coffeescript' CoffeeScript\r\n'cfm' ColdFusion\r\n'css' CSS\r\n'cuesheet' Cuesheet\r\n'd' D\r\n'dcs' DCS\r\n'delphi' Delphi\r\n'oxygene' Delphi Prism (Oxygene)\r\n'diff' Diff\r\n'div' DIV\r\n'dos' DOS\r\n'dot' DOT\r\n'e' E\r\n'ecmascript' ECMAScript\r\n'eiffel' Eiffel\r\n'email' Email\r\n'epc' EPC\r\n'erlang' Erlang\r\n'fsharp' F#\r\n'falcon' Falcon\r\n'fo' FO Language\r\n'f1' Formula One\r\n'fortran' Fortran\r\n'freebasic' FreeBasic\r\n'freeswitch' FreeSWITCH\r\n'gambas' GAMBAS\r\n'gml' Game Maker\r\n'gdb' GDB\r\n'genero' Genero\r\n'genie' Genie\r\n'gettext' GetText\r\n'go' Go\r\n'groovy' Groovy\r\n'gwbasic' GwBasic\r\n'haskell' Haskell\r\n'hicest' HicEst\r\n'hq9plus' HQ9 Plus\r\n'html4strict' HTML\r\n'html5' HTML 5\r\n'icon' Icon\r\n'idl' IDL\r\n'ini' INI file\r\n'inno' Inno Script\r\n'intercal' INTERCAL\r\n'io' IO\r\n'j' J\r\n'java' Java\r\n'java5' Java 5\r\n'javascript' JavaScript\r\n'jquery' jQuery\r\n'kixtart' KiXtart\r\n'latex' Latex\r\n'lb' Liberty BASIC\r\n'lsl2' Linden Scripting\r\n'lisp' Lisp\r\n'llvm' LLVM\r\n'locobasic' Loco Basic\r\n'logtalk' Logtalk\r\n'lolcode' LOL Code\r\n'lotusformulas' Lotus Formulas\r\n'lotusscript' Lotus Script\r\n'lscript' LScript\r\n'lua' Lua\r\n'm68k' M68000 Assembler\r\n'magiksf' MagikSF\r\n'make' Make\r\n'mapbasic' MapBasic\r\n'matlab' MatLab\r\n'mirc' mIRC\r\n'mmix' MIX Assembler\r\n'modula2' Modula 2\r\n'modula3' Modula 3\r\n'68000devpac' Motorola 68000 HiSoft Dev\r\n'mpasm' MPASM\r\n'mxml' MXML\r\n'mysql' MySQL\r\n'newlisp' newLISP\r\n'text' None\r\n'nsis' NullSoft Installer\r\n'oberon2' Oberon 2\r\n'objeck' Objeck Programming Langua\r\n'objc' Objective C\r\n'ocaml-brief' OCalm Brief\r\n'ocaml' OCaml\r\n'pf' OpenBSD PACKET FILTER\r\n'glsl' OpenGL Shading\r\n'oobas' Openoffice BASIC\r\n'oracle11' Oracle 11\r\n'oracle8' Oracle 8\r\n'oz' Oz\r\n'pascal' Pascal\r\n'pawn' PAWN\r\n'pcre' PCRE\r\n'per' Per\r\n'perl' Perl\r\n'perl6' Perl 6\r\n'php' PHP\r\n'php-brief' PHP Brief\r\n'pic16' Pic 16\r\n'pike' Pike\r\n'pixelbender' Pixel Bender\r\n'plsql' PL/SQL\r\n'postgresql' PostgreSQL\r\n'povray' POV-Ray\r\n'powershell' Power Shell\r\n'powerbuilder' PowerBuilder\r\n'proftpd' ProFTPd\r\n'progress' Progress\r\n'prolog' Prolog\r\n'properties' Properties\r\n'providex' ProvideX\r\n'purebasic' PureBasic\r\n'pycon' PyCon\r\n'python' Python\r\n'q' q/kdb+\r\n'qbasic' QBasic\r\n'rsplus' R\r\n'rails' Rails\r\n'rebol' REBOL\r\n'reg' REG\r\n'robots' Robots\r\n'rpmspec' RPM Spec\r\n'ruby' Ruby\r\n'gnuplot' Ruby Gnuplot\r\n'sas' SAS\r\n'scala' Scala\r\n'scheme' Scheme\r\n'scilab' Scilab\r\n'sdlbasic' SdlBasic\r\n'smalltalk' Smalltalk\r\n'smarty' Smarty\r\n'sql' SQL\r\n'systemverilog' SystemVerilog\r\n'tsql' T-SQL\r\n'tcl' TCL\r\n'teraterm' Tera Term\r\n'thinbasic' thinBasic\r\n'typoscript' TypoScript\r\n'unicon' Unicon\r\n'uscript' UnrealScript\r\n'vala' Vala\r\n'vbnet' VB.NET\r\n'verilog' VeriLog\r\n'vhdl' VHDL\r\n'vim' VIM\r\n'visualprolog' Visual Pro Log\r\n'vb' VisualBasic\r\n'visualfoxpro' VisualFoxPro\r\n'whitespace' WhiteSpace\r\n'whois' WHOIS\r\n'winbatch' Winbatch\r\n'xbasic' XBasic\r\n'xml' XML\r\n'xorg_conf' Xorg Config\r\n'xpp' XPP\r\n'yaml' YAML\r\n'z80' Z80 Assembler\r\n'zxbasic' ZXBasic\r\n================ ===============================", "description_content_type": null, "docs_url": "https://pythonhosted.org/Pastebin/", "download_url": "http://pypi.python.org/pypi/Pastebin/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.morrolan.com", "keywords": "pastebin,paste,xml,pastebin API", "license": "GNU General Public License (GPL)", "maintainer": null, "maintainer_email": null, "name": "Pastebin", "package_url": "https://pypi.org/project/Pastebin/", "platform": "Windows,Unix,OS X", "project_url": "https://pypi.org/project/Pastebin/", "project_urls": { "Download": "http://pypi.python.org/pypi/Pastebin/", "Homepage": "http://www.morrolan.com" }, "release_url": "https://pypi.org/project/Pastebin/1.1.2/", "requires_dist": null, "requires_python": null, "summary": "Python Pastebin API interaction object.", "version": "1.1.2" }, "last_serial": 2455363, "releases": { "1.0.0": [], "1.0.1": [], "1.0.2": [ { "comment_text": "", "digests": { "md5": "7466c1ffed05d6052ade1a2442e07c67", "sha256": "60ac8f2673590f18afdcae5db670a258a05899e34985d750448057ad80cacdc5" }, "downloads": -1, "filename": "Pastebin-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7466c1ffed05d6052ade1a2442e07c67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46727, "upload_time": "2012-06-13T12:39:20", "url": "https://files.pythonhosted.org/packages/c7/79/0d76102f1debb6e7709a0226c387241e570e6fdc28aed7d0392b5e20f2d0/Pastebin-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "462f46a49bf4786b75611a5316606b38", "sha256": "b654e6b8704c2c70dfd5cbf3d5e1b553bec2dfcb542ac454842c089386844147" }, "downloads": -1, "filename": "Pastebin-1.0.3-py2.7.egg", "has_sig": false, "md5_digest": "462f46a49bf4786b75611a5316606b38", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 17474, "upload_time": "2012-06-27T11:07:52", "url": "https://files.pythonhosted.org/packages/a0/e2/3cae03c79d8fba05535b354b89d94d784c9175035a1db1539f627af0db82/Pastebin-1.0.3-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "617a44d87b1c7af90eb2e1e83451fd60", "sha256": "80d22e52c71ae8167b81ad890635952d4d6a9e064bab80a431127586a0a686eb" }, "downloads": -1, "filename": "Pastebin-1.0.3.tar.gz", "has_sig": false, "md5_digest": "617a44d87b1c7af90eb2e1e83451fd60", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 54055, "upload_time": "2012-06-27T11:07:40", "url": "https://files.pythonhosted.org/packages/30/ba/e4e0e55d430ec2cf962f455b35fa2804e2673d68e50affed8d6fd8a16169/Pastebin-1.0.3.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "8d8c50e34c63437a94c2993afd1812fc", "sha256": "3156b90677c1cf60c46591938a613d3ea37f98a78e8b76ffd579e30fa38b9ff9" }, "downloads": -1, "filename": "Pastebin-1.1.0.tar.gz", "has_sig": false, "md5_digest": "8d8c50e34c63437a94c2993afd1812fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 56066, "upload_time": "2013-02-27T07:52:25", "url": "https://files.pythonhosted.org/packages/d9/0e/1d472ca009710556876b1330b6c4d496ed6931fd31f7d7b80c9a6b94e2da/Pastebin-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "03a571c8cb13ca1b2709430345fdfadf", "sha256": "e839a0c13f7f002d4f9078235049b1a2146824055697315dfb1f89a4f322116c" }, "downloads": -1, "filename": "Pastebin-1.1.1-py2.6.egg", "has_sig": false, "md5_digest": "03a571c8cb13ca1b2709430345fdfadf", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 4763, "upload_time": "2013-08-28T16:06:23", "url": "https://files.pythonhosted.org/packages/53/d1/9905ea6ec17521430747bce3d853b8f4359547f5140e0e4950ad55f71c10/Pastebin-1.1.1-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "d9374efc32f442e9fb4589d4f5a9b74b", "sha256": "02033ada5d1bb3773bea7076a797d7b8a57ff58cb56de5faba0cdb83f88f7894" }, "downloads": -1, "filename": "Pastebin-1.1.1.tar.gz", "has_sig": false, "md5_digest": "d9374efc32f442e9fb4589d4f5a9b74b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 55704, "upload_time": "2013-08-28T16:06:20", "url": "https://files.pythonhosted.org/packages/a1/04/844a854b07f2913a1697cc0b3a6720e304415b9717772605867ba0581e80/Pastebin-1.1.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "b78613bfefc6f44ae9a8a80126846446", "sha256": "ac7fb9cd9130a188cb1188186ab8f2607513f76ec599e78ed7c902ce816f116b" }, "downloads": -1, "filename": "Pastebin-1.1.2.tar.gz", "has_sig": false, "md5_digest": "b78613bfefc6f44ae9a8a80126846446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 66165, "upload_time": "2016-11-11T16:08:50", "url": "https://files.pythonhosted.org/packages/3b/5f/3e069acfa5991195475d914f4e70696ba5fbb241e37d3b74b0ad1e78d411/Pastebin-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b78613bfefc6f44ae9a8a80126846446", "sha256": "ac7fb9cd9130a188cb1188186ab8f2607513f76ec599e78ed7c902ce816f116b" }, "downloads": -1, "filename": "Pastebin-1.1.2.tar.gz", "has_sig": false, "md5_digest": "b78613bfefc6f44ae9a8a80126846446", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 66165, "upload_time": "2016-11-11T16:08:50", "url": "https://files.pythonhosted.org/packages/3b/5f/3e069acfa5991195475d914f4e70696ba5fbb241e37d3b74b0ad1e78d411/Pastebin-1.1.2.tar.gz" } ] }