A fun Python package by team_riptide with random playful helpers.
Project description
PyPI: https://pypi.org/project/joytide/
joytide
joytide is a small python package with random fun helpers to help de-stress after hours of serious coding. each function can be visually changed with different inputs. the main way to use it is the CLI.
team members
install
requires python 3.10 or higher
pip install joytide
# if pip is not on PATH:
python -m pip install joytide
# windows:
py -m pip install joytide
CLI
Banner
print an ASCII banner.
usage
joytide banner TEXT [--border "*" ] [--padding 1] [--align left|center|right]
# if console script isn't on PATH:
python -m joytide banner TEXT --border "#" --padding 2 --align right
py -m joytide banner "team_riptide" # windows
examples
joytide banner "hello"
joytide banner "team_riptide" --border "##"
joytide banner "left" --padding 2 --align left
joytide banner "right" --border "<>" --align right
Art
Print ASCII art with a chosen theme and size.
Usage
joytide art [--theme animal|nature|tech|random] [--size small|large]
# if console script isn't on PATH:
python -m joytide art --theme animal --size large
py -m joytide art --theme tech #windows
examples
joytide art
joytide art --theme animal
joytide art --theme nature --size large
joytide art --theme tech --size small
joytide art --theme random --size large
2048
Play the game 2048 in your terminal
Usage
joytide 2048 [--size SIZE] [--prob PROB] [--winning-tile TILE]
# if console script isn't on PATH:
python -m joytide 2048 --size 5 --prob 0.3 --winning-tile 4096
py -m joytide 2048 # windows**Options:**
- `--size`: Board size (default: 4, must be > 1)
- `--prob`: Probability of spawning a 4 tile (default: 0.25, range: 0-1)
- `--winning-tile`: Target tile value to win (default: 2048)
examples
joytide 2048
joytide 2048 --size 5
joytide 2048 --size 3 --prob 0.5 --winning-tile 512
Put each of your functions here with examples
example program for all functions
a short demo that calls each function is in examples/demo.py.
python demo.py
py demo.py
how to contribute
we use pipenv for development.
python -m pip install --user pipenv
pipenv install --dev
pipenv install -e .
pipenv run python -m pytest -v
build the package manually if needed:
pipenv run python -m build .
format code with Black:
pipenv run black .
testing
each function should have tests for a normal case, an edge case, and an invalid input case.
pipenv run python -m pytest -v
CI / CD
- code is formatted with Black for consistent style
- pull requests run tests on python 3.11 and 3.12
- merges to
mainbuild the package and publish to PyPI using twine via GitHub Actions (pypa/gh-action-pypi-publish)
configuration
no environment variables or secret config files are required. no database or starter data is needed. works on mac, windows, and linux.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file joytide-0.0.5.tar.gz.
File metadata
- Download URL: joytide-0.0.5.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fded488645bb2debac84a818b82584be37b20aadde50b406fc9500ab9fe0a0a
|
|
| MD5 |
7384f6b26d4a811ce7c89c49f370307e
|
|
| BLAKE2b-256 |
e2fbcc2c292564e37e3b3f6c38fae95fefa5f9a6b8f2dfcd44903b637392af26
|
File details
Details for the file joytide-0.0.5-py3-none-any.whl.
File metadata
- Download URL: joytide-0.0.5-py3-none-any.whl
- Upload date:
- Size: 35.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
393062bc77fbf6279b9927c5858424bfde7445bdfb105cbbf0baceb6340e3981
|
|
| MD5 |
56196a9a7f071400aa3bfe1a9b3c7e72
|
|
| BLAKE2b-256 |
aaa60c811806fd81094dd2d8f7035fb45010f3d4a2566ac74f7df2d907f224a9
|