{ "info": { "author": "aluttik", "author_email": "aluttik@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "pizzapi\n=======\n\nDescription\n-----------\n\nThis is a Python wrapper for the Dominos Pizza API.\n\nIt's a port of `the pizzapi node.js module `_ written by `RIAEvangelist `_.\n\nQuick Start\n-----------\n\nPull the module into your namespace:\n\n.. code-block:: python\n\n from pizzapi import *\n\nFirst, construct a ``Customer`` object and set the customer's address:\n\n.. code-block:: python\n\n customer = Customer('Donald', 'Trump', 'donald@whitehouse.gov', '2024561111')\n address = Address('700 Pennsylvania Avenue NW', 'Washington', 'DC', '20408')\n\nThen, find a store that will deliver to the address.\n\n.. code-block:: python\n\n store = address.closest_store()\n\nIn order to add items to your order, you'll need the items' product codes.\nTo find the codes, get the menu from the store, then search for items you want to add.\nYou can do this by asking your ``Store`` object for its ``Menu``.\n\n.. code-block:: python\n\n menu = store.get_menu()\n\nThen search ``menu`` with ``menu.search``. For example, running this command:\n\n.. code-block:: python\n\n menu.search(Name='Coke')\n\nShould print this to the console:\n\n.. code-block:: text\n\n 20BCOKE 20oz Bottle Coke\u00ae $1.89\n 20BDCOKE 20oz Bottle Diet Coke\u00ae $1.89\n D20BZRO 20oz Bottle Coke Zero\u2122 $1.89\n 2LDCOKE 2-Liter Diet Coke\u00ae $2.99\n 2LCOKE 2-Liter Coke\u00ae $2.99\n\nAfter you've found your items' product codes, you can create an ``Order`` object add add your items:\n\n.. code-block:: python\n\n order = Order(store, customer, address)\n order.add_item('P12IPAZA') # add a 12-inch pan pizza\n order.add_item('MARINARA') # with an extra marinara cup\n order.add_item('20BCOKE') # and a 20oz bottle of coke\n\nYou can remove items as well!\n\n.. code-block:: python\n\n order.remove_item('20BCOKE')\n\nWrap your credit card information in a ``PaymentObject``:\n\n.. code-block:: python\n\n card = PaymentObject('4100123422343234', '0115', '777', '90210')\n\nAnd that's it! Now you can place your order.\n\n.. code-block:: python\n\n order.place(card)\n\nOr if you're just testing and don't want to actually order something, use ``.pay_with``.\n\n.. code-block:: python\n\n order.pay_with(card)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/aluttik/pizzapi", "keywords": "dominos pizza api", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pizzapi", "package_url": "https://pypi.org/project/pizzapi/", "platform": "", "project_url": "https://pypi.org/project/pizzapi/", "project_urls": { "Homepage": "https://github.com/aluttik/pizzapi" }, "release_url": "https://pypi.org/project/pizzapi/0.0.6/", "requires_dist": null, "requires_python": "", "summary": "A Python wrapper for the Dominos Pizza API", "version": "0.0.6" }, "last_serial": 5712726, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "1be2148f793eff4fcc11f7d4fc2319ec", "sha256": "d3037c588e8f3f6683fef4769f9d65a46a22216f6b8e6af060fda00fd194336b" }, "downloads": -1, "filename": "pizzapi-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1be2148f793eff4fcc11f7d4fc2319ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5917, "upload_time": "2017-11-12T01:29:32", "url": "https://files.pythonhosted.org/packages/e1/2f/5af0acb0ab92f36573af9fdc1e6c15464f5022ad1d54463fe2f29ce2d536/pizzapi-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "58f2400d5364af3c0dcfebb46edca79b", "sha256": "e5e041d552d7c4e45392973da227e00ab8a05e3b8d437160c911e60733cfdd9d" }, "downloads": -1, "filename": "pizzapi-0.0.3.tar.gz", "has_sig": false, "md5_digest": "58f2400d5364af3c0dcfebb46edca79b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5950, "upload_time": "2017-11-16T04:39:02", "url": "https://files.pythonhosted.org/packages/f3/4e/4641b8934a3a1d50875df20f51a809ac0ed3b1b2bb300365f98e843d57e4/pizzapi-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "883254b4d5b5384d2a49a72fffbb4519", "sha256": "adf459cc0305498f8eb7435e440caeb7a1a1aaf5f40756767a47ebd71f347dd6" }, "downloads": -1, "filename": "pizzapi-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "883254b4d5b5384d2a49a72fffbb4519", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 14948, "upload_time": "2019-02-27T19:51:13", "url": "https://files.pythonhosted.org/packages/02/33/7df35906743dd9bda14a7662f7f9104db96719ef307a5b4be430359902dd/pizzapi-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3c4b3623e37a9a8ece10866e67764ea7", "sha256": "02dfbecf704f550d09b3e4dedd9cdda35a8259aad5e1e15b4d9ec6dd7545f584" }, "downloads": -1, "filename": "pizzapi-0.0.4.tar.gz", "has_sig": false, "md5_digest": "3c4b3623e37a9a8ece10866e67764ea7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11511, "upload_time": "2019-02-27T19:51:14", "url": "https://files.pythonhosted.org/packages/8e/63/0f5622d2d8bb4d67028252b3d448a6b2c7ab1efaf8a91a2f4912fdbfac65/pizzapi-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "a5730b39d4ac44f115127fd1119e1a65", "sha256": "abc181bcfec477a0fd993d4ad2cab2233c515758ebd7181a8906c2e9064d228e" }, "downloads": -1, "filename": "pizzapi-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a5730b39d4ac44f115127fd1119e1a65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12608, "upload_time": "2019-08-22T02:07:03", "url": "https://files.pythonhosted.org/packages/27/23/b952ddfc2ea23a70b4d8145f1a0e39013d103c5ad956ee02424793a109d7/pizzapi-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "450f1eb5d3f33abe3fb97ec35b423e94", "sha256": "c50787cef8c979d6afedd9021b1e215546111045b327ee421a6bfa4359834715" }, "downloads": -1, "filename": "pizzapi-0.0.6.tar.gz", "has_sig": false, "md5_digest": "450f1eb5d3f33abe3fb97ec35b423e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11435, "upload_time": "2019-08-22T02:18:03", "url": "https://files.pythonhosted.org/packages/72/d5/89ccc0c917d07b8e5dfa3a8e500818bebe04d34842e9b90c76c6ef06a2ad/pizzapi-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "450f1eb5d3f33abe3fb97ec35b423e94", "sha256": "c50787cef8c979d6afedd9021b1e215546111045b327ee421a6bfa4359834715" }, "downloads": -1, "filename": "pizzapi-0.0.6.tar.gz", "has_sig": false, "md5_digest": "450f1eb5d3f33abe3fb97ec35b423e94", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11435, "upload_time": "2019-08-22T02:18:03", "url": "https://files.pythonhosted.org/packages/72/d5/89ccc0c917d07b8e5dfa3a8e500818bebe04d34842e9b90c76c6ef06a2ad/pizzapi-0.0.6.tar.gz" } ] }