Skip to main content

A simple Python client of Hotpepper API

Project description

hotpepper-gourmet

PyPI version workflow badge workflow badge

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hotpepper_gourmet-0.0.5.tar.gz (57.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hotpepper_gourmet-0.0.5-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

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

Hashes for hotpepper_gourmet-0.0.5.tar.gz
Algorithm Hash digest
SHA256 d094ee49adc4fe0bb0ebe2423828dd78993b305d6dbac1cc458361239beeaccd
MD5 3a78f6dba7d9ee29fa8ea5902545a485
BLAKE2b-256 50e04061bd478ee9970a9de2057fb77e2243e1541f60d23a811ffd4e653f3d56

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotpepper_gourmet-0.0.5.tar.gz:

Publisher: publish.yml on paperlefthand/hotpepper-gourmet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hotpepper_gourmet-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for hotpepper_gourmet-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 22a965856b3f7cd4665e36ec787ad8978d424350f65a08c67183b301c628adc0
MD5 19120f32a27ad051807ff0d8c864a0ab
BLAKE2b-256 21006c0cc0cdee681d6cb68fdd58d0d88176bc5a32badc10d07e87d45304959d

See more details on using hashes here.

Provenance

The following attestation bundles were made for hotpepper_gourmet-0.0.5-py3-none-any.whl:

Publisher: publish.yml on paperlefthand/hotpepper-gourmet

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page