A Python interface to boardgamegeek.com's API
Project description
Introduction
boardgamegeek is a Python library which makes it easy to access data from BoardGameGeek using their official XML API.
It’s an almost completely rewritten fork of libBGG.
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")
...
安卓纪元:矩阵潜袭
If you want to use the disk cache:
>>> bgg = BoardGameGeek(cache="sqlite:///tmp/cache.db?ttl=3600&fast_save=0")
>>> g = bgg.game("Celtica")
>>> g.id
21293
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
Improve documentation :)
Improve unit testing
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.9.0.tar.gz
.
File metadata
- Download URL: boardgamegeek-0.9.0.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b3eac21598efc1f028f698d84ab795cd41e98cc67be43fa093cd5142dfdc572 |
|
MD5 | 7239a4afd98674fd8e70762ed6a75e61 |
|
BLAKE2b-256 | c8e463ed72d728cb19b7c0dc0b58eced3d2db7bb15fb232c6aa3ded43a57ce73 |