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 console

  • 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 console 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.

Pybound's slow_print() function was modeled after Python's original print statement, you can do all the same things in slow_print() and in print().

slow_print("Hello!")
  • 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 console 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() - Strikes through text

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.3.tar.gz (2.7 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.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyBound-1.0.3.tar.gz
  • Upload date:
  • Size: 2.7 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.3.tar.gz
Algorithm Hash digest
SHA256 8970bfc8325180e5f9aec891ddf6dcd63a5b7cf58a91c6c4a324e581ff4387cc
MD5 69ef91f32ed102d34fc01ded4af991af
BLAKE2b-256 ea5e6a259f4b46698945221059603677223f62a29a8bc5128b27859b59f4b037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyBound-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd475eb7965b1136c429ac34a80f3b4283e86e2f13235b07917ce1c8a8ea41bc
MD5 34949ace3c21c714bb6870db1a65a341
BLAKE2b-256 5ceec3a8b9e721d2c537741d173e700cfb05ff05bf7da7ffa2e294c2a9b0e0d7

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