This is a Python package designed for monitoring cron jobs through Starecase.io
Project description
This is a Python module designed for monitoring cron jobs through Starecase.io
Installation
pip install starecase-cron-monitor==0.1.2
Prerequisite
You will need to:
- Fill the form to get API Key: URL btw it's Free to use 🎉
- Own a Starecase account
- Create a Starecase API Key
Environment Variables
We recommend using environment variables for storing your API Key. To set values for these variables, use the following variable names:
- STARECASE_API_KEY: To store the API Key.
Quick Start
Initialise Service
Just initialise the service by:
from cron_monitor.initialiser import initialize_service
initialize_service("YOUR_API_KEY")
Decorate methods
You need to add the @monitor decorator to your function you are using. Below is an example :
from cron_monitor.decorator import monitor
@monitor(job_name="test-python-job-name", job_group="python-test-group", expression="* * * * *", debug=True)
def my_job():
License
This project is licensed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file starecase_cron_monitor-0.1.2.tar.gz.
File metadata
- Download URL: starecase_cron_monitor-0.1.2.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8969c7a04a210c6a2d600a59352cb16252eefeeb27864ebc7d1ee89a63f64e
|
|
| MD5 |
04ea5d9d34f746e08b229fe12b6315d9
|
|
| BLAKE2b-256 |
78a4389ac9f0c91e3bd7cc87d6be7861423174ec04af58fe8570d1c63102d4d5
|