From 0a0cea6c999f08e9908cf643493dfabf064dc496 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 3 Apr 2019 16:29:28 +0530 Subject: Removed files --- PyAto_navanchauhan.egg-info/PKG-INFO | 16 ------ PyAto_navanchauhan.egg-info/SOURCES.txt | 7 --- PyAto_navanchauhan.egg-info/dependency_links.txt | 1 - PyAto_navanchauhan.egg-info/top_level.txt | 1 - __pycache__/pyato.cpython-37.pyc | Bin 2025 -> 0 bytes build/lib/PyAto/PyAto.py | 59 ----------------------- build/lib/PyAto/__init__.py | 59 ----------------------- dist/PyAto-navanchauhan-0.0.1.tar.gz | Bin 1560 -> 0 bytes dist/PyAto-navanchauhan-0.0.2.tar.gz | Bin 1575 -> 0 bytes dist/PyAto-navanchauhan-0.0.3.tar.gz | Bin 1490 -> 0 bytes dist/PyAto_navanchauhan-0.0.1-py3-none-any.whl | Bin 2958 -> 0 bytes dist/PyAto_navanchauhan-0.0.1-py3.7.egg | Bin 3021 -> 0 bytes dist/PyAto_navanchauhan-0.0.2-py3-none-any.whl | Bin 3447 -> 0 bytes dist/PyAto_navanchauhan-0.0.2-py3.7.egg | Bin 4163 -> 0 bytes dist/PyAto_navanchauhan-0.0.3-py3-none-any.whl | Bin 3447 -> 0 bytes 15 files changed, 143 deletions(-) delete mode 100644 PyAto_navanchauhan.egg-info/PKG-INFO delete mode 100644 PyAto_navanchauhan.egg-info/SOURCES.txt delete mode 100644 PyAto_navanchauhan.egg-info/dependency_links.txt delete mode 100644 PyAto_navanchauhan.egg-info/top_level.txt delete mode 100644 __pycache__/pyato.cpython-37.pyc delete mode 100644 build/lib/PyAto/PyAto.py delete mode 100644 build/lib/PyAto/__init__.py delete mode 100644 dist/PyAto-navanchauhan-0.0.1.tar.gz delete mode 100644 dist/PyAto-navanchauhan-0.0.2.tar.gz delete mode 100644 dist/PyAto-navanchauhan-0.0.3.tar.gz delete mode 100644 dist/PyAto_navanchauhan-0.0.1-py3-none-any.whl delete mode 100644 dist/PyAto_navanchauhan-0.0.1-py3.7.egg delete mode 100644 dist/PyAto_navanchauhan-0.0.2-py3-none-any.whl delete mode 100644 dist/PyAto_navanchauhan-0.0.2-py3.7.egg delete mode 100644 dist/PyAto_navanchauhan-0.0.3-py3-none-any.whl diff --git a/PyAto_navanchauhan.egg-info/PKG-INFO b/PyAto_navanchauhan.egg-info/PKG-INFO deleted file mode 100644 index cfc6167..0000000 --- a/PyAto_navanchauhan.egg-info/PKG-INFO +++ /dev/null @@ -1,16 +0,0 @@ -Metadata-Version: 2.1 -Name: PyAto-navanchauhan -Version: 0.0.3 -Summary: Python Wrapper for Zomato API -Home-page: https://github.com/navanchauhan/PyAto -Author: Navan Chauhan -Author-email: navanchauhan@gmail.com -License: UNKNOWN -Description: # PyAto - A Python Wrapper for the Zomato API - -Platform: UNKNOWN -Classifier: Programming Language :: Python :: 3 -Classifier: License :: OSI Approved :: MIT License -Classifier: Operating System :: OS Independent -Description-Content-Type: text/markdown diff --git a/PyAto_navanchauhan.egg-info/SOURCES.txt b/PyAto_navanchauhan.egg-info/SOURCES.txt deleted file mode 100644 index 05ed769..0000000 --- a/PyAto_navanchauhan.egg-info/SOURCES.txt +++ /dev/null @@ -1,7 +0,0 @@ -README.md -setup.py -PyAto/__init__.py -PyAto_navanchauhan.egg-info/PKG-INFO -PyAto_navanchauhan.egg-info/SOURCES.txt -PyAto_navanchauhan.egg-info/dependency_links.txt -PyAto_navanchauhan.egg-info/top_level.txt \ No newline at end of file diff --git a/PyAto_navanchauhan.egg-info/dependency_links.txt b/PyAto_navanchauhan.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/PyAto_navanchauhan.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/PyAto_navanchauhan.egg-info/top_level.txt b/PyAto_navanchauhan.egg-info/top_level.txt deleted file mode 100644 index 904ab14..0000000 --- a/PyAto_navanchauhan.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -PyAto diff --git a/__pycache__/pyato.cpython-37.pyc b/__pycache__/pyato.cpython-37.pyc deleted file mode 100644 index 8b9262c..0000000 Binary files a/__pycache__/pyato.cpython-37.pyc and /dev/null differ diff --git a/build/lib/PyAto/PyAto.py b/build/lib/PyAto/PyAto.py deleted file mode 100644 index 08d05f8..0000000 --- a/build/lib/PyAto/PyAto.py +++ /dev/null @@ -1,59 +0,0 @@ -import requests - -#We set the headers globally as the header remains the same for almmost all requests -def setAPIKey(secret): - apikey = secret - global headers - headers = { - 'Accept': 'application/json', - 'user-key': apikey, - } - - -# Get Categories Function - -def getCategories(): - response = requests.get('https://developers.zomato.com/api/v2.1/categories', headers=headers) - return response.json() - -# Get Cities function. Only takes City Name. Returns JSON - -def getCities(name): - params = (('q', name),) - response = requests.get('https://developers.zomato.com/api/v2.1/cities', headers=headers, params=params) - return response.json()['location_suggestions'][0] - -# Get Collections Function. Only takes City ID. Returns JSON - -def getCollections(city_id): - params = (('city_id', city_id),) - response = requests.get('https://developers.zomato.com/api/v2.1/collections', headers=headers, params=params) - return response.json() - -# Get Cuisines Function. Only takes City ID. Returns JSON - -def getCuisines(city_id): - params = (('city_id', city_id),) - response = requests.get('https://developers.zomato.com/api/v2.1/cuisines', headers=headers, params=params) - return response.json() - -# Get Establishments Function. Only takes City ID. Returns JSON - -def getEstablishments(city_id): - params = (('city_id', '1'),) - response = requests.get('https://developers.zomato.com/api/v2.1/establishments', headers=headers, params=params) - return response.json() - -# Geocoding Function. Takes Latitude and Longitude. Returns JSON - -def getGeocode(lat, lon): - params = (('lat', lat),('lon', lon),) - response = requests.get('https://developers.zomato.com/api/v2.1/geocode', headers=headers, params=params) - return response.json() - -# Gets the City ID, Takes City Name and returns integer - -def getCityID(name): - params = (('q', name),) - response = requests.get('https://developers.zomato.com/api/v2.1/cities', headers=headers, params=params) - return response.json()['location_suggestions'][0]['id'] diff --git a/build/lib/PyAto/__init__.py b/build/lib/PyAto/__init__.py deleted file mode 100644 index 4757eaf..0000000 --- a/build/lib/PyAto/__init__.py +++ /dev/null @@ -1,59 +0,0 @@ -name = "PyAto" - -def setAPIKey(secret): - apikey = secret - global headers - headers = { - 'Accept': 'application/json', - 'user-key': apikey, - } - - -# Get Categories Function - -def getCategories(): - response = requests.get('https://developers.zomato.com/api/v2.1/categories', headers=headers) - return response.json() - -# Get Cities function. Only takes City Name. Returns JSON - -def getCities(name): - params = (('q', name),) - response = requests.get('https://developers.zomato.com/api/v2.1/cities', headers=headers, params=params) - return response.json()['location_suggestions'][0] - -# Get Collections Function. Only takes City ID. Returns JSON - -def getCollections(city_id): - params = (('city_id', city_id),) - response = requests.get('https://developers.zomato.com/api/v2.1/collections', headers=headers, params=params) - return response.json() - -# Get Cuisines Function. Only takes City ID. Returns JSON - -def getCuisines(city_id): - params = (('city_id', city_id),) - response = requests.get('https://developers.zomato.com/api/v2.1/cuisines', headers=headers, params=params) - return response.json() - -# Get Establishments Function. Only takes City ID. Returns JSON - -def getEstablishments(city_id): - params = (('city_id', '1'),) - response = requests.get('https://developers.zomato.com/api/v2.1/establishments', headers=headers, params=params) - return response.json() - -# Geocoding Function. Takes Latitude and Longitude. Returns JSON - -def getGeocode(lat, lon): - params = (('lat', lat),('lon', lon),) - response = requests.get('https://developers.zomato.com/api/v2.1/geocode', headers=headers, params=params) - return response.json() - -# Gets the City ID, Takes City Name and returns integer - -def getCityID(name): - params = (('q', name),) - response = requests.get('https://developers.zomato.com/api/v2.1/cities', headers=headers, params=params) - return response.json()['location_suggestions'][0]['id'] - diff --git a/dist/PyAto-navanchauhan-0.0.1.tar.gz b/dist/PyAto-navanchauhan-0.0.1.tar.gz deleted file mode 100644 index 1930746..0000000 Binary files a/dist/PyAto-navanchauhan-0.0.1.tar.gz and /dev/null differ diff --git a/dist/PyAto-navanchauhan-0.0.2.tar.gz b/dist/PyAto-navanchauhan-0.0.2.tar.gz deleted file mode 100644 index c378f0b..0000000 Binary files a/dist/PyAto-navanchauhan-0.0.2.tar.gz and /dev/null differ diff --git a/dist/PyAto-navanchauhan-0.0.3.tar.gz b/dist/PyAto-navanchauhan-0.0.3.tar.gz deleted file mode 100644 index 3049e34..0000000 Binary files a/dist/PyAto-navanchauhan-0.0.3.tar.gz and /dev/null differ diff --git a/dist/PyAto_navanchauhan-0.0.1-py3-none-any.whl b/dist/PyAto_navanchauhan-0.0.1-py3-none-any.whl deleted file mode 100644 index 8b2ca14..0000000 Binary files a/dist/PyAto_navanchauhan-0.0.1-py3-none-any.whl and /dev/null differ diff --git a/dist/PyAto_navanchauhan-0.0.1-py3.7.egg b/dist/PyAto_navanchauhan-0.0.1-py3.7.egg deleted file mode 100644 index da02a54..0000000 Binary files a/dist/PyAto_navanchauhan-0.0.1-py3.7.egg and /dev/null differ diff --git a/dist/PyAto_navanchauhan-0.0.2-py3-none-any.whl b/dist/PyAto_navanchauhan-0.0.2-py3-none-any.whl deleted file mode 100644 index d64149d..0000000 Binary files a/dist/PyAto_navanchauhan-0.0.2-py3-none-any.whl and /dev/null differ diff --git a/dist/PyAto_navanchauhan-0.0.2-py3.7.egg b/dist/PyAto_navanchauhan-0.0.2-py3.7.egg deleted file mode 100644 index 2d2d96b..0000000 Binary files a/dist/PyAto_navanchauhan-0.0.2-py3.7.egg and /dev/null differ diff --git a/dist/PyAto_navanchauhan-0.0.3-py3-none-any.whl b/dist/PyAto_navanchauhan-0.0.3-py3-none-any.whl deleted file mode 100644 index c5b6922..0000000 Binary files a/dist/PyAto_navanchauhan-0.0.3-py3-none-any.whl and /dev/null differ -- cgit v1.2.3