A pure-python recreation of Zack Freedman's FlavorText Arduino IDE Library
Project description
You can't spell FlavorText without Vortex.
Features
- [x] Fast generation
- [x] Buffered print library
- [x] Clearscreen funtion
- [x] Absolute Insanity
- [x] Patreon Specific flag included!
Installation
This package should be installable through Pip.
On a Debian Based Linux OS:
sudo apt update
sudo apt install python3 python3-pip
pip3 install FlavorTexts
On Windows:
In CMD:
python -m pip install FlavorTexts
Usage
To confuse yourself:
from FlavorTexts import FlavorTexts
from FlavorTexts import BufferedText
from time import sleep
try:
## Define a FlavorText Generator
generator= FlavorTexts(patreon=False)
while True:
## Generate a random True/False
constructive = bool(generator._random(1))
## Generate a random text string with a random Constructive/Destructive flag.
textList = generator.generateText(constructive=constructive)
## Write the random text to the buffered text manager, and print a newline
BufferedText.bufferedWrite(textList)
print()
## Sleep for 1/2 second
sleep(0.5)
## Exit smoothly on a CTRL+C
except KeyboardInterrupt:
exit(0)
I am so sorry...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
FlavorTexts-0.1.0.tar.gz
(13.7 kB
view hashes)
Built Distribution
Close
Hashes for FlavorTexts-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c9247c539bb50a3ff35dfe424e1046999fcd8a9383869b8ad476f80df2fc6eb |
|
MD5 | 8a43f3f5a2c3a1c63e0e1d4c6a84362d |
|
BLAKE2b-256 | e4578ec3c8f657960a992edba1479d3774cc8c5f14cafddf9243a3d372dbc15d |