Skip to main content

A package to simulate synthetic sports players/teams

Project description

synthSportPlayer Package

Last updated - 3/3/2021

This is a package designed to simulate sports players/teams that compete against each other in a head-to-head elemination tournaments. This was created in support of another project for more information/documentation please see the github repo.

Install & import

Install the project by running:

pip install synthSportPlayer-DJS

and import with:

import synthSportPlayer

Offical fully written documentation shall be coming.

There are 4 primary classes contained within this package:

  1. player These are the teams/players that do the competeing. They are simply defined by a 'skill' level and a variance and whenever they have to 'compete' that is created from a normal distribution defined by these two properties.
  2. match This is a match to handle two player competing where one will win and one will lose. The winner is determine by both players performing and the highest value wins. if they are equal then they
  3. tournament This is an event that a collection of players enter and compete pair-wise with the winners moving forward to the next round, and is complete when there is one player remaining.
  4. season This is a collection of tournaments that are played in order. at the end of the rounament the players recieve point based on how far they got in tha tournament.

There are two extra child classes that were written to extra both tournament and season to be able to have 'real-time' functionality for dashboarding purposes. They are:

  1. liveTourn
  2. liveSeason The main difference is their respective playTourn and playSeason function. In the parent classes the functions would run to completition of the tournament/season. In these child classes they move forward one step in the current tournament.

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

synthSportPlayer-DJS-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

synthSportPlayer_DJS-1.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file synthSportPlayer-DJS-1.1.0.tar.gz.

File metadata

  • Download URL: synthSportPlayer-DJS-1.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8

File hashes

Hashes for synthSportPlayer-DJS-1.1.0.tar.gz
Algorithm Hash digest
SHA256 dd65a8c8d4e6aad8dedb0d62d43ecf0f2ca51b66d23fcd15ea6cb0beb10c01e6
MD5 032973b4062d03681a491286a48be370
BLAKE2b-256 f5a9c9c5e05c48554adf3128871df8b8a7da58e6d762b09b00b9c27f3034c2a5

See more details on using hashes here.

File details

Details for the file synthSportPlayer_DJS-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: synthSportPlayer_DJS-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.8

File hashes

Hashes for synthSportPlayer_DJS-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb6d2b6c1db3eb5733125415701c5075678b9d30b0d0420af501d7ce493c9257
MD5 d6c007d928d4eb9f8d13778adc3e807d
BLAKE2b-256 d509ac4fff13eb0b039a610e3ee780aa19e406a9d96e5594f2b9afa95f7ccb2e

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