Coder Social home page Coder Social logo

slapbot / zomato-sdk Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 23 KB

Unofficial Python SDK written for Zomato API

Home Page: https://developers.zomato.com/documentation

License: MIT License

Python 100.00%
python zomato sdk sdk-python restaurants restaurant food zomato-api zomato-api-wrapper

zomato-sdk's Introduction

Zomato SDK

Installation

Using pip:

pip install zomato-sdk

This is an unofficial SDK for Zomato.

Usage is as simple as it gets:

from zomato import Zomato
z = Zomato("YOUR-API-KEY")

Now there are three objects presented namely, common, location and restaurant as listed at Developers

common = z.common
location = z.location
restaurant = z.restaurant

Now Each object has different methods as listed in documentation section of Zomato API, namely

  • Common
    • get_categories
    • get_cities
    • get_collections
    • get_cuisines
    • get_establishments
    • get_geocode
  • Location
    • get_location_details
    • get_locations
  • Restaurant
    • get_daily_menu
    • get_restaurant
    • get_reviews
    • search

All of them takes parameters as listed in Documentation section of Zomato API : https://developers.zomato.com/documentation (except the user-key which is initialized as headers)

The best thing about it is that everything is modular, and connected to each other, letting you do things like:

city = z.common.get_cities()[0]
city.get_collections()

Tests are written to give an idea on how the API works, do check them to get a clear understanding on how to use the sdk.

Documentation about each class explicitly will be released by this week.

zomato-sdk's People

Contributors

slapbot avatar splashx avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

splashx ctrengove

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.