# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/TitanStar73/coolutils",
"name": "utilscool",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "TitanStar73",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/10/f6/e2dac030929f3b163dc6962bda0417038feca1b55a26dbd0a64eb92538fd/utilscool-1.0.0.tar.gz",
"platform": null,
"description": "# notify\r\n\r\n> This uses ntfy.sh\r\n> Read their docs on ntfy.sh\r\n> To receive notifcations you must download the ntfy.sh app and select a 'route' id\r\n\r\nParameters\r\n\r\nroute\r\n> Route id\r\n\r\nmsg = \"\"\r\n> msg content\r\n\r\ntitle=\"<>\"\r\n> title\r\n\r\nprivate = False\r\n> Only sends the notifcation once when enabled, if the phone is not connected to the internet it will not receive it\r\n\r\npriority = 3\r\n> priority, only affects the app based on the settings chosen.\r\n> Can be any integer from 1-5\r\n\r\naction = None\r\n> Used to create buttons linking to a url\r\n```action = [(\"Google\", \"google.com\"),(\"Example\",\"example.com\")] # [(label,url)] ```\r\n\r\ndelay=None\r\n> Creates a delay\r\n\r\nmarkdown_enabled = True\r\n> Enables/Disables markdown\r\n\r\n# pretty print\r\nThis replaces the print function when imported.\r\nThe new syntax is:\r\n`print(\"Hello\",end = \" \",color=RED, move_cursor = START_OF_LINE)`\r\n\r\n# plot\r\nJust throw some values into it and it will plot them :)\r\n`plot([1,2,4,8])`\r\n\r\n# Database\r\n\r\nFirst initialize a new database\r\n\r\n`columns = [(\"name\",str),(\"id\",int),(\"score\", float)]`\r\n\r\n`data = Database(\"filename.db\", columns)`\r\n\r\nNow data can be used as a list of dictionaries :)\r\n\r\n`data.append((\"NAME1\", 1, 1.1))`\r\n\r\n`data[0][\"id\"] #-> 1`\r\n\r\n# Retry\r\n\r\nDecorator for use in debugging or web-requests\r\n```\r\n@retry(retries = 3, delay = 1, exponential_delay = True)\r\ndef myfunc():\r\n pass\r\n```\r\n\r\n# Timer\r\n\r\n`start_timer()` - Stars/resets timer\r\n\r\n`get_timer()` - Gets timer value as a `datetime` object\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A cool utility library",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/TitanStar73/coolutils",
"Source": "https://github.com/TitanStar73/coolutils"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db7b4b6ad28bbd2e97cc40f9c26cab307d4d704f5001df8ed26349b8f29b53a4",
"md5": "9b3e102315a86403be0884b5f63ec9ea",
"sha256": "5f9c7a3340e82d9c185b278a1c8b13479d89baf0aef2cbbfdefbcddcbe4f23d0"
},
"downloads": -1,
"filename": "utilscool-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9b3e102315a86403be0884b5f63ec9ea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 9765,
"upload_time": "2024-08-25T09:14:52",
"upload_time_iso_8601": "2024-08-25T09:14:52.552904Z",
"url": "https://files.pythonhosted.org/packages/db/7b/4b6ad28bbd2e97cc40f9c26cab307d4d704f5001df8ed26349b8f29b53a4/utilscool-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "10f6e2dac030929f3b163dc6962bda0417038feca1b55a26dbd0a64eb92538fd",
"md5": "093f1f9298dd9d25472d25d5ea91d323",
"sha256": "b1edd316987424cb17077b52bb505b1156bf7c54c2e499af6e1e83a702c3ce34"
},
"downloads": -1,
"filename": "utilscool-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "093f1f9298dd9d25472d25d5ea91d323",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 9449,
"upload_time": "2024-08-25T09:14:54",
"upload_time_iso_8601": "2024-08-25T09:14:54.293341Z",
"url": "https://files.pythonhosted.org/packages/10/f6/e2dac030929f3b163dc6962bda0417038feca1b55a26dbd0a64eb92538fd/utilscool-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-25 09:14:54",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "TitanStar73",
"github_project": "coolutils",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "utilscool"
}