Python wrapper for BloodBowl Match files
Project description
bb2parse
Parse Bloodbowl2 replay files for statistics
Install
Install using pip:
$ pip install bb2parse
Usage
Initializing a Season/Match Object
from bb2parse import BloodBowlMatch, BloodBowlSeason
game = BloodBowlMatch('{XML file}')
season = BloodBowlSeason('{XML file}','{XML file}','{XML file}','{XML file}'...)
Attributes of Match Objects
game.match_outcome
game.home
game.away
# Subclass
game.HomeTeam
game.AwayTeam
game.HomeTeam.coach
#Object and its methods and attributes
game.HomeTeam.Offense
.interceptions
.touchdowns
.running_yards
.passing_yards
.passes
.catches
.possession
.occupation_own
.get_pass_completion()
.get_pass_intercept_ratio()
game.HomeTeam.Defense
.casualties_inflicted
.interceptions
.ko_inflicted
.injuries_inflicted
.kills_inflicted
.expulsions
.occupation_their
.get_ratio_injuries()
.get_ratio_casualties()
.get_ratio_kills()
game.HomeTeam.Injuries
.deaths_sustained
.ko_sustained
.casualties_sustained
.injuries_sustained
Attributes of Season objects
season.seasonlength
season.scoreboard
season.Teams.teamlist # returns regular set of teams involved in games
# Use this attribute to look for stats/data
season.getTeams
# Should return list of team objects
season.getTeams[0].name
season.getTeams[0].matches_played
season.getTeams[0].matches # Returns list of BloodBowl Match Objects
season.getTeams[0].get_total_kills()
season.getTeams[0].get_total_touchdowns()
season.getTeams[0].get_total_running_yards()
season.getTeams[0].get_total_passing_yards()
season.getTeams[0].get_td_avg()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bb2parse-1.0.0.tar.gz
(5.4 kB
view details)
Built Distribution
File details
Details for the file bb2parse-1.0.0.tar.gz
.
File metadata
- Download URL: bb2parse-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f86ac415c82adac7a88b26de3351bf230f5812cf5bd3c15af4f03b926bf1a59 |
|
MD5 | c61b2aea0cda1c0df6ddb90df0a0e8fd |
|
BLAKE2b-256 | 47d00f6cf29999a84058ad2dad8c8bc5ba5e5f91ca742cafc828fd5beb01ff2c |
Provenance
File details
Details for the file bb2parse-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: bb2parse-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9083ad8ef59d19de08383ba42c1d4fddffdb1f8bbcc92e100f94ad8c30e218d |
|
MD5 | be7c258be6b0f10700a8e0f34e487ce8 |
|
BLAKE2b-256 | bb9bc6c1bfebaad2c7cf1768ee1e7c03e86fbd7ad47ff9d7a8334fcbf1ff99f7 |