Skip to main content

Basically a module with stuff that I find helpful

Project description

WDTEA v0.0.1

"Why Doesn't This Exist Already"

(Basically a module with stuff that I find helpful)


So you don't have to go through the code yourself, have the...

Documentation

newLine

sleep

randRange

clear

floor

ceil


newLine

prints x amount of newlines

Code:

def newLine(x):
  for i in range(x):
    print() #Blank print makes a new line

Usage:

print("hello")
wdtea.newLine(3)
print("world")

Output:

hello



world

sleep

Waits for x millilseconds

Code:

def sleep(x):
  time.sleep(x/1000) #Converted to milliseconds

Example Usage:

print("hello")
sleep(1000)
print("world")

Example Output:

hello

randRange

Returns a random integer between min and max

Code:

def randRange(min, max):
  return random.randrange(min, max)

Example Usage:

randRange(1,10)

Example Output:

9

clear

Clears the console

Code:

def clear():
  os.system('clear')

Example Usage:

clear()

Example Output:

  

(It clears the console what did you expect for the example output?)


floor

Rounds down

Code:

def floor(x):
  return math.floor(x)

Example Usage:

floor(15.75)

Example Output:

15

ceil

Rounds up

Code:

def ceil(x)
  return math.ceil(x)

Example Usage:

ceil(21.23)

Example Output:

22

To-Do:

  • Fix progBar function
  • Fix delLine function
  • Profit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

wdtea-0.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file wdtea-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: wdtea-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for wdtea-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5f4e45707c97ab95facc9e0915024725e4ecd57682e12e865377f41adae5a2e8
MD5 a72c03a3029d818943f952a2324d0f4a
BLAKE2b-256 44b37ef5fa6976cf2c11241e54042d0b4a142486879ed35d5f7ae0fd2f633ef0

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