New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

caprover-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caprover-api

unofficial caprover api to deploy apps to caprover

  • 0.1.24
  • PyPI
  • Socket score

Maintainers
1

============ Caprover API

.. image:: https://img.shields.io/pypi/v/caprover_api.svg :target: https://pypi.python.org/pypi/caprover_api

.. image:: https://img.shields.io/travis/ak4zh/caprover_api.svg :target: https://travis-ci.com/ak4zh/caprover_api

.. image:: https://readthedocs.org/projects/caprover-api/badge/?version=latest :target: https://caprover-api.readthedocs.io/en/latest/?version=latest :alt: 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 <https://github.com/caprover/one-click-apps/tree/master/public/v4/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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc