prefect-soda-cloud


Nameprefect-soda-cloud JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/AlessandroLollo/prefect-soda-cloud
SummaryCollection of Prefect tasks to interact with Soda Cloud APIs.
upload_time2024-03-07 14:14:52
maintainer
docs_urlNone
authorAlessandro Lollo
requires_python>=3.8
licenseApache License 2.0
keywords prefect
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # prefect-soda-cloud

<p align="center">
    <!--- Insert a cover image here -->
    <!--- <br> -->
    <a href="https://pypi.python.org/pypi/prefect-soda-cloud/" alt="PyPI version">
        <img alt="PyPI" src="https://img.shields.io/pypi/v/prefect-soda-cloud?color=0052FF&labelColor=090422"></a>
    <a href="https://github.com/AlessandroLollo/prefect-soda-cloud/" alt="Stars">
        <img src="https://img.shields.io/github/stars/AlessandroLollo/prefect-soda-cloud?color=0052FF&labelColor=090422" /></a>
    <a href="https://pypistats.org/packages/prefect-soda-cloud/" alt="Downloads">
        <img src="https://img.shields.io/pypi/dm/prefect-soda-cloud?color=0052FF&labelColor=090422" /></a>
    <a href="https://github.com/AlessandroLollo/prefect-soda-cloud/pulse" alt="Activity">
        <img src="https://img.shields.io/github/commit-activity/m/AlessandroLollo/prefect-soda-cloud?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>

