Skip to main content

Python wrapper for ReStack API

Project description

pyuptimekuma

Simple Python wrapper for ReStack

Installation

python3 -m pip install pyrestack

Example

import asyncio

import aiohttp

from pyrestack import ReStack

URL = ""
USERNAME = ""
PASSWORD = ""
VERIFY_SSL = True


async def main():

    async with aiohttp.ClientSession() as session:
        restack_api = ReStack(session, URL, USERNAME, PASSWORD, VERIFY_SSL)
        response = await restack_api.async_get_stacks()
        print(response.data)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Credit

I would like to give a special thanks to these repositories since a lot of code has been inspired by them.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrestack-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pyrestack-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pyrestack-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pyrestack-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4f949de609b8c2ee6a61b6d2d58e858476c16e308f4edc6f6ea0da8ae937f3
MD5 a402556a8817b0e746f5bf78391890dd
BLAKE2b-256 f961a4d184143af3c98c4eeda47196b6fdc65809d11b684c482cc223f7d7b123

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page