waylay-sdk-storage


Namewaylay-sdk-storage JSON
Version 0.4.4.20240802 PyPI version JSON
download
home_pageNone
SummaryWaylay Storage
upload_time2024-08-02 13:42:41
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 storage
VCS
bugtrack_url
requirements pydantic typing-extensions waylay-sdk-core
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Waylay Storage Service

Manage storage buckets and subscriptions.


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

It consists of a plugin for the waylay-sdk-core package, and contains the Storage 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-storage-types.

## Requirements.
This package requires Python 3.9+.

## Installation

Normally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:
* `pip install waylay-sdk` will install `waylay-sdk-storage` together with the SDK api packages for other services.
* `pip install waylay-sdk[types-storage]` will additionally install the types package `waylay-sdk-storage-types`.
* `pip install waylay-sdk[types]` will install the types packages for this and all other services.

Alternatively, you can install support for this _storage_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):

- `pip install waylay-sdk-storage` to only install api support for _storage_.
- `pip install waylay-sdk-storage[types]` to additionally install type support for _storage_.

## 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-storage-types` is installed
from waylay.services.storage.models.tenant_status_report import TenantStatusReport
try:
    # Status
    # calls `GET /storage/v1/status`
    api_response = await waylay_client.storage.about.status(
        # query parameters:
        query = {
            'include_buckets': True
            'include_queues': True
            'include_disk_usage': False
        },
    )
    print("The response of storage.about.status:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling storage.about.status: %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-storage",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "Waylay Storage",
    "author": null,
    "author_email": "Waylay <info@waylay.io>",
    "download_url": "https://files.pythonhosted.org/packages/16/ec/1c5e9e8351dd00ac64d5d0a9c13a6b01951dd8714d168471f5cb176b582f/waylay_sdk_storage-0.4.4.20240802.tar.gz",
    "platform": null,
    "description": "# Waylay Storage Service\n\nManage storage buckets and subscriptions.\n\n\nThis Python package is automatically generated based on the \nWaylay Storage OpenAPI specification (API version: 0.4.4)\nFor more information, please visit [the openapi specification](https://docs.waylay.io/openapi/public/redocly/storage.html).\n\nIt consists of a plugin for the waylay-sdk-core package, and contains the Storage 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-storage-types.\n\n## Requirements.\nThis package requires Python 3.9+.\n\n## Installation\n\nNormally this package is installed together with support for other services using the [waylay-sdk](https://pypi.org/project/waylay-sdk/) umbrella package:\n* `pip install waylay-sdk` will install `waylay-sdk-storage` together with the SDK api packages for other services.\n* `pip install waylay-sdk[types-storage]` will additionally install the types package `waylay-sdk-storage-types`.\n* `pip install waylay-sdk[types]` will install the types packages for this and all other services.\n\nAlternatively, you can install support for this _storage_ service only, installing or extending an existing [waylay-sdk-core](https://pypi.org/project/waylay-sdk-core/):\n\n- `pip install waylay-sdk-storage` to only install api support for _storage_.\n- `pip install waylay-sdk-storage[types]` to additionally install type support for _storage_.\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-storage-types` is installed\nfrom waylay.services.storage.models.tenant_status_report import TenantStatusReport\ntry:\n    # Status\n    # calls `GET /storage/v1/status`\n    api_response = await waylay_client.storage.about.status(\n        # query parameters:\n        query = {\n            'include_buckets': True\n            'include_queues': True\n            'include_disk_usage': False\n        },\n    )\n    print(\"The response of storage.about.status:\\n\")\n    pprint(api_response)\nexcept ApiError as e:\n    print(\"Exception when calling storage.about.status: %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 Storage",
    "version": "0.4.4.20240802",
    "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/storage.html",
        "Repository": "https://github.com/waylayio/waylay-sdk-storage-py.git"
    },
    "split_keywords": [
        "waylay",
        "storage"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "47d32b571dff83945ec1ead9a50f8b6db186b59fa36463dbf6720f30a8ef3f39",
                "md5": "49a12458f5f8f1b46be73104705dcb58",
                "sha256": "2991e931c7b3e4b291ff9350fb4e50b51f880dbfcfdd909ee1f56aad60e05d67"
            },
            "downloads": -1,
            "filename": "waylay_sdk_storage-0.4.4.20240802-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "49a12458f5f8f1b46be73104705dcb58",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 16626,
            "upload_time": "2024-08-02T13:42:40",
            "upload_time_iso_8601": "2024-08-02T13:42:40.112978Z",
            "url": "https://files.pythonhosted.org/packages/47/d3/2b571dff83945ec1ead9a50f8b6db186b59fa36463dbf6720f30a8ef3f39/waylay_sdk_storage-0.4.4.20240802-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "16ec1c5e9e8351dd00ac64d5d0a9c13a6b01951dd8714d168471f5cb176b582f",
                "md5": "9c1528d0670ce776701cb86fbcf165cc",
                "sha256": "3bbe8b6f81e163e2640509559abc3cc36887e074b19cf1edb86998d25b579227"
            },
            "downloads": -1,
            "filename": "waylay_sdk_storage-0.4.4.20240802.tar.gz",
            "has_sig": false,
            "md5_digest": "9c1528d0670ce776701cb86fbcf165cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 11541,
            "upload_time": "2024-08-02T13:42:41",
            "upload_time_iso_8601": "2024-08-02T13:42:41.749623Z",
            "url": "https://files.pythonhosted.org/packages/16/ec/1c5e9e8351dd00ac64d5d0a9c13a6b01951dd8714d168471f5cb176b582f/waylay_sdk_storage-0.4.4.20240802.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-02 13:42:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "waylayio",
    "github_project": "waylay-sdk-storage-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "pydantic",
            "specs": [
                [
                    "~=",
                    "2.6"
                ]
            ]
        },
        {
            "name": "typing-extensions",
            "specs": [
                [
                    "~=",
                    "4.9"
                ]
            ]
        },
        {
            "name": "waylay-sdk-core",
            "specs": [
                [
                    "~=",
                    "0.2.3"
                ]
            ]
        }
    ],
    "lcname": "waylay-sdk-storage"
}
        
Elapsed time: 0.55148s