A Python API for boardgamegeek.com
Project description
BGG-API
A Python API for boardgamegeek.com
Installation
pip install bgg-api
Usage
from boardgamegeek import BGGClient
bgg = BGGClient()
game = bgg.game("Monopoly")
print(game.year) # 1935
print(game.rating_average) # 4.36166
Development
# Install dependencies
pip install -r requirements/develop.txt
# Install pre-commit hooks
pre-commit install
# Format XML files
cd test/xml
find . -exec sh -c 'xmllint --format "$1" > "$1.tmp" && mv "$1.tmp" "$1"' _ {} \;
# Run tests
pytest .
# Run tests with tox
tox
Publishing
# Bump version (patch, minor, major)
bump2version patch
# Push to github
git push --tags origin master
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
bgg-api-1.1.6.tar.gz
(37.6 kB
view hashes)
Built Distribution
Close
Hashes for bgg_api-1.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6621e6acea42092a9a34ec9f9800fa2b1dd6db06873c926965822ec13ed374d |
|
MD5 | 4b625681fc7d66a28539a05f8b50f5f4 |
|
BLAKE2b-256 | 3a17bd9f6830c543c11460ff91b73aba062452cf7cdfd45198b70e9d9ad20af5 |