Skip to main content

A simple and pythonic system to store, retrieve, and analyze Rocket League replay stats as returned from ballchasing.com's API

Project description

Install

pip install rlstatsdb

Description

rlstatsdb is a simple and easy-to-implement SQLite database manager equipped for storing and fetching Rocket League replay data (as returned from ballchasing.com's API). When fetching data from the database (through the manager) is incredibly easy to navigate, meaning you don't need to memorize the entire dictionary structure of ballchasing's get-replay response.

Usage

For the below example, replay_data is the response dict from https://ballchasing.com/api/replays/<replay_id>. In reality, this can be acquired through various means, such as requests and aiohttp, or through API wrappers such as pychasing and python-ballchasing.

import rlstatsdb

# The database file needs to either be non-existant, empty, or a valid
# SQLite database. If the file is non-existant, a new file will be created
sdb = rlstatsdb.Manager("path_to_database_file")

manifest_id = sdb.add(replay_data)
game = sdb.get(manifest_id)

game.replay_id
game.max_rank.division
game.orange.players[0].stats.core.goals
game.blue.color
# etc.

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

rlstatsdb-0.0.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

rlstatsdb-0.0.2-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file rlstatsdb-0.0.2.tar.gz.

File metadata

  • Download URL: rlstatsdb-0.0.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for rlstatsdb-0.0.2.tar.gz
Algorithm Hash digest
SHA256 46464564c147b9ff07ceff0bec5740a1f11f65ec6e7307939c16d3da9b753541
MD5 1680efcf45867d9cf29f4825a8dda4f4
BLAKE2b-256 ae4e973a60530a6ee13a15c87a89cbef73803f1253c528a2c776b36796d97e29

See more details on using hashes here.

File details

Details for the file rlstatsdb-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: rlstatsdb-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for rlstatsdb-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2b4bf75ca9a4fad3131599f4d5418926396fe700d7c87b94e761a6d798cf8ab8
MD5 32db85844813a95c5d023cd0a58a2112
BLAKE2b-256 264280d11835baf2176c9f18381e2305b917307a75228109c20444134a00ae7b

See more details on using hashes here.

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