waylay-sdk-rules


Namewaylay-sdk-rules JSON
Version 6.5.0.20240415 PyPI version JSON
download
home_pageNone
SummaryWaylay rules engine
upload_time2024-04-15 08:15:12
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseISC License (ISC) Copyright 2024, Waylay Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
keywords waylay rules engine
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Waylay Rules Service
The REST api to manage rule tasks and rule templates in the Waylay platform.

This Python package is automatically generated based on the 
Waylay Rules OpenAPI specification (API version: 6.5.0)
For more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/rules.html).

It consists of a plugin for the waylay-sdk-core package, and contains the Rules api methods.
Note that the typed model classes for all path params, query params, body params and responses for each of the api methods are contained in a separate package called waylay-sdk-rules-types.

## Requirements.
This package requires Python 3.9+.

## Installation
Typically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.
When the service api methods are required, waylay-sdk-rules is included in:
- ```pip install waylay-sdk-core[rules]``` to install `waylay-sdk-core` along with only this service, or
- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.
When the typed models are required, both waylay-sdk-rules and waylay-sdk-rules-types are included in:
- ```pip install waylay-sdk-core[rules,rules-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or
- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.

## Usage

```python
from pprint import pprint

# Import the waylay-client from the waylay-sdk-core package
from waylay.sdk.client import WaylayClient
from waylay.sdk.api.api_exceptions import ApiError

# Intialize a waylay client instance
waylay_client = WaylayClient.from_profile()

# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-rules-types` is installed
from waylay.services.rules.models.version_response import VersionResponse
try:
    # Get Service Information
    # calls `GET /rules/v1`
    api_response = await waylay_client.rules.about.get(
    )
    print("The response of rules.about.get:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling rules.about.get: %s\n" % e)
```


For more information, please visit the [Waylay API documentation](https://docs.waylay.io/#/api/?id=software-development-kits).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "waylay-sdk-rules",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Waylay rules engine",
    "author": null,
    "author_email": "Waylay <info@waylay.io>",
    "download_url": "https://files.pythonhosted.org/packages/64/c4/fb2c0afc8d54608f64aae9c96194db0fb77b153c34a46349ef0f0668fd6a/waylay_sdk_rules-6.5.0.20240415.tar.gz",
    "platform": null,
    "description": "# Waylay Rules Service\nThe REST api to manage rule tasks and rule templates in the Waylay platform.\n\nThis Python package is automatically generated based on the \nWaylay Rules OpenAPI specification (API version: 6.5.0)\nFor more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/rules.html).\n\nIt consists of a plugin for the waylay-sdk-core package, and contains the Rules api methods.\nNote that the typed model classes for all path params, query params, body params and responses for each of the api methods are contained in a separate package called waylay-sdk-rules-types.\n\n## Requirements.\nThis package requires Python 3.9+.\n\n## Installation\nTypically this package is installed when installing the [waylay-sdk-core](https://pypi.org/project/waylay-sdk/) package to enable the service's functionality.\nWhen the service api methods are required, waylay-sdk-rules is included in:\n- ```pip install waylay-sdk-core[rules]``` to install `waylay-sdk-core` along with only this service, or\n- ```pip install waylay-sdk-core[services]``` to install `waylay-sdk-core` along with all services.\nWhen the typed models are required, both waylay-sdk-rules and waylay-sdk-rules-types are included in:\n- ```pip install waylay-sdk-core[rules,rules-types]``` to install `waylay-sdk-core` along with only this service including the typed models, or\n- ```pip install waylay-sdk-core[services,services-types]``` to install `waylay-sdk-core` along with all services along with the typed models.\n\n## Usage\n\n```python\nfrom pprint import pprint\n\n# Import the waylay-client from the waylay-sdk-core package\nfrom waylay.sdk.client import WaylayClient\nfrom waylay.sdk.api.api_exceptions import ApiError\n\n# Intialize a waylay client instance\nwaylay_client = WaylayClient.from_profile()\n\n# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-rules-types` is installed\nfrom waylay.services.rules.models.version_response import VersionResponse\ntry:\n    # Get Service Information\n    # calls `GET /rules/v1`\n    api_response = await waylay_client.rules.about.get(\n    )\n    print(\"The response of rules.about.get:\\n\")\n    pprint(api_response)\nexcept ApiError as e:\n    print(\"Exception when calling rules.about.get: %s\\n\" % e)\n```\n\n\nFor more information, please visit the [Waylay API documentation](https://docs.waylay.io/#/api/?id=software-development-kits).\n",
    "bugtrack_url": null,
    "license": "ISC License (ISC) Copyright 2024, Waylay  Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.  THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.",
    "summary": "Waylay rules engine",
    "version": "6.5.0.20240415",
    "project_urls": {
        "Documentation": "https://docs.waylay.io/#/api/?id=software-development-kits",
        "Homepage": "https://www.waylay.io/",
        "Openapi Specification": "https://docs.waylay.io/openapi/public/redocly/rules.html",
        "Repository": "https://github.com/waylayio/waylay-sdk-rules-py.git"
    },
    "split_keywords": [
        "waylay",
        "rules",
        "engine"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2381e77105bf896f7e50abb4461a3652cd9e33e0b7f5d0ac221dcae405c4c15",
                "md5": "bf86c538bc2b1e75f347d9fa0178c1a0",
                "sha256": "8a3ed72c40e695104adf6fc81799903a1f6e6df75a5b3dfaebde7743031268aa"
            },
            "downloads": -1,
            "filename": "waylay_sdk_rules-6.5.0.20240415-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bf86c538bc2b1e75f347d9fa0178c1a0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 27432,
            "upload_time": "2024-04-15T08:15:11",
            "upload_time_iso_8601": "2024-04-15T08:15:11.650641Z",
            "url": "https://files.pythonhosted.org/packages/a2/38/1e77105bf896f7e50abb4461a3652cd9e33e0b7f5d0ac221dcae405c4c15/waylay_sdk_rules-6.5.0.20240415-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "64c4fb2c0afc8d54608f64aae9c96194db0fb77b153c34a46349ef0f0668fd6a",
                "md5": "72646eb546a1ccae051f80ef85988fce",
                "sha256": "076177f3c286ae080998a7df4f0dd0afbf91b5468d2fccb5850cd4b6368d711f"
            },
            "downloads": -1,
            "filename": "waylay_sdk_rules-6.5.0.20240415.tar.gz",
            "has_sig": false,
            "md5_digest": "72646eb546a1ccae051f80ef85988fce",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 16622,
            "upload_time": "2024-04-15T08:15:12",
            "upload_time_iso_8601": "2024-04-15T08:15:12.853158Z",
            "url": "https://files.pythonhosted.org/packages/64/c4/fb2c0afc8d54608f64aae9c96194db0fb77b153c34a46349ef0f0668fd6a/waylay_sdk_rules-6.5.0.20240415.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-15 08:15:12",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "waylayio",
    "github_project": "waylay-sdk-rules-py",
    "github_not_found": true,
    "lcname": "waylay-sdk-rules"
}
        
Elapsed time: 0.23401s