Skip to main content

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.

Download files

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

Source Distribution

func_az-0.1.9.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

func_az-0.1.9-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file func_az-0.1.9.tar.gz.

File metadata

  • Download URL: func_az-0.1.9.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for func_az-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9c7cf75b29529732b79a4d41456e9335daeb59eab221ad8d974cf04a6443547a
MD5 2c18e2a5ab6f003e8b0c788b824992f8
BLAKE2b-256 dc3e5fe2f16e2aa578b24b7cc5e3ccd77ad0677e41a4b5732c1fe7415820fe5a

See more details on using hashes here.

File details

Details for the file func_az-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: func_az-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for func_az-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 9039aaf3efb6c111fb1c9b02f1f3e9ea5b350355c383c78213e85ac49181b342
MD5 451e213d4836a2da74cf3d7240a22625
BLAKE2b-256 22860f9c842939f9d9c28fe08f530b7bd53fcf94179640f7f001ba98a5b687b4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page