Skip to main content

Caprover API

https://img.shields.io/pypi/v/caprover_api.svg https://img.shields.io/travis/ak4zh/caprover_api.svg Documentation Status

unofficial caprover api to deploy apps to caprover

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.24 (2024-12-16)

  • Fix & test update from novel kwargs (#12)

  • update method lets you set httpAuth (#11)

  • update() now handles persistent directories that use hostPath (#7)

  • gen_random_hex works across whole one-click-app YAML (#6)

  • Bugfix: update() should not change notExposeAsWebApp (#8)

  • Enable SSL on base domain (#9)

  • Allow optional override one-click repository path (#5)

0.1.0 (2021-06-11)

  • First release on PyPI.

Release files for caprover-api 0.1.24

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caprover-api 0.1.24
File Size Uploaded
caprover_api-0.1.24.tar.gz 21.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for caprover-api 0.1.24
File Interpreter ABI Platform
caprover_api-0.1.24-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 33.0 kB

Release files / caprover_api-0.1.24.tar.gz

Download URL caprover_api-0.1.24.tar.gz
Size 21.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a98eb88b0b00d2d50fd96d84b6ddf95959fc65368eefe05fef045b60750507c3
BLAKE2b-256 checksum
How to use checksums
36e48a9f1f39413a4b1f2b969d19c0b11400d78690d5accd2ad5ae1c161c4bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release files / caprover_api-0.1.24-py2.py3-none-any.whl

Download URL caprover_api-0.1.24-py2.py3-none-any.whl
Size 11.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c0e215744c9511801bf28e555edb3d775babed2342599698f510f4493b530461
BLAKE2b-256 checksum
How to use checksums
f9086006e8dc163b571fd1bbdac06cd129a3d6e9a2cfe6469d671e5818b40fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.24 This release

2 release files

0.1.18

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page