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,
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
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() 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.