A Python interface to boardgamegeek.com's API
Project description
Introduction
boardgamegeek is a Python library which makes it easy to access data off BoardGameGeek using their official XML API.
It’s an almost completely rewritten fork of libBGG.
Features
This library exposes (as Python objects with properties) the following BoardGameGeek entities:
Users
Games
User collections
Player guilds
requests-cache is used for locally caching replies in order to reduce the amount of requests sent to the server.
Quick Install
To install boardgamegeek, just use pip:
> pip install boardgamegeek
Documentation
Documentation is available at http://boardgamegeek.readthedocs.org/
Usage
Here’s a quick usage example:
>>> from boardgamegeek import BoardGameGeek
>>> bgg = BoardGameGeek()
>>> g = bgg.game("Android: Netrunner")
>>> g.name
'Android: Netrunner'
>>> g.id
124742
>>> for n in g.alternative_names: print n.encode("utf-8")
...
安卓纪元:矩阵潜袭
To Do
Not all the information exposed by the official API is stored into the Python objects. Need to improve this.
Try to support the other sites from the boardgamegeek’s family
Allow better control for configuring the cache
Improve documentation :)
Contributions/suggestions are welcome.
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
File details
Details for the file boardgamegeek-0.0.8.tar.gz
.
File metadata
- Download URL: boardgamegeek-0.0.8.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b81b5fb732c6969caca2a870a9856d3767006ba75d0232934fe425beb04b2ea2 |
|
MD5 | d2c58f1e18f9a00aa379df9cf0aed912 |
|
BLAKE2b-256 | e3d4da30886b358b5cd4a70e36adea077368d03111b8e4032a8349e4a19c4a7d |