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.1.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.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wdtea-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 600f6595a53b07100ccbf1103ad9a39c598f45a87f3873e58e876d753411a0a8
MD5 060335a34e28a93b077694bbd15d13da
BLAKE2b-256 dfc2d187f008389640017a9281a31c15484af8ff65b33988e95a53df73da3896

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wdtea-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d27be003cd4928d79191464047c8910fb5a728281e99259dd42354096414427
MD5 e7bd06d3e490bc1ad1e4c42c196d7cdb
BLAKE2b-256 e587ee7a4b00b0213af04ff87effb9a8e67e8feb938b393f393e1a7edb3c0370

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