Skip to main content

Simple clients for the Giant Bomb API.

Project description

Tests Coverage Release Drafter TestPyPi Release

Codecov PyPI Read the Docs

PyBomb

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

Currently Supported Resources:

  • games
  • game

Install

pip install pybomb

Examples

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

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

Documentation

The full documentation, including more examples can be found at https://pybomb.readthedocs.org

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

pybomb-0.2.4.tar.gz (7.4 kB view hashes)

Uploaded Source

Built Distribution

pybomb-0.2.4-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page