Skip to main content

A package to simulate synthetic sports players/teams

Project description

synthSportPlayer Package

Last updated - 11/3/2021

The purpose of the code within this package is to simulate sports players/teams that compete against each other in both classic 1v1 elimination tournaments and round robin 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

There are 5 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 the winner is chosen randomly.
  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. robin This is an event that a collection of players enter where every player will compete against every other player and recieve points for how many wins they had.
  5. season This is a collection of tournaments that are played in order. At the end of the tournament the players recieve point based on how far they got in that tournament.

There are three extra child classes that were written. The first two extend both tournament and season to be able to have 'real-time' functionality for dashboarding purposes. The third is to facilitate byes in tournaments. They are:

  1. liveTourn
  2. liveSeason
  3. bye

The main difference with liveTourn and liveSeason is their respective playTourn and playSeason function. In the parent classes the functions would run to completion 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.2.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

synthSportPlayer_DJS-1.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synthSportPlayer-DJS-1.2.0.tar.gz
  • Upload date:
  • Size: 10.4 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.2.0.tar.gz
Algorithm Hash digest
SHA256 ee6202893694a9da572c7d02951fb98d2c97078310acfebd4c657f339b7dae86
MD5 ffa4acd1c724f5286902d68018f8c1f1
BLAKE2b-256 e95b349ef5f454ff5fa41815ba16d32ec93a3e567d9ed143591d9e19d85b062b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: synthSportPlayer_DJS-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e7813a7357f9d495acbceb5247ee07de3520d0ee73b18c07e4d6d11168b34b7
MD5 0f3265ae241e7b3ca35efa480487b333
BLAKE2b-256 d4ebb1fc53c463b992a7dff81b62d448e3e2d281bed8364b9f189a86b1b04d99

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