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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fde43b95f4df1d5a38d95269d9ca857d15462e4a6d1cf232b7a4d8a2b217b1c3
|
|
| MD5 |
e2953d8b1f229e6c474952cd8c165697
|
|
| BLAKE2b-256 |
8e2be793b1cd6f5b54e767da3df1abdc287b941888e6543370858055f53586d7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68fdfe46ab3807da01bdcf332a99605887f90956af976784680240865a52aad2
|
|
| MD5 |
8df0488edd772c7409d2bdea2e516b55
|
|
| BLAKE2b-256 |
787b3f26f2b0f35d3605f207c161c441372b923788218c7e842d01fa0a677447
|