smash-tourney
About
A simple Python script that, given a list of player names, outputs a random pairing of them (representing two players who will fight) and creates .wav files for each pairing. The .wav files contain a text-to-speech reading of the first player's name, followed by a customizable phrase (say, a classic "VERSUS" line?) and ends with the second player's name.
smash-tourney accepts a versus.wav file in your working directory. This is used to customize the sound used in the end result. Previously, I had included the file in this repository, but I'm not quite sure I'm allowed to do that. Instead, I'll link to The Sounds Resource, where you can find Smash Bros announcer voice samples. Make sure the file is called versus.wav inside your working directory!
How to use
Intended for use with Python >= 3.6.
smash-tourney depends on two external libraries: pydub to handle audio files and gTTS to interface with Google's text-to-speech API.
You can install smash-tourney using pip!
$ pip install smash-tourney
Next, you'll need to create a file with line-separated names for the players who will be participating the the tourney.
You're ready to run the script! Suppose the file with the player names is called names.txt in the current directory. Then simply run:
$ smash-tourney names.txt
IMPORTANT
smash-tourney will create a folder called tourney in its working directory, where it will store the created .wav files for convenience.
Metadata
Release files for smash-tourney 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| smash-tourney-0.2.0.tar.gz | 5.2 kB | Without provenance | Details for smash-tourney-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| smash_tourney-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for smash_tourney-0.2.0-py3-none-any.whl |
Total release size: 11.1 kB
Release files / smash-tourney-0.2.0.tar.gz
| Download URL | smash-tourney-0.2.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcc03c324bf183470cbcb368b4a9e94de92abfcb75c3ce409ab165c1f0d17b8e
|
|
BLAKE2b-256 checksum How to use checksums |
2f419502a42933b37a2e9e4f1f6c5d39b79915e71a52b3ea07a2a87ea7652107
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
|
Release files / smash_tourney-0.2.0-py3-none-any.whl
| Download URL | smash_tourney-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15fe8f8fc3e44335aaf24597517ed05f234108356465871b7386f7731d4b8502
|
|
BLAKE2b-256 checksum How to use checksums |
097df303a75570e7d5d61f3498320e6f0f275b9db7bb1f9bfc65f2f95619a001
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
|
Security for smash-tourney 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.