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

Uploaded Source

Built Distribution

synthSportPlayer_DJS-1.1.2-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: synthSportPlayer-DJS-1.1.2.tar.gz
  • Upload date:
  • Size: 8.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.2.tar.gz
Algorithm Hash digest
SHA256 50b3b6681e68f85778762454d5c3546d66247d856c367564766d433c8e6d5bfa
MD5 c085d799a27ff3c6a74a545a8aef31bd
BLAKE2b-256 3101b8949c7687c06fe401eb046c9b301749353075672a7a6c65702ce2a10a14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: synthSportPlayer_DJS-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8dd4c04e42fd24650bd796eccb5c7ad1340c0276f43a3ebf33cc6662422c25d
MD5 f97fa0f925db1adf1eb6a5cb52b0f7cc
BLAKE2b-256 56c8a1f3dc3c8d32647b93bc519507ce6ab81b7611196fb487f29bbdbf9b6ce8

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