Visit the full docs [here](https://AlessandroLollo.github.io/prefect-soda-cloud) to see additional examples and the API reference.

Collection of Prefect tasks to interact with Soda Cloud APIs.


<!--- ### Add a real-world example of how to use this Collection here

Offer some motivation on why this helps.

After installing `prefect-soda-cloud` and [saving the credentials](#saving-credentials-to-block), you can easily use it within your flows to help you achieve the aforementioned benefits!

```python
from prefect import flow, get_run_logger
```

--->

## Resources

For more tips on how to use tasks and flows in a Collection, check out [Using Collections](https://docs.prefect.io/collections/usage/)!

### Installation

Install `prefect-soda-cloud` with `pip`:

```bash
pip install prefect-soda-cloud
```

Requires an installation of Python 3.8+.

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://docs.prefect.io/).

### Examples
<!--- ### Saving credentials to block -->

Note, to use the `load` method on Blocks, you must already have a block document [saved through code](https://docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://docs.prefect.io/ui/blocks/).

Below is an example on saving block documents through code.

```python title="save_soda_cloud_credentials_as_block.py"
from prefect_soda_cloud import SodaCloudCredentials

SodaCloudCredentials(
    user_or_api_key_id="<username or API key ID>",
    pwd_or_api_key_secret="<password or API key secret>"
).save("your_block_fancy_name")
```

```python title="save_soda_cloud_auth_config_as_block.py"
from prefect_soda_cloud import SodaCloudAuthConfig, SodaCloudCredentials

# Assuming you have already registered your Soda Cloud credentials in a block, you can load it
creds = SodaCloudCredentials.load("your_block_fancy_name")

SodaCloudAuthConfig(
    api_base_url="https://cloud.soda.io",
    creds=creds
).save("another_fancy_name")
```

!!! info "Registering blocks"

    Register blocks in this module to
    [view and edit them](https://docs.prefect.io/ui/blocks/)
    on Prefect Cloud:

    ```bash
    prefect block register -m prefect_soda_cloud
    ```

A list of available blocks in `prefect-soda-cloud` and their setup instructions can be found [here](./auth_config).

<!-- --->

### Feedback

If you encounter any bugs while using `prefect-soda-cloud`, feel free to open an issue in the [prefect-soda-cloud](https://github.com/AlessandroLollo/prefect-soda-cloud) repository.

If you have any questions or issues while using `prefect-soda-cloud`, 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 star or watch [`prefect-soda-cloud`](https://github.com/AlessandroLollo/prefect-soda-cloud) for updates too!

### Contributing

If you'd like to help contribute to fix an issue or add a feature to `prefect-soda-cloud`, please [propose changes through a pull request from a fork of the repository](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork).

Here are the steps:

1. [Fork the repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo#forking-a-repository)
2. [Clone the forked repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo#cloning-your-forked-repository)
3. Install the repository and its dependencies:
```
pip install -e ".[dev]"
```
4. Make desired changes
5. Add tests
6. Insert an entry to [CHANGELOG.md](https://github.com/AlessandroLollo/prefect-soda-cloud/blob/main/CHANGELOG.md)
7. Install `pre-commit` to perform quality checks prior to commit:
```
pre-commit install
```
8. `git commit`, `git push`, and create a pull request

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AlessandroLollo/prefect-soda-cloud",
    "name": "prefect-soda-cloud",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "prefect",
    "author": "Alessandro Lollo",
    "author_email": "alessandro.lollo@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/17/74/c570b5d818f70b16b1faadcf626688ecbbe725d5c99f76927ac565072d17/prefect-soda-cloud-0.0.1.tar.gz",
    "platform": null,
    "description": "# prefect-soda-cloud\n\n<p align=\"center\">\n    <!--- Insert a cover image here -->\n    <!--- <br> -->\n    <a href=\"https://pypi.python.org/pypi/prefect-soda-cloud/\" alt=\"PyPI version\">\n        <img alt=\"PyPI\" src=\"https://img.shields.io/pypi/v/prefect-soda-cloud?color=0052FF&labelColor=090422\"></a>\n    <a href=\"https://github.com/AlessandroLollo/prefect-soda-cloud/\" alt=\"Stars\">\n        <img src=\"https://img.shields.io/github/stars/AlessandroLollo/prefect-soda-cloud?color=0052FF&labelColor=090422\" /></a>\n    <a href=\"https://pypistats.org/packages/prefect-soda-cloud/\" alt=\"Downloads\">\n        <img src=\"https://img.shields.io/pypi/dm/prefect-soda-cloud?color=0052FF&labelColor=090422\" /></a>\n    <a href=\"https://github.com/AlessandroLollo/prefect-soda-cloud/pulse\" alt=\"Activity\">\n        <img src=\"https://img.shields.io/github/commit-activity/m/AlessandroLollo/prefect-soda-cloud?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\nVisit the full docs [here](https://AlessandroLollo.github.io/prefect-soda-cloud) to see additional examples and the API reference.\n\nCollection of Prefect tasks to interact with Soda Cloud APIs.\n\n\n<!--- ### Add a real-world example of how to use this Collection here\n\nOffer some motivation on why this helps.\n\nAfter installing `prefect-soda-cloud` and [saving the credentials](#saving-credentials-to-block), you can easily use it within your flows to help you achieve the aforementioned benefits!\n\n```python\nfrom prefect import flow, get_run_logger\n```\n\n--->\n\n## Resources\n\nFor more tips on how to use tasks and flows in a Collection, check out [Using Collections](https://docs.prefect.io/collections/usage/)!\n\n### Installation\n\nInstall `prefect-soda-cloud` with `pip`:\n\n```bash\npip install prefect-soda-cloud\n```\n\nRequires an installation of Python 3.8+.\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://docs.prefect.io/).\n\n### Examples\n<!--- ### Saving credentials to block -->\n\nNote, to use the `load` method on Blocks, you must already have a block document [saved through code](https://docs.prefect.io/concepts/blocks/#saving-blocks) or [saved through the UI](https://docs.prefect.io/ui/blocks/).\n\nBelow is an example on saving block documents through code.\n\n```python title=\"save_soda_cloud_credentials_as_block.py\"\nfrom prefect_soda_cloud import SodaCloudCredentials\n\nSodaCloudCredentials(\n    user_or_api_key_id=\"<username or API key ID>\",\n    pwd_or_api_key_secret=\"<password or API key secret>\"\n).save(\"your_block_fancy_name\")\n```\n\n```python title=\"save_soda_cloud_auth_config_as_block.py\"\nfrom prefect_soda_cloud import SodaCloudAuthConfig, SodaCloudCredentials\n\n# Assuming you have already registered your Soda Cloud credentials in a block, you can load it\ncreds = SodaCloudCredentials.load(\"your_block_fancy_name\")\n\nSodaCloudAuthConfig(\n    api_base_url=\"https://cloud.soda.io\",\n    creds=creds\n).save(\"another_fancy_name\")\n```\n\n!!! info \"Registering blocks\"\n\n    Register blocks in this module to\n    [view and edit them](https://docs.prefect.io/ui/blocks/)\n    on Prefect Cloud:\n\n    ```bash\n    prefect block register -m prefect_soda_cloud\n    ```\n\nA list of available blocks in `prefect-soda-cloud` and their setup instructions can be found [here](./auth_config).\n\n<!-- --->\n\n### Feedback\n\nIf you encounter any bugs while using `prefect-soda-cloud`, feel free to open an issue in the [prefect-soda-cloud](https://github.com/AlessandroLollo/prefect-soda-cloud) repository.\n\nIf you have any questions or issues while using `prefect-soda-cloud`, 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 star or watch [`prefect-soda-cloud`](https://github.com/AlessandroLollo/prefect-soda-cloud) for updates too!\n\n### Contributing\n\nIf you'd like to help contribute to fix an issue or add a feature to `prefect-soda-cloud`, please [propose changes through a pull request from a fork of the repository](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork).\n\nHere are the steps:\n\n1. [Fork the repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo#forking-a-repository)\n2. [Clone the forked repository](https://docs.github.com/en/get-started/quickstart/fork-a-repo#cloning-your-forked-repository)\n3. Install the repository and its dependencies:\n```\npip install -e \".[dev]\"\n```\n4. Make desired changes\n5. Add tests\n6. Insert an entry to [CHANGELOG.md](https://github.com/AlessandroLollo/prefect-soda-cloud/blob/main/CHANGELOG.md)\n7. Install `pre-commit` to perform quality checks prior to commit:\n```\npre-commit install\n```\n8. `git commit`, `git push`, and create a pull request\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "Collection of Prefect tasks to interact with Soda Cloud APIs.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/AlessandroLollo/prefect-soda-cloud"
    },
    "split_keywords": [
        "prefect"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a86682b3f12a88b2f529b1878c5eb612c601f0fc73c63270442afbe079d5a26b",
                "md5": "1920f2e4fa2665cea90892bd3a5e9a6c",
                "sha256": "a59914e345e5c9a9f2a16bc14255e04df0926763fb070906465263f38ab2543f"
            },
            "downloads": -1,
            "filename": "prefect_soda_cloud-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1920f2e4fa2665cea90892bd3a5e9a6c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 13317,
            "upload_time": "2024-03-07T14:14:23",
            "upload_time_iso_8601": "2024-03-07T14:14:23.828886Z",
            "url": "https://files.pythonhosted.org/packages/a8/66/82b3f12a88b2f529b1878c5eb612c601f0fc73c63270442afbe079d5a26b/prefect_soda_cloud-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1774c570b5d818f70b16b1faadcf626688ecbbe725d5c99f76927ac565072d17",
                "md5": "3a093d2a822619c27181a416c98dd4a2",
                "sha256": "17d4e6e1bf71dead6b07b2ab080a0d78d45537798729f0bd1af4847c59556fbb"
            },
            "downloads": -1,
            "filename": "prefect-soda-cloud-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "3a093d2a822619c27181a416c98dd4a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 33603,
            "upload_time": "2024-03-07T14:14:52",
            "upload_time_iso_8601": "2024-03-07T14:14:52.010913Z",
            "url": "https://files.pythonhosted.org/packages/17/74/c570b5d818f70b16b1faadcf626688ecbbe725d5c99f76927ac565072d17/prefect-soda-cloud-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-07 14:14:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AlessandroLollo",
    "github_project": "prefect-soda-cloud",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "prefect-soda-cloud"
}
        
Elapsed time: 0.21611s