Skip to main content

pyBound is a collection of useful functions that can be used in many situations in python files.

Project description

pyBound

Allows you to access multiple useful tools in your python code quick and easy.


Documentation:

  • clear() - clears terminal

  • wait(time=___) - pauses code for number for seconds inputed

print("Hello, welcome to pyBound!")
print("This is some extra text!")
wait(4)

will display:

Hello, welcome to pyBound!
This is some extra text!

for 4 seconds, and then will clear the terminal and the final output will be:

  • slow_print(*strings, time=___ , end=___ , sep=___ , file=___) - prints text in a typing sort of animation. The time attribute defaults to a good speed, but you can change the time (in seconds) between each printed character. It will print one letter at a time.
  • rgb(r, g, b) - equate a variable to this function and just put in the rgb code of a color. When you want to change color of text, just use concatenation.
  • rgb_reset() - resets colors to white. Equate this function to a variable. Make sure to reset or the rest of you printed text will be the color it chooses
red = rgb(255, 0, 0)
print(red + "Hello, there!")
print("I love pyBound!")

will print

Hello there!
I love pyBound

entirely in red. However, you can use rgb_reset() to fix this.

red = rgb(255, 0, 0)
reset = rgb_reset()
print(red + "Hello, there!" + reset)
print("I love pyBound!")

will print "Hello, there!" in red and will print "I love pyBound!" in the default terminal text color, usually white.

There are also more formatting options for your python text. They are used the same way the rgb() is used. They are listed here:

end() - Deletes all existing formatting

bold() - Bolds text

faint() - Decreases the opacity of text

italic() - Italicizes text

underline() - Underlines text

blink_slow() - Makes text blink slowly

blink_fast() - Makes text blink quickly

negative() - Inverts the background color and the foreground color of text

conceal() - Makes text invisible

crossed() - Adds text strikethrough

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

pyBound-1.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyBound-1.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file pyBound-1.0.2.tar.gz.

File metadata

  • Download URL: pyBound-1.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-1016-gcp

File hashes

Hashes for pyBound-1.0.2.tar.gz
Algorithm Hash digest
SHA256 43462a60d9028aede1a9d85e1c25ba0249d02309d154447779de81e369cf97ab
MD5 5e7aa8918df7387a94ffb8e757dac019
BLAKE2b-256 853f459d598533bece4b40f0e07dcb2304081390d054efb6454b656b941cc355

See more details on using hashes here.

File details

Details for the file pyBound-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyBound-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.12 Linux/5.15.0-1016-gcp

File hashes

Hashes for pyBound-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ad336fa721936230003e0f1b77fb6783a324273f34b59eb9ed37f48f3afc73e3
MD5 269b091ba94d67b2c2fc60d53decf5ff
BLAKE2b-256 d24bf955058a3b3eeff1c1db533d4a245aad1da8278d4bbf2912fd571e590232

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