A Python SDK for consuming the Square Cloud API.
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
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.
Visit our official documentation for more information about how to use this library.
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())
Feel free to contribute with suggestions or bug reports at our GitHub repository.