# Cronpulse
Cronpulse is a simple Python package to monitor and wrap cron jobs with state pings.
## Installation
```bash
pip install cronpulse
```
## Using Monitor directly
```python
monitor = Monitor("your_job_key")
monitor.ping("run")
# Your job logic here
monitor.ping("complete")
```
## Using wrap function
```python
async def example_job(): # Your job logic here
wrapped_job = wrap("your_job_key", example_job)
await wrapped_job()
# cronpulse-python
```
Raw data
{
"_id": null,
"home_page": "https://github.com/cronpulse-live/cronpulse-python.git",
"name": "cronpulse",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Amr Sobhy",
"author_email": "team@cronpulse.live",
"download_url": "https://files.pythonhosted.org/packages/8a/04/01b6c48b0018cca7b6d6ab3e302e34afa4dfa79078c21b1b9640bec1cae9/cronpulse-0.3.1.tar.gz",
"platform": null,
"description": "# Cronpulse\n\nCronpulse is a simple Python package to monitor and wrap cron jobs with state pings.\n\n## Installation\n\n```bash\npip install cronpulse\n```\n\n## Using Monitor directly\n\n```python\nmonitor = Monitor(\"your_job_key\")\nmonitor.ping(\"run\")\n# Your job logic here\nmonitor.ping(\"complete\")\n```\n\n## Using wrap function\n\n```python\nasync def example_job(): # Your job logic here\n\nwrapped_job = wrap(\"your_job_key\", example_job)\nawait wrapped_job()\n# cronpulse-python\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "A simple monitor and wrap function for cron jobs",
"version": "0.3.1",
"project_urls": {
"Homepage": "https://github.com/cronpulse-live/cronpulse-python.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a363c83ea6b49f1478cd412f9c9d1bbf7fe173a1bc6a0de17322062c02b4e924",
"md5": "03cecc88c65ebfb6001658a2e2704888",
"sha256": "f4a9587fda8d015df7189d884e54cb0f8f0597f815d3e37b623dc07d90c23c64"
},
"downloads": -1,
"filename": "cronpulse-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03cecc88c65ebfb6001658a2e2704888",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2796,
"upload_time": "2024-08-10T10:00:00",
"upload_time_iso_8601": "2024-08-10T10:00:00.591450Z",
"url": "https://files.pythonhosted.org/packages/a3/63/c83ea6b49f1478cd412f9c9d1bbf7fe173a1bc6a0de17322062c02b4e924/cronpulse-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a0401b6c48b0018cca7b6d6ab3e302e34afa4dfa79078c21b1b9640bec1cae9",
"md5": "c4093ffe4e0e198c3cb5dc6722068ff6",
"sha256": "062b5ce4270bae5c4de0a14811fe78f8dbec59bdc1465dc587c5bad9bfc5528b"
},
"downloads": -1,
"filename": "cronpulse-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "c4093ffe4e0e198c3cb5dc6722068ff6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 3384,
"upload_time": "2024-08-10T10:00:02",
"upload_time_iso_8601": "2024-08-10T10:00:02.679191Z",
"url": "https://files.pythonhosted.org/packages/8a/04/01b6c48b0018cca7b6d6ab3e302e34afa4dfa79078c21b1b9640bec1cae9/cronpulse-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-10 10:00:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cronpulse-live",
"github_project": "cronpulse-python",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "cronpulse"
}