sakepedia: Sakepedia API
Project description
Sakepedia
SakepediaのAPIをプログラムから利用しやすくするためのPythonSDK
Sakepediaはみんなでつくる日本酒オープンデータです。 Nuxt.js版が以下で稼働しています。
https://sakepedia.code4sake.org/
このサイトのAPIにPythonからアクセスするパッケージです。
機能
- 酒蔵データの取得
- 銘柄データの取得
- 日本酒データの取得、更新、登録
更新および登録には、Sakepediaへのユーザー登録とJWTの発行が必要です。 JWTの有効期限にご注意ください。
使用方法
日本酒データの登録、既にあれば更新
JWT = "JWT issued with your own Sakepedia account"
api = sakepedia.SakepediaAPI(JWT)
sake = sakepedia.SakeData()
sake.brewery = "test brewery"
sake.brand = "test brand"
sake.url = "https://testbrewery.co.jp/testbrand/sake"
sake.name = "test sake bottle"
sake.description = "test description"
res = api.saveSakeData(sake)
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
sakepedia-0.0.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for sakepedia-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4885de475b9cf07ef04876cf88fbddbf410934b4c1ab7d0a301100b8fb55b90c |
|
MD5 | 3a58c7e19da0874d07f1c9fd34196df2 |
|
BLAKE2b-256 | d387c2698a9027a6868f8935fda8fa77a483ac808a2a038f3c4028c30ac5f9cb |