Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Clients for the Giant Bomb API

Project description

https://img.shields.io/travis/steveYeah/PyBomb.svg?branch=master

PyBomb

Simple clients for the Giant Bomb API. http://www.giantbomb.com/api/

This will go into version 1.0 when all resources are supported.

Currently Supported Resources:

  • games
  • game

Install

pip install pybomb

Examples

GamesClient - search

import pybomb

my_key = your_giant_bomb_api_key
games_client = pybomb.GamesClient(my_key)

return_fields = ('id', 'name', 'platforms')
limit = 10
offset = 5
sort_by = 'name'
filter_by = {'platforms': pybomb.PS3}

response = games_client.search(
   filter_by=filter_by,
   return_fields=return_fields,
   sort_by=sort_by,
   desc=True,
   limit=limit,
   offset=offset
)

print response.results
print response.uri
print response.num_page_results
print response.num_total_results

GamesClient - quick_search

import pybomb

my_key = your_giant_bomb_api_key
games_client = pybomb.GamesClient(my_key)

response = games_client.quick_search(
  name='call of duty',
  platform=pybomb.PS3,
  sort_by='original_release_date',
  desc=True
)

print response.results
print response.uri
print response.num_page_results
print response.num_total_results

More examples for other clients can be found in the documentation https://pybomb.readthedocs.org

To see a working example of Pybomb, take a look at the example project GameSearch https://github.com/steveYeah/gamesearch

Project details


Release history Release notifications

This version
History Node

0.2.0

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pybomb-0.2.0-py3-none-any.whl (7.0 kB) Copy SHA256 hash SHA256 Wheel py3 Jun 10, 2018
pybomb-0.2.0.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None Jun 10, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page