Skip to main content

A package to simulate synthetic sports players/teams

Project description

synthSportPlayer Package

Last updated - 5/3/2021

The purpose of the code within this package is to simulate sports players/teams that compete against each other in a classic 1v1 elimination tournaments. Originally the classes & code were created in support of another project but grew larger than expected and therefore large enough to become it own package. At this point in time it is planned that the code shall continue to be developed.

For the project homepage and issue tracking please see the github repo.

For documentation please see the docs.

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.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

synthSportPlayer_DJS-1.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synthSportPlayer-DJS-1.1.1.tar.gz
  • Upload date:
  • Size: 8.0 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.1.tar.gz
Algorithm Hash digest
SHA256 72b3facbfcb6b5ccbbc210411998e0a39cd33e7a5244ddd07715490ffc0534c1
MD5 8dcc2aee03e52bc1e4dc454762242ecf
BLAKE2b-256 8ec1c9cf108c899e80d197249e62dbbe953a03e6d36d09eac3a191d670a603fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: synthSportPlayer_DJS-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2518ab4328e97ae72af6a005270c33382a53e542da5edd2016004d6f4b6195
MD5 b3de775bf7f334895fa2f505b2313eef
BLAKE2b-256 d5349983453642a4084c0ca6ee63e7828a8bbfdf6b841676f32de440f604c7c0

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