Skip to main content

FuncNotify

BuildDeploy LCommitrelease

Premise:

Sometimes, functions take a long time. I wanted to create something that automatically notifies you when they're completed or of any errors, training ML. The advantage over other decorator nontifiers is that there's an added option to hide your api tokens and emails so they aren't accidentally pushed to a public repo.

This is a super lean ReadMe, check out the github linked here

Installation

$ pip install funcNotify

Use case

@time_func(dot_env=True, NotifyMethod="Text", cellphone="8001234567")
def wait_func():
    do_something()

@time_text
def wait_func2():
    do_something()

Both accomplish the same objective of notifying the user after wait_func() completes, one does so with the phone number saved as a env variable in .env so it never accidentally gets exposed.

Supported Notify Methods

Platform
Console Print
Email
Slack
Create .env in current working directory and fill out information that you wanna use

template.env

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FuncNotify-1.1.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

FuncNotify-1.1.2-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file FuncNotify-1.1.2.tar.gz.

File metadata

  • Download URL: FuncNotify-1.1.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for FuncNotify-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8cfee730a7cd77de6900366c093c05e2adf7e392ad6e35a0158c475db2e65ff2
MD5 12fe4e35b79f6477acd7c3c3264d40d3
BLAKE2b-256 6600b0ca6783ba3b5e37af318c909baa97093e10c2f6e635837f3511ff669a41

See more details on using hashes here.

File details

Details for the file FuncNotify-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: FuncNotify-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for FuncNotify-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 19bb9f2cf9b93a73a2ace8d4120c391884f7a03c8c5abffa95ab1189eb802ca9
MD5 458665a73277a788c86479dbabdedc3e
BLAKE2b-256 27f206084adb65dde9634d5e80b95e6b92a5c4714000f425d85a8bc1e9819819

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 Sentry Error logging StatusPage Status page