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 Distribution

wdtea-0.0.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file wdtea-0.0.2.tar.gz.

File metadata

  • Download URL: wdtea-0.0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for wdtea-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fde43b95f4df1d5a38d95269d9ca857d15462e4a6d1cf232b7a4d8a2b217b1c3
MD5 e2953d8b1f229e6c474952cd8c165697
BLAKE2b-256 8e2be793b1cd6f5b54e767da3df1abdc287b941888e6543370858055f53586d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wdtea-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68fdfe46ab3807da01bdcf332a99605887f90956af976784680240865a52aad2
MD5 8df0488edd772c7409d2bdea2e516b55
BLAKE2b-256 787b3f26f2b0f35d3605f207c161c441372b923788218c7e842d01fa0a677447

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