Skip to content

squarecloudofc/sdk-api-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Square Cloud Banner

squarecloud-api

A Python SDK for consuming the Square Cloud API.

Installation

pip install squarecloud-api

If you intend to use this SDK for command-line interface (CLI) operations, consider installing it with pipx:

pipx install squarecloud-api

Getting api key

to get your api key/token just go to the Square Cloud website and register/login, after that go to dashboard > my account > Regenerate API/CLI KEY and copy the key.

Documentation

Visit our official documentation for more information about how to use this library.

Getting started

import asyncio
import squarecloud as square

client = square.Client('API_KEY')

async def main():
    status = await client.app_status(app_id='application_id')
    print(status)
    print(status.ram)
    print(status.cpu)

asyncio.run(main())

Contributing

Feel free to contribute with suggestions or bug reports at our GitHub repository.

Authors