aiogmaps-0.0.2
توضیحات
Asyncio client library for Google Maps API Web Services
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiogmaps-0.0.2 |
| نام | aiogmaps |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Oleh Kuchuk |
| ایمیل نویسنده | kuchuklehjs@gmail.com |
| آدرس صفحه اصلی | https://github.com/hzlmn/aiogmaps |
| آدرس اینترنتی | https://pypi.org/project/aiogmaps/ |
| مجوز | MIT |
# aiogmaps
[](https://travis-ci.org/hzlmn/aiogmaps)
Asyncio client library for Google Maps API Web Services
## Requirements
- [googlemaps](https://github.com/googlemaps/google-maps-services-python) >= 3.0
## Getting Started
```sh
pip install aiogmaps
```
## Usage
### API Key
```python
import asyncio
from aiogmaps import Client
async def main(loop):
api_key = 'xxx'
async with Client(api_key, loop=loop) as client:
resp = await client.place(place_id='ChIJN1t_tDeuEmsRUsoyG83frY4')
print(resp)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
```
### Client ID & Secret
```python
import asyncio
from aiogmaps import Client
async def main(loop):
client_id = 'xxx'
client_secret = 'xxx'
async with Client(client_id=client_id, client_secret=client_secret, loop=loop) as client:
resp = await client.place(place_id='ChIJN1t_tDeuEmsRUsoyG83frY4')
print(resp)
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(main(loop))
```
## Documentation
This library works as a wrapper around official googlemaps library.
For detailed API reference
- https://developers.google.com/maps/documentation/
- https://googlemaps.github.io/google-maps-services-python/docs/
نیازمندی
| مقدار | نام |
|---|---|
| >=2.3.5 | aiohttp |
| >=3.0.0 | googlemaps |
نحوه نصب
نصب پکیج whl aiogmaps-0.0.2:
pip install aiogmaps-0.0.2.whl
نصب پکیج tar.gz aiogmaps-0.0.2:
pip install aiogmaps-0.0.2.tar.gz