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
Hashes for utilscool-1.0.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 5f9c7a3340e82d9c185b278a1c8b13479d89baf0aef2cbbfdefbcddcbe4f23d0 |
|
| MD5 | 9b3e102315a86403be0884b5f63ec9ea |
|
| BLAKE2b-256 | db7b4b6ad28bbd2e97cc40f9c26cab307d4d704f5001df8ed26349b8f29b53a4 |