Zomatopy | A Python wrapper for the Zomato API | REST library
kandi X-RAY | Zomatopy Summary
kandi X-RAY | Zomatopy Summary
A Python wrapper for the Zomato API v2.1.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a list of establishment types
- Validate a key
- Check if rate limit exceeded
- Validate city id
- Get the details of a given restaurant
- Checks if the given recipe ID is valid
- Get a list of all collections for a given city
- Get a list of tuisines for a given city
- Returns a city id given a city name
- Get the name of a city
- Get a list of all available categories
Zomatopy Key Features
Zomatopy Examples and Code Snippets
category_dictionary = zomato.get_categories()
# city_name must be a string without numbers or special characters.
city_ID = zomato.get_city_ID(city_name)
# city_ID must be an integer.
city_name = zomato.get_city_name(city_ID)
# city_ID must be a
# latitude and longitude must be float or string representation of a float.
restaurant_dictionary = get_nearby_restaurants(latitude, longitude)
# restaurant_ID must be an integer.
restaurant_details = get_restaurant(restaurant_ID)
# restaurant_de
import zomatopy
config={
"user_key":"ZOMATO_API_KEY"
}
zomato = zomatopy.initialize_app(config)
Community Discussions
Trending Discussions on Zomatopy
QUESTION
In my Python Flask App I tried to install and use module zomatopy
after reading this:
https://github.com/sharadbhat/Zomatopy
After that I tried it in a simple code in my root route like this:
...ANSWER
Answered 2020-Aug-03 at 09:12When i use 'pip install zomatopy' to download and install module 'zomatopy', the name and content of the package installed by this method are not accurate.
(In the pip installation list of the current virtual environment, the package name is 'zomatopy-1.0.10.dist-info', not 'zomatopy'.).
You could try to download the 'zomatopy' in your link and put it in the same folder location as 'zomatopy-1.0.10.dist-info'.
If there is a wavy line, please reload VSCode.
In addition, pay attention to the use of virtual environments.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Zomatopy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page