Wrapper

A wrapper around several APIs. Response is a request object, which is much extendable for custom error handling. The Available APIs are: EANData Locu Spoonacular Walmart Zomato


Keywords
api, python, api-wrapper, barcode-api, ean-api, ean-client, locu-api, spoonacular-api, walmart-api, zomato-api
License
GPL-2.0+
Install
pip install Wrapper==1.1.0b1

Documentation

Wrapper

A wrapper around several APIs.

Response is a request object, which is much extendable for custom error handling.

The Available APIs are:

EANData
Locu
Spoonacular
Walmart
Zomato

API Methods

EANData

from wrapper import EANData

x = EANData'API_KEY')

x.get_barcode_data('ean_code')

Locu

from wrapper import Locu

x = Locu('API_KEY')

search_restaurant(**kwargs)
get_restaurant_details(venue_id)
get_restuarants_with_menu(query)

Spoonacular

from wrapper import Spoonacular

x = Spoonacular('API_KEY')

get_recipe_by_ingredients(ingredients='ingredient1,ingredient2,ingredient3')
get_recipe_by_id(recipe_id='recipe_id')
generate_meal_plan(**kwargs)
map_ingredients_to_grocery(data)
get_random_recipe(**kwargs)
search_recipies(**kwargs)

Walmart

from wrapper import Walmart

x = Walmart('API_KEY')

search_item(term)
get_food_products(category_id)
product_recommendation(product_id)
product_history(product_id)
get_item_review(product_id)
get_best_sellers(category_id)
get_rollback_items(category_id)
get_clearance_items(category_id)
store_locator(**kwargs)
# kwargs examples for store_locator
# city :string ('New York')
# zip :string (10001)
# cordinates :string ('lat,lon') ('40.7128,74.0059')

Zomato

from wrapper import Zomato

x = Zomato('API_KEY')

get_categories()
get_city(**kwargs)
get_collections(**kwargs)
get_cuisines(**kwargs)
get_restaurant_types(**kwargs)
search(**kwargs)
get_top_restaurants(location_id, entity_type='city')
get_daily_menu(restaurant_id)
geocode(latlon)
get_restaurant_details(restaurant_id)
get_restaurant_review(restaurant_id)