ezapi-yelp-0.4.8
توضیحات
A Python wrapper for Yelp API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ezapi-yelp-0.4.8 |
| نام | ezapi-yelp |
| نسخه کتابخانه | 0.4.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Zeheng Li <imzehengl@gmail.com>'] |
| نویسنده | - |
| ایمیل نویسنده | Zeheng Li <imzehengl@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ezapi-yelp/ |
| مجوز | - |
<div align="center">
<img src="https://cdn3.iconfinder.com/data/icons/data-sharing-and-cloud-lineal-style/512/apiprogrammingdevolperinterfaceappcomputer-512.png" alt="logo" height="196">
<img src="https://cdn2.iconfinder.com/data/icons/social-media-applications/64/social_media_applications_28-yelp-512.png" alt="yelp" height="96">
</div>
# ezapi-yelp
[](https://github.com/zehengl/ezapi-yelp/actions/workflows/pytest.yml)
[](https://github.com/ambv/black)


[](https://pypi.python.org/pypi/ezapi-yelp)
[](https://pepy.tech/project/ezapi-yelp)
A Python wrapper for [Yelp Fusion API](https://www.yelp.com/developers/documentation/v3/get_started)
## Install
From [PyPi](https://pypi.org/project/ezapi-yelp/)
pip install ezapi-yelp
From [GitHub](https://github.com/zehengl/ezapi-yelp)
pip install git+https://github.com/zehengl/ezapi-yelp.git
## Usage
```python
from yelp import YelpFusion
token = "..."
yelp_fusion = YelpFusion(token)
print(yelp_fusion.business_search(location="San Francisco"))
print(yelp_fusion.transaction_search("delivery", location="San Francisco"))
print(yelp_fusion.business_details("WavvLdfdP6g8aZTtbBQHTw"))
print(
yelp_fusion.business_match(
name="Gary Danko",
address1="800 N Point St",
city="San Francisco",
state="CA",
country="US",
)
)
print(yelp_fusion.reviews("WavvLdfdP6g8aZTtbBQHTw"))
print(
yelp_fusion.autocomplete(
text="Gary Danko", latitude=37.80587, longitude=-122.42058
)
)
print(yelp_fusion.all_categories())
print(yelp_fusion.category_details("hotdogs"))
print(yelp_fusion.event_lookup("oakland-saucy-oakland-restaurant-pop-up"))
print(yelp_fusion.event_search(location="Oakland"))
print(yelp_fusion.featured_event(location="Oakland"))
```
## Test
git clone git@github.com:zehengl/ezapi-yelp.git
export token="..."
cd ezapi-yelp
python setup.py test
Use `$Env:token="..."` to set the api key environment variable on Windows.
## Credits
- [Icon][1] by [Photolio][2]
- [Icon][3] by [tulpahn][4]
[1]: https://www.iconfinder.com/icons/4904814/api_app_computer_devolper_interface_programming_icon
[2]: https://www.iconfinder.com/Muhammad_Auns
[3]: https://www.iconfinder.com/icons/4102600/applications_media_social_yelp_icon
[4]: https://www.iconfinder.com/tulpahn
نیازمندی
| مقدار | نام |
|---|---|
| ==2.28.2 | requests |
| ==1.15.0 | wrapt |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl ezapi-yelp-0.4.8:
pip install ezapi-yelp-0.4.8.whl
نصب پکیج tar.gz ezapi-yelp-0.4.8:
pip install ezapi-yelp-0.4.8.tar.gz