boardgamegeek - A Python API for boardgamegeek.com
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.
Metadata
Release files for boardgamegeek 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boardgamegeek-0.10.0.tar.gz | 26.2 kB | Details |
Release files / boardgamegeek-0.10.0.tar.gz
| Download URL | boardgamegeek-0.10.0.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54ddb2dc43e954a27320b7b63bdb2d59a8ced53b4946841a3391035da155909a
|
|
BLAKE2b-256 checksum How to use checksums |
63dd90f4ef2ad887a4cba9413d84cec36b2cc01576def25e5d508b064a6c69c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |