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

https://github.com/app-generator/deploy-automation-render-demo

Open-Source Wrapper over the Render Platform API | AppSeed
https://github.com/app-generator/deploy-automation-render-demo

appseed deployment render

Last synced: about 1 year ago
JSON representation

Open-Source Wrapper over the Render Platform API | AppSeed

Awesome Lists containing this project

README

          

# Render API Wrapper - `Python`

Python wrapper for [Render](https://render.com/) Deployment API - actively supported by **[AppSeed](https://appseed.us/)**.


> Roadmap

| Item | Python | Info |
| --- | --- | --- |
| Deploy Web Service `Flask` | ✅ | [docs](./docs/python/deploy-flask.md) |
| Deploy Static Site (subdomain) | ❌ | - |
| Deploy Web Service `Django` | ❌ | - |


## How to use it

> Install modules

```bash
$ virtualenv env
$ source env/bin/activate
$ pip install -r requirements.txt
```


> Export Variables

```bash
$ # Unix / MacOs
$ export RENDER_API_KEY= # mandatory
$ export RENDER_OWNER_ID= # optional
$ export DEBUG=1 # enables verbose output
$
$ # Windows - CMD
$ set RENDER_API_KEY= # mandatory
$ set RENDER_OWNER_ID= # optional
$ set DEBUG=1 # enables verbose output
$
$ # Windows - Powershell
$ $env:RENDER_API_KEY = "" # mandatory
$ $env:RENDER_OWNER_ID = "" # optional
$ $env:DEBUG = "1" # enables verbose output
```


> EXEC API

| Item | Info | Sample Output | HELP |
| --- | --- | --- | --- |
| `python .\runner.py` | CLI Help | `Usage: runner.py COMMAND ARGS` | - |
| `python .\runner.py check` | Print API_KEY | `rnd_TgNuy1N*****` | - |
| `python .\runner.py all_owners` | Print all owners | `['usr-ccteupaen****', 'tea-ccts5053t398****']` | - |
| `python .\runner.py owner` | Get First Owner | `rnd_TgNuy1N*****` | - |
| --- | --- | --- | --- |
| `python .\runner.py deploy_flask REPO_URL` | Deploy Flask APP | ` > Deploy ID [dep-cdgjfbien0hj5ea9cbm0]` | - |


---
Render API Wrapper - Free tool provided by [AppSeed](https://appseed.us/)