An open API service indexing awesome lists of open source software.

https://github.com/squarecloudofc/sdk-api-py

A wrapper written in Python with a focus on using our API.
https://github.com/squarecloudofc/sdk-api-py

pypi pypi-package python squarecloud

Last synced: 6 months ago
JSON representation

A wrapper written in Python with a focus on using our API.

Awesome Lists containing this project

README

          

[Square Cloud]: https://squarecloud.app

[Square Cloud API]: https://docs.squarecloud.app/api-reference/

[@allma]: https://github.com/Robert-Nogueira


Square Cloud Banner

squarecloud-api

A Python SDK for consuming the Square Cloud API.

## Installation

````shell
pip 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](https://docs.squarecloud.app/sdks/py) for more information about how to use this library.

## Getting started

```python
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](https://github.com/squarecloudofc/wrapper-api-py).

## Authors

- [@allma]