Skip to main content

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)

パッケージのビルドとアップロード

# pip install twine
# pip install wheel
# rm -rf dist/*
# python setup.py sdist
# python setup.py bdist_wheel
# twine upload --repository testpypi dist/*
# twine upload --repository pypi dist/*

Metadata

Release files for sakepedia 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sakepedia 0.1.1
File Size Uploaded Provenance
sakepedia-0.1.1.tar.gz 4.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for sakepedia 0.1.1
File Interpreter ABI Platform
sakepedia-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / sakepedia-0.1.1.tar.gz

Download URL sakepedia-0.1.1.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3420623075c3cacfc20a5bd63d34092a5ffb1879d1f85fc677c8531c9ba0859a
BLAKE2b-256 checksum
How to use checksums
0ec0f08c5d534735f09207dd540035c845b336d6e699f09a4190bafc854abdd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / sakepedia-0.1.1-py3-none-any.whl

Download URL sakepedia-0.1.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efbbb9ed722fe3f368071aec9b3f704296251ce050b8876e4bc24b3e66c93c64
BLAKE2b-256 checksum
How to use checksums
173ee24fcd6d93fc081bef7d62d2bc6f9f94ff380ef5249bf19cd5e5c2e3fad7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Security for sakepedia 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page