# prefect-sifflet
<p align="center">
<a href="https://pypi.python.org/pypi/prefect-sifflet/" alt="PyPI version">
<img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-sifflet?color=0052FF&labelColor=090422"></a>
<a href="https://github.com/AlessandroLollo/prefect-sifflet/" alt="Stars">
<img src="https://img.shields.io/github/stars/AlessandroLollo/prefect-sifflet?color=0052FF&labelColor=090422" /></a>
<a href="https://pepy.tech/badge/prefect-sifflet/" alt="Downloads">
<img src="https://img.shields.io/pypi/dm/prefect-sifflet?color=0052FF&labelColor=090422" /></a>
<a href="https://github.com/AlessandroLollo/prefect-sifflet/pulse" alt="Activity">
<img src="https://img.shields.io/github/commit-activity/m/AlessandroLollo/prefect-sifflet?color=0052FF&labelColor=090422" /></a>
<br>
<a href="https://prefect-community.slack.com" alt="Slack">
<img src="https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack" /></a>
<a href="https://discourse.prefect.io/" alt="Discourse">
<img src="https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse" /></a>
</p>
## Welcome!
Integrate Sifflet Data Observability Platform with Prefect
## Getting Started
### Python setup
Requires an installation of Python 3.7+.
We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.
These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the [Prefect documentation](https://orion-docs.prefect.io/).
### Installation
Install `prefect-sifflet` with `pip`:
```bash
pip install prefect-sifflet
```
Then, register to [view the block](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:
```bash
prefect block register -m prefect_sifflet.credentials
```
Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).
### Write and run a flow
```python
from prefect import flow
from prefect_sifflet.tasks import (
trigger_sifflet_rule_run,
get_sifflet_rule_run,
)
@flow
def execute_rule():
tenant = "<your tenant>"
api_token = "<your API token>"
rule_id = "<your rule ID>"
response = trigger_sifflet_rule_run(
tenant=tenant,
api_token=api_token,
rule_id=rule_id,
wait_for_completion=False
)
rule_run_id = response["id"]
rule_run_result = get_sifflet_rule_run(
tenant=tenant,
api_token=api_token,
rule_id=rule_id,
rule_run_id=rule_run_id
)
execute_rule()
```
## Resources
If you encounter any bugs while using `prefect-sifflet`, feel free to open an issue in the [prefect-sifflet](https://github.com/AlessandroLollo/prefect-sifflet) repository.
If you have any questions or issues while using `prefect-sifflet`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).
Feel free to ⭐️ or watch [`prefect-sifflet`](https://github.com/AlessandroLollo/prefect-sifflet) for updates too!
## Development
If you'd like to install a version of `prefect-sifflet` for development, clone the repository and perform an editable install with `pip`:
```bash
git clone https://github.com/AlessandroLollo/prefect-sifflet.git
cd prefect-sifflet/
pip install -e ".[dev]"
# Install linting pre-commit hooks
pre-commit install
```
Raw data
{
"_id": null,
"home_page": "https://github.com/AlessandroLollo/prefect-sifflet",
"name": "prefect-sifflet",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "prefect",
"author": "Alessandro Lollo",
"author_email": "alessandro.lollo@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/62/f4/c46ed6ff8ffe5993538ee501f7a0b8cf2b4c5402a1fa341f8c21f1f6bce0/prefect-sifflet-1.0.0.tar.gz",
"platform": null,
"description": "# prefect-sifflet\n\n<p align=\"center\">\n <a href=\"https://pypi.python.org/pypi/prefect-sifflet/\" alt=\"PyPI version\">\n <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/prefect-sifflet?color=0052FF&labelColor=090422\"></a>\n <a href=\"https://github.com/AlessandroLollo/prefect-sifflet/\" alt=\"Stars\">\n <img src=\"https://img.shields.io/github/stars/AlessandroLollo/prefect-sifflet?color=0052FF&labelColor=090422\" /></a>\n <a href=\"https://pepy.tech/badge/prefect-sifflet/\" alt=\"Downloads\">\n <img src=\"https://img.shields.io/pypi/dm/prefect-sifflet?color=0052FF&labelColor=090422\" /></a>\n <a href=\"https://github.com/AlessandroLollo/prefect-sifflet/pulse\" alt=\"Activity\">\n <img src=\"https://img.shields.io/github/commit-activity/m/AlessandroLollo/prefect-sifflet?color=0052FF&labelColor=090422\" /></a>\n <br>\n <a href=\"https://prefect-community.slack.com\" alt=\"Slack\">\n <img src=\"https://img.shields.io/badge/slack-join_community-red.svg?color=0052FF&labelColor=090422&logo=slack\" /></a>\n <a href=\"https://discourse.prefect.io/\" alt=\"Discourse\">\n <img src=\"https://img.shields.io/badge/discourse-browse_forum-red.svg?color=0052FF&labelColor=090422&logo=discourse\" /></a>\n</p>\n\n## Welcome!\n\nIntegrate Sifflet Data Observability Platform with Prefect\n\n## Getting Started\n\n### Python setup\n\nRequires an installation of Python 3.7+.\n\nWe recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.\n\nThese tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the [Prefect documentation](https://orion-docs.prefect.io/).\n\n### Installation\n\nInstall `prefect-sifflet` with `pip`:\n\n```bash\npip install prefect-sifflet\n```\n\nThen, register to [view the block](https://orion-docs.prefect.io/ui/blocks/) on Prefect Cloud:\n\n```bash\nprefect block register -m prefect_sifflet.credentials\n```\n\nNote, to use the `load` method on Blocks, you must already have a block document [saved through code](https://orion-docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://orion-docs.prefect.io/ui/blocks/).\n\n### Write and run a flow\n\n```python\nfrom prefect import flow\nfrom prefect_sifflet.tasks import (\n trigger_sifflet_rule_run,\n get_sifflet_rule_run,\n)\n\n\n@flow\ndef execute_rule():\n tenant = \"<your tenant>\"\n api_token = \"<your API token>\"\n rule_id = \"<your rule ID>\"\n\n response = trigger_sifflet_rule_run(\n tenant=tenant,\n api_token=api_token,\n rule_id=rule_id,\n wait_for_completion=False\n )\n rule_run_id = response[\"id\"]\n\n rule_run_result = get_sifflet_rule_run(\n tenant=tenant,\n api_token=api_token,\n rule_id=rule_id,\n rule_run_id=rule_run_id\n )\n\nexecute_rule()\n```\n\n## Resources\n\nIf you encounter any bugs while using `prefect-sifflet`, feel free to open an issue in the [prefect-sifflet](https://github.com/AlessandroLollo/prefect-sifflet) repository.\n\nIf you have any questions or issues while using `prefect-sifflet`, you can find help in either the [Prefect Discourse forum](https://discourse.prefect.io/) or the [Prefect Slack community](https://prefect.io/slack).\n\nFeel free to \u2b50\ufe0f or watch [`prefect-sifflet`](https://github.com/AlessandroLollo/prefect-sifflet) for updates too!\n\n## Development\n\nIf you'd like to install a version of `prefect-sifflet` for development, clone the repository and perform an editable install with `pip`:\n\n```bash\ngit clone https://github.com/AlessandroLollo/prefect-sifflet.git\n\ncd prefect-sifflet/\n\npip install -e \".[dev]\"\n\n# Install linting pre-commit hooks\npre-commit install\n```\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "Integrate Sifflet Data Observability Platform with Prefect",
"version": "1.0.0",
"split_keywords": [
"prefect"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e6a0f4035d2d5d0728d745afb7654d5213a4ac6fa08dcd8f137e7f038b38b028",
"md5": "5930ffbec3287fcd54a56f10cadedbdf",
"sha256": "3ddc99b12952992d19c6c0d552fe7dc2f4a92e5d968202fa39cee83ad4035545"
},
"downloads": -1,
"filename": "prefect_sifflet-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5930ffbec3287fcd54a56f10cadedbdf",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 10834,
"upload_time": "2023-02-10T15:28:03",
"upload_time_iso_8601": "2023-02-10T15:28:03.336920Z",
"url": "https://files.pythonhosted.org/packages/e6/a0/f4035d2d5d0728d745afb7654d5213a4ac6fa08dcd8f137e7f038b38b028/prefect_sifflet-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "62f4c46ed6ff8ffe5993538ee501f7a0b8cf2b4c5402a1fa341f8c21f1f6bce0",
"md5": "6964bd5b990c8fbf7c975ae4ce9b9de6",
"sha256": "4d82a9a35987a3c647351509b7e947aff61c9347ef0267ebceae19f776ea8d55"
},
"downloads": -1,
"filename": "prefect-sifflet-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "6964bd5b990c8fbf7c975ae4ce9b9de6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 27881,
"upload_time": "2023-02-10T15:28:05",
"upload_time_iso_8601": "2023-02-10T15:28:05.139573Z",
"url": "https://files.pythonhosted.org/packages/62/f4/c46ed6ff8ffe5993538ee501f7a0b8cf2b4c5402a1fa341f8c21f1f6bce0/prefect-sifflet-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-10 15:28:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "AlessandroLollo",
"github_project": "prefect-sifflet",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "prefect-sifflet"
}