{ "info": { "author": "Peter Skipper", "author_email": "peter.skipper@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# pizzabutton\nPut a Pizza in your Jupyter Notebook\n\n## Dependencies\nIn order to actually order a pizza from your Jupyter notebook, you'll need\nto define a set of bash environment variables like your address. DO NOT \nGIT COMMIT ANY OF YOUR PRIVATE INFORMATION.\n\nStart by making your own copy of the PIZZAVARS file, `cp EXAMPLE_PIZZAVARS PIZZAVARS`. Edit the file to contain your correct information. Then at the terminal `source PIZZAVARS` to put those variables into your environment. To change your favorite order, see the section below, Define Your Order.\n\n## Installation\nIt's highly recommended that you install in a virtualenv. The following commands assume you have already done `source activate my-env-name`. After doing so, install both the serverextension and the toolbar button (nbextension) with:\n\n```bash\npip install pizzabutton\njupyter serverextension enable --py pizzabutton --sys-prefix\njupyter nbextension install --py pizzabutton --sys-prefix\njupyter nbextension enable --py pizzabutton --sys-prefix\n```\n\nYou can check that the install was successful with:\n```bash\njupyter nbextension list\njupyter serverextension list\n```\n\n## Define Your Order\nUse the pizzapi module to search for menu items at your local store.\n```python\nimport pizzapi\nmy_address = pizzapi.Address('700 Pennsylvania Avenue NW',\n\t\t\t 'Washington',\n\t\t\t 'DC',\n\t\t\t '20408')\nstore = my_address.closest_store()\nmenu = store.get_menu()\nmenu.search(Name='Pepperoni') # 'Name' NOT 'name', 'Pepperoni' NOT 'pepperoni'\n```\nShould give you output like this:\n```\n10SCPFEAST Small (10\") Hand Tossed Ultimate Pepperoni $11.99 10 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n10TPFEAST Small (10\") Thin Ultimate Pepperoni $11.99 10 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n12SCPFEAST Medium (12\") Hand Tossed Ultimate Pepperoni $14.99 12 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n12TPFEAST Medium (12\") Thin Ultimate Pepperoni $14.99 12 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\nPBKIREPX Large (14\") Brooklyn Ultimate Pepperoni $17.49 14 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n14SCPFEAST Large (14\") Hand Tossed Ultimate Pepperoni $17.49 14 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n14TPFEAST Large (14\") Thin Ultimate Pepperoni $17.49 14 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\nP16IBKPX X-Large (16\") Brooklyn Ultimate Pepperoni $19.99 16 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\nP10IGFPX Small (10\") Gluten Free Crust Ultimate Pepperoni $11.99 10 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\nP12IPAPX Medium (12\") Handmade Pan Ultimate Pepperoni $14.99 12 S_PIZPX {'X': '1', 'C': '1', 'P': '1.5', 'Cs': '1', 'Cp': '1'}\n```\nTo order, e.g., the Small Hand Tossed Ultimate Pepperoni pizza, set MY_ORDER_ITEMS=10SCPFEAST in your PIZZAVARS file. To order more than 1 item, list all the desired items in a comma-separated list (i.e. MY_ORDER_ITEMS=10SCPFEAST,20BCOKE)\n\n## Usage\nIf you followed the instructions in Dependencies and Installation and the extensions are listed, you should be good to go! Just start your notebook as per usual:\n```bash\njupyter notebook My_Notebook.ipynb\n```\nA new button will appear on your toolbar that looks like this: \n![pizza button](https://github.com/peterskipper/pizzabutton/raw/master/images/button.png \"Pizza Delivery Button\")\n\n\nClick the button once and a modal will pop up telling you your order is on the way! Keep on coding & eating friend...\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/peterskipper/pizzabutton", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pizzabutton", "package_url": "https://pypi.org/project/pizzabutton/", "platform": "", "project_url": "https://pypi.org/project/pizzabutton/", "project_urls": { "Homepage": "https://github.com/peterskipper/pizzabutton" }, "release_url": "https://pypi.org/project/pizzabutton/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "A button on Jupyter's toolbar for pizza", "version": "0.0.5" }, "last_serial": 3561794, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "67ab4f883620dbfb3fc9f1a5fee5d126", "sha256": "518ae500ada415a8f2c6888f50120f1f394bc0f5cbd03f5c0caa5c48b40f2dd6" }, "downloads": -1, "filename": "pizzabutton-0.0.1.tar.gz", "has_sig": false, "md5_digest": "67ab4f883620dbfb3fc9f1a5fee5d126", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5377, "upload_time": "2018-02-07T20:18:55", "url": "https://files.pythonhosted.org/packages/85/d8/018d7f97c1d5d88df8af4b6cda321179ab6036efa4b7965537ae6d4caabe/pizzabutton-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1f5d661289ec50af94ecda6404eebff8", "sha256": "66ca79d482a41a9a8ef77d27de74fbd0bed3bde17b51bb99f2cdf2916c2812af" }, "downloads": -1, "filename": "pizzabutton-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1f5d661289ec50af94ecda6404eebff8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5417, "upload_time": "2018-02-07T20:35:32", "url": "https://files.pythonhosted.org/packages/8c/5b/8c7913ff808d68ac6bcc4081288f1fb9219ca507387119f20448427b7722/pizzabutton-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "50d31dbf5049d86a2a103ce65e0e592b", "sha256": "b1bceeac40fbc813b2e6bb2156c318971561e5a74e593a5c116216fe68eea142" }, "downloads": -1, "filename": "pizzabutton-0.0.3.tar.gz", "has_sig": false, "md5_digest": "50d31dbf5049d86a2a103ce65e0e592b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5407, "upload_time": "2018-02-07T21:01:38", "url": "https://files.pythonhosted.org/packages/a8/ac/5ec45a3986a186ca19a4fe49cfc81d9e783297b7467829ab8061ca18ae39/pizzabutton-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "56c01720957ce0c7631fe42fdb0035a6", "sha256": "d8d5eefa63c9186880ac75da13564a73186278844c713903c63e40e1d4cd1434" }, "downloads": -1, "filename": "pizzabutton-0.0.4.tar.gz", "has_sig": false, "md5_digest": "56c01720957ce0c7631fe42fdb0035a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5435, "upload_time": "2018-02-07T21:11:40", "url": "https://files.pythonhosted.org/packages/bf/a8/5577c3881320e5f4cdf39ad18d52699b3e75ec4b70a0bc7f6a7ec880486c/pizzabutton-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "d000e07ada10572ab483a608b9f0f576", "sha256": "15900870e7a6ba6986fb5da59cb67a79404526198053634a7fd43190e1d26454" }, "downloads": -1, "filename": "pizzabutton-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d000e07ada10572ab483a608b9f0f576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5454, "upload_time": "2018-02-07T21:22:04", "url": "https://files.pythonhosted.org/packages/88/8f/125624bf215af0f32b043c91541015e38e5070178b21114ce0597b216bd6/pizzabutton-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d000e07ada10572ab483a608b9f0f576", "sha256": "15900870e7a6ba6986fb5da59cb67a79404526198053634a7fd43190e1d26454" }, "downloads": -1, "filename": "pizzabutton-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d000e07ada10572ab483a608b9f0f576", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5454, "upload_time": "2018-02-07T21:22:04", "url": "https://files.pythonhosted.org/packages/88/8f/125624bf215af0f32b043c91541015e38e5070178b21114ce0597b216bd6/pizzabutton-0.0.5.tar.gz" } ] }