{ "info": { "author": "Marc-Alexandre Chan", "author_email": "laogeodritt@arenthil.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: BSD License", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "PyGhostLid\n==========\n\nSubmit and retrieve pastes from GhostBin within your application! This\nlibrary supports both ghostbin.com and any self-hosted instances of\nghostbin.\n\n'GhostLid' as a name is based on the silly idea that this library sits\nbetween your application and GhostBin, in the same way as a lid sits\nbetween you and a garbage/composting bin.\n\nThis is a super simple library, but I thought it'd be worth sharing it\nanyway.\n\nWhat's GhostBin? Why this library?\n----------------------------------\n\nGhostBin is an open-source \"pastebin\"-like web application, that allows\nusers to upload arbitrary text files for sharing on the internet: for\nexample, sharing code or configuration files when asking for help on\nforums, reddit or an IRC channel; sharing log files when contacting a\ntechnical support forum or IRC channel; or sharing a long text to a\nfriend over instant messaging, which often isn't really friendly to long\nmessages.\n\nThis convenience library is intended for any applications that needs a\nquick way of uploading to GhostBin. For example, built-in GhostBin\nbutton in an instant messaging application, or a framework that has a\none-click \"Upload to GhostBin\" button for error messages/stack traces to\nallow them to easily ask for help or include in a bug report.\n\nRequirements\n------------\n\nThis library requires Python 3.x, recommended >= 3.2. It is tested\nagainst Python 3.5.\n\nBasic usage\n-----------\n\nThis library consists of a single class, ``GhostLid``, and is dead\nsimple. Check out the basic examples below, and the method docstrings in\nthe source for more info on the available options, including using a\nhost other than ``ghostbin.com`` and setting defaults.\n\n.. code:: python\n\n # The text we want to paste\n paste_text = \"\"\"\n [04:10:07] hi\n [04:10:13] hi\n [04:19:21] good talk\n \"\"\"\n\n # Setup\n from ghostlid import GhostLid\n ghostlid = GhostLid()\n ghostlid.load_languages()\n\n # Here's a simple list of supported languages\n lang_list = ghostlid.get_lang_list()\n\n # And here's the full info on languages - this has enough info to build a nice user interface\n # See the \"languages.json\" section of this page: https://ghostbin.com/paste/p3qcy\n lang_info = ghostlid.get_language_info()\n\n # Paste some text (NOTE: AVOID FOR TEST PASTES - please use an expiration time limit!)\n paste_url = ghostlid.paste(paste_text)\n print(\"Your paste was uploaded to this URL: \" + paste_url)\n\n # Specify a language (usually programming language) for syntax highlighting\n paste_url = ghostlid.paste(paste_text, lang=\"irc\")\n\n # Encrypt the paste with a password\n paste_url = ghostlid.paste(paste_text, password=\"correct horse battery staple\", lang=\"irc\")\n\n # Paste with an expiration of 10 minutes\n paste_url = ghostlid.paste(paste_text, expire=\"10m\", lang=\"irc\")\n\n # Get the ghostbin protocol info paste at https://ghostbin.com/paste/p3qcy\n retrieved_paste_text = ghostlid.get_paste('p3qcy')\n\n # Get the paste we submitted above\n paste_id = ghostlid.get_paste_id(paste_url)\n retrieved_paste_text = ghostlid.get_paste(paste_id)\n\nKnown Issues\n------------\n\n- Retrieval ``get_paste()`` does not work with Ghostbin.com at the time\n of writing, because `the /raw feature was\n disabled `__ on the\n main site due to abuse. It's still available in the codebase and may\n or may not be enabled on any self-hosted Ghostbin instances.\n\nLinks\n-----\n\n- `Protocol information for\n GhostBin `__\n- `Note on the /raw feature on\n Ghostbin.com `__\n- `Ghostbin `__\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Laogeodritt/pyghostlid/tarball/0.2.0", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Laogeodritt/pyghostlid", "keywords": "ghostbin", "license": "Modified BSD", "maintainer": "", "maintainer_email": "", "name": "PyGhostLid", "package_url": "https://pypi.org/project/PyGhostLid/", "platform": "", "project_url": "https://pypi.org/project/PyGhostLid/", "project_urls": { "Download": "https://github.com/Laogeodritt/pyghostlid/tarball/0.2.0", "Homepage": "https://github.com/Laogeodritt/pyghostlid" }, "release_url": "https://pypi.org/project/PyGhostLid/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Submit and retrieve pastes from GhostBin within your application! Supports both ghostbin.com and any self-hosted instances of ghostbin.", "version": "0.2.0" }, "last_serial": 2569546, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "7d6ad7409847231c3131bef5b15b1cd6", "sha256": "512a18c4ccb37d7640d7986e0b55337b7225f76070b906881d7feb164606d73a" }, "downloads": -1, "filename": "PyGhostLid-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7d6ad7409847231c3131bef5b15b1cd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6608, "upload_time": "2017-01-12T11:43:42", "url": "https://files.pythonhosted.org/packages/80/24/dace55d2d2b0fe1a5fdc22867c037025b8fed4b96e332c78530061a2181d/PyGhostLid-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d6ad7409847231c3131bef5b15b1cd6", "sha256": "512a18c4ccb37d7640d7986e0b55337b7225f76070b906881d7feb164606d73a" }, "downloads": -1, "filename": "PyGhostLid-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7d6ad7409847231c3131bef5b15b1cd6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6608, "upload_time": "2017-01-12T11:43:42", "url": "https://files.pythonhosted.org/packages/80/24/dace55d2d2b0fe1a5fdc22867c037025b8fed4b96e332c78530061a2181d/PyGhostLid-0.2.0.tar.gz" } ] }