Skip to main content

Create and store readable brackets.

Project description

BracketMaker is used to create brackets of any size and neatly print them to the screen. It is useful for visually representing tournaments and updating them on the fly. Main.py is used for storing brackets in a file and opening and editing them later.

Included Files

  • bin/main.py - store and update brackets (uses bracket.bracket)

  • bracket/bracket.py - python module used for creating and displaying brackets

Installation

Python must be installed in order for BracketMaker to run. Install python at https://www.python.org/download/. In the terminal type “cd path/to/this/directory” and then “python setup.py install”. This will add the bracket module to your site-packages.

How to Run

You can either choose to run a finished python program that uses the bracket module or create your own script with the module. If you want to just run the finished version, the file will be found in the “bin” directory. Double click on the file or type “python main.py” in the terminal to run. To use the bracket module in your own program the include it at the top of the file with “from bracket import bracket”. There is only one module in the “bracket” directory.

How to Use main.py

In the main menu, your options are to create a new bracket or open an existing one.

New Bracket

You will be asked to enter a name and location to save the bracket. The location must be the full path excluding the name of the bracket. Then you must enter the number of teams that will participate in the tournament and their names. You will also be asked to shuffle the teams. Enter yes if you want to give the teams random seeds. Enter no to use the way you enter the teams as the rankings.

Open Bracket

Enter the full path of where the bracket was saved including the name of the bracket.

Updating the Bracket

Type the name of a team that should go on to the next round. You can type multiple teams at once by separating the names with a comma. You can also edit incorrect updates by typing the other team that should have one instead.

Quit and Save

In the update screen type “quit” to quit and save. This will return you to the main menu as well.

Command Line Arguments

There is only one additional argument for main.py. It is “-f” to show the full output of the program and never clear the screen. To use this feature open the terminal and type “python path/to/directory/main.py -f”.

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

BracketMaker-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file BracketMaker-0.2.0.tar.gz.

File metadata

  • Download URL: BracketMaker-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for BracketMaker-0.2.0.tar.gz
Algorithm Hash digest
SHA256 239fa9540d25e1360a4666105e041bd06b8ab17d158df609bd35a0b9cf74b6bd
MD5 838a1e59a9c9119115bdf2d5a6b2b388
BLAKE2b-256 52951bba3ca8a1dad536d087e21c9890d857a87d432dc0c6e4282668cd1aac70

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page