A simple Python client of Hotpepper API
Project description
hotpepper-gourmet
About
ホットペッパーグルメAPIのシンプルなクライアントライブラリです
How To Use
keyidの取得
ホットペッパーグルメAPIに登録し, token(keyid)を取得
サンプルコード
同期版
>>> from pygourmet import Api, Option
>>> api = Api(keyid=YOUR_KEYID)
>>> option = Option(lat=35.170915, lng=136.8793482, keyword="ラーメン", range=4, count=3)
>>> shops = api.search(option)
>>> len(shops)
3
>>> shops[0].name
'shop name'
非同期版
async def call_search_async():
shops = await api.search_async(option=option)
print(len(shops))
loop = asyncio.get_event_loop()
loop.run_until_complete(call_search_async())
Powered by ホットペッパー Webサービス
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hotpepper_gourmet-0.0.5.tar.gz.
File metadata
- Download URL: hotpepper_gourmet-0.0.5.tar.gz
- Upload date:
- Size: 57.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d094ee49adc4fe0bb0ebe2423828dd78993b305d6dbac1cc458361239beeaccd
|
|
| MD5 |
3a78f6dba7d9ee29fa8ea5902545a485
|
|
| BLAKE2b-256 |
50e04061bd478ee9970a9de2057fb77e2243e1541f60d23a811ffd4e653f3d56
|
Provenance
The following attestation bundles were made for hotpepper_gourmet-0.0.5.tar.gz:
Publisher:
publish.yml on paperlefthand/hotpepper-gourmet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotpepper_gourmet-0.0.5.tar.gz -
Subject digest:
d094ee49adc4fe0bb0ebe2423828dd78993b305d6dbac1cc458361239beeaccd - Sigstore transparency entry: 159288633
- Sigstore integration time:
-
Permalink:
paperlefthand/hotpepper-gourmet@14cec0f2341bca8ec31ee472a4432f6359da4e9d -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/paperlefthand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14cec0f2341bca8ec31ee472a4432f6359da4e9d -
Trigger Event:
push
-
Statement type:
File details
Details for the file hotpepper_gourmet-0.0.5-py3-none-any.whl.
File metadata
- Download URL: hotpepper_gourmet-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22a965856b3f7cd4665e36ec787ad8978d424350f65a08c67183b301c628adc0
|
|
| MD5 |
19120f32a27ad051807ff0d8c864a0ab
|
|
| BLAKE2b-256 |
21006c0cc0cdee681d6cb68fdd58d0d88176bc5a32badc10d07e87d45304959d
|
Provenance
The following attestation bundles were made for hotpepper_gourmet-0.0.5-py3-none-any.whl:
Publisher:
publish.yml on paperlefthand/hotpepper-gourmet
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hotpepper_gourmet-0.0.5-py3-none-any.whl -
Subject digest:
22a965856b3f7cd4665e36ec787ad8978d424350f65a08c67183b301c628adc0 - Sigstore transparency entry: 159288635
- Sigstore integration time:
-
Permalink:
paperlefthand/hotpepper-gourmet@14cec0f2341bca8ec31ee472a4432f6359da4e9d -
Branch / Tag:
refs/tags/v0.0.5 - Owner: https://github.com/paperlefthand
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@14cec0f2341bca8ec31ee472a4432f6359da4e9d -
Trigger Event:
push
-
Statement type: