func-az
Simple tools for Azure Functions
pip install func-az
Safe Start-up
Sometimes you deploy a function, and it breaks. And you have no idea why.
import azure.functions as func
import func_az as fz
def make() -> func.FunctionApp:
...
def handle_err(exc):
logging.error(f'An error occurred during startup: {exc}')
return 'An error occurred'
app = fz.startup(make, error_message=handle_err)
If it breaks, it sets up a /health route that you can use to trigger the handler.
Scheduled Job
You can set up a timer trigger, and also an HTTP trigger. But not both. This bridges the gap:
import azure.functions as func
import func_az as fz
app = func.FunctionApp()
@fz.job(app, 'greet-users', route='greet', timer='0 */5 * * * *')
async def greet_users():
...
Runs at the given timer, or can be triggered at /greet.
Metadata
Release files for func-az 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| func_az-0.1.9.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| func_az-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / func_az-0.1.9.tar.gz
| Download URL | func_az-0.1.9.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c7cf75b29529732b79a4d41456e9335daeb59eab221ad8d974cf04a6443547a
|
|
BLAKE2b-256 checksum How to use checksums |
dc3e5fe2f16e2aa578b24b7cc5e3ccd77ad0677e41a4b5732c1fe7415820fe5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / func_az-0.1.9-py3-none-any.whl
| Download URL | func_az-0.1.9-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9039aaf3efb6c111fb1c9b02f1f3e9ea5b350355c383c78213e85ac49181b342
|
|
BLAKE2b-256 checksum How to use checksums |
22860f9c842939f9d9c28fe08f530b7bd53fcf94179640f7f001ba98a5b687b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|