Skip to main content

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()

Metadata

Release files for bb2parse 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bb2parse 1.0.0
File Size Uploaded Provenance
bb2parse-1.0.0.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bb2parse 1.0.0
File Interpreter ABI Platform
bb2parse-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / bb2parse-1.0.0.tar.gz

Download URL bb2parse-1.0.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8f86ac415c82adac7a88b26de3351bf230f5812cf5bd3c15af4f03b926bf1a59
BLAKE2b-256 checksum
How to use checksums
47d00f6cf29999a84058ad2dad8c8bc5ba5e5f91ca742cafc828fd5beb01ff2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / bb2parse-1.0.0-py3-none-any.whl

Download URL bb2parse-1.0.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9083ad8ef59d19de08383ba42c1d4fddffdb1f8bbcc92e100f94ad8c30e218d
BLAKE2b-256 checksum
How to use checksums
bb9bc6c1bfebaad2c7cf1768ee1e7c03e86fbd7ad47ff9d7a8334fcbf1ff99f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for bb2parse 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page