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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rlstatsdb-0.0.4.tar.gz.
File metadata
- Download URL: rlstatsdb-0.0.4.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c508f1bd0d1a8ed65e92f199394407ee53d97cd6d7358ab80a75938412b3a8
|
|
| MD5 |
4bf58ed69825f06c2751216509fa701f
|
|
| BLAKE2b-256 |
c3bbafdbf155cb367f86e884edcede133c8a007ec5e0ef286528314e6fc51eac
|
File details
Details for the file rlstatsdb-0.0.4-py3-none-any.whl.
File metadata
- Download URL: rlstatsdb-0.0.4-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee123dc7a741cae03393a3d1be9dcecefe3a150004561001238170b63b8a5188
|
|
| MD5 |
c1939410598cf51e3c73a0c1e64c63d9
|
|
| BLAKE2b-256 |
9ce820272c506d9574d400b50392b0714774915923abef6eb5222b3c0a96cfa7
|