A cool utility library
Project description
notify
This uses ntfy.sh Read their docs on ntfy.sh To receive notifcations you must download the ntfy.sh app and select a 'route' id
Parameters
route
Route id
msg = ""
msg content
title="<>"
title
private = False
Only sends the notifcation once when enabled, if the phone is not connected to the internet it will not receive it
priority = 3
priority, only affects the app based on the settings chosen. Can be any integer from 1-5
action = None
Used to create buttons linking to a url
action = [("Google", "google.com"),("Example","example.com")] # [(label,url)]
delay=None
Creates a delay
markdown_enabled = True
Enables/Disables markdown
pretty print
This replaces the print function when imported.
The new syntax is:
print("Hello",end = " ",color=RED, move_cursor = START_OF_LINE)
plot
Just throw some values into it and it will plot them :)
plot([1,2,4,8])
Database
First initialize a new database
columns = [("name",str),("id",int),("score", float)]
data = Database("filename.db", columns)
Now data can be used as a list of dictionaries :)
data.append(("NAME1", 1, 1.1))
data[0]["id"] #-> 1
Retry
Decorator for use in debugging or web-requests
@retry(retries = 3, delay = 1, exponential_delay = True)
def myfunc():
pass
Timer
start_timer() - Stars/resets timer
get_timer() - Gets timer value as a datetime object
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 utilscool-1.0.0.tar.gz.
File metadata
- Download URL: utilscool-1.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1edd316987424cb17077b52bb505b1156bf7c54c2e499af6e1e83a702c3ce34
|
|
| MD5 |
093f1f9298dd9d25472d25d5ea91d323
|
|
| BLAKE2b-256 |
10f6e2dac030929f3b163dc6962bda0417038feca1b55a26dbd0a64eb92538fd
|
File details
Details for the file utilscool-1.0.0-py3-none-any.whl.
File metadata
- Download URL: utilscool-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f9c7a3340e82d9c185b278a1c8b13479d89baf0aef2cbbfdefbcddcbe4f23d0
|
|
| MD5 |
9b3e102315a86403be0884b5f63ec9ea
|
|
| BLAKE2b-256 |
db7b4b6ad28bbd2e97cc40f9c26cab307d4d704f5001df8ed26349b8f29b53a4
|