unofficial caprover api to deploy apps to caprover
Project description
Caprover API
unofficial caprover api to deploy apps to caprover
Free software: MIT license
Full Documentation: https://caprover-api.readthedocs.io.
Features
create app
add custom domain
enable ssl
update app with port mappings, env variables, repo info etc
deploy one click apps
get list of all apps
get app by name
delete app
delete app and it’s volumes
stop app
scale app
Usage
To use Caprover API in a project:
from caprover_api import caprover_api cap = caprover_api.CaproverAPI( dashboard_url="cap-dashboard-url", password="cap-dashboard-password" )
One Click Apps
get app name from List of one-click-apps
automated deploy:
app_variables = { "$$cap_redis_password": "REDIS-PASSWORD-HERE" } cap.deploy_one_click_app( one_click_app_name='redis', namespace='new-app', app_variables=app_variables, automated=True )
manual deploy (you will be asked to enter required variables during runtime):
cap.deploy_one_click_app( one_click_app_name='redis', namespace='new-app', )
Custom Apps
create a new app:
cap.create_app( app_name="new-app", has_persistent_data=False )
create and deploy redis app from docker hub:
cap.create_and_update_app( app_name="new-app-redis", has_persistent_data=False, image_name='redis:5', persistent_directories=['new-app-redis-data:/data', ] )
History
0.1.0 (2021-06-11)
First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file caprover_api-0.1.23.tar.gz
.
File metadata
- Download URL: caprover_api-0.1.23.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a1b84a253f03bb1f9650d57e6be05f131c29a2ae0875d5bca6f90297e8eefcc |
|
MD5 | c7bec582e757fef41d2c191ae06aada8 |
|
BLAKE2b-256 | 8db7caf38fef2902e07ce0be3d171a8471d43cdf569cfe9569b4cdba6c64c4c7 |
File details
Details for the file caprover_api-0.1.23-py2.py3-none-any.whl
.
File metadata
- Download URL: caprover_api-0.1.23-py2.py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.7.1 requests/2.26.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bca5cb25243ea8cbc8e8ced35da4905f5094321e9ffbfc96101e5470436990e |
|
MD5 | f8f54d47a82b5ba7d76cf1b1b0e2d37f |
|
BLAKE2b-256 | 602d9a3a7973fa95aad7033b50c62a5d2c4d092b1b080d2f17de3970fb26d9f4 |