Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/woctezuma/gamedatacrunch

gdc: an API for GameDataCrunch. Available on PyPI.
https://github.com/woctezuma/gamedatacrunch

gamedatacrunch gamedatacrunch-api gdc gdc-api steam

Last synced: 21 days ago
JSON representation

gdc: an API for GameDataCrunch. Available on PyPI.

Awesome Lists containing this project

README

        

# gdc: an API for GameDataCrunch

[![PyPI status][pypi-image]][pypi]
[![Build status][build-image]][build]
[![Code coverage][codecov-image]][codecov]
[![Code Quality][codacy-image]][codacy]

This repository contains Python code to download data through [GameDataCrunch API][gamedatacrunch].

## Installation

The code is packaged for [PyPI][pypi], so that the installation consists in running:
```bash
pip install gamedatacrunch
```

## Usage

### Load data

Data is locally cached to `data/%Y%m%d_gamedatacrunch.json` for offline reuse.
```python
import gamedatacrunch as gdc

data = gdc.load()
```

### Load a list of appIDs

For a list of appIDs (`int`), without the matching app names:
```python
import gamedatacrunch as gdc

app_ids = gdc.load_app_ids()
```

### Retro-compatibility: Steam API

For retro-compatibility, the output is formatted as with [Steam API][steam-api]:
```python
import gamedatacrunch as gdc

data = gdc.load_as_steam_api()
```

### Retro-compatibility: SteamSpy API

For retro-compatibility, the output is formatted as with [SteamSpy API][steamspy-api]:
```python
import gamedatacrunch as gdc

data = gdc.load_as_steamspy_api()
```

[gamedatacrunch]:
[steamspy-api]:
[steam-api]:

[pypi]:
[pypi-image]:

[build]:
[build-image]:
[publish-image]:

[pyup]:
[dependency-image]:
[python3-image]:

[codecov]:
[codecov-image]:

[codacy]:
[codacy-image]: