Skip to main content

Universal Command Line Environment for Pyconvox, a wrapper for convox application.

Project description

PyConvox


Description

A Wrapper application built around convox cli application. This can be modified more to restrict/limit convox access.


Requirements

  • Python version 3 and above
  • Convox cli installed and configured with the key

Installation

#Install Pyconvox using pip package (Only supported python3 and above)
pip install pyconvox

Usage

usage: pyconvox [-h] [--version]
                {env,railsconsole,bash,scale,instances,apps,logs,releases,ps}
                ...

pyconvox - a wrapper for the convox application

positional arguments:
  {env,railsconsole,bash,scale,instances,apps,logs,releases,ps}
                        Commands
    env                 list/set env vars
    railsconsole        run rails console
    bash                run bash
    scale               scale of a application
    instances           instances details of the rack
    apps                apps details of the rack
    logs                logs of a service
    releases            releases of a application
    ps                  processes running for application

optional arguments:
  -h, --help            show this help message and exit
  --version, -V         show program's version number and exit

List all the Applications

usage: pyconvox apps [-h]

optional arguments:
  -h, --help  show this help message and exit

Get environment variables of an application

pyconvox env -a APPNAME
usage: pyconvox env [-h] [--app APP] [set ...]

positional arguments:
  set                set environment variables KEY=VALUE

optional arguments:
  -h, --help         show this help message and exit
  --app APP, -a APP  application name
  • APPNAME is the name of the application listed in pyconvox apps.

Set environment variables to an application

pyconvox env set VARIABLE=VALUE -a APPNAME
usage: pyconvox env [-h] [--app APP] [--promote PROMOTE] [set ...]

positional arguments:
  set                   set environment variables KEY=VALUE

options:
  -h, --help            show this help message and exit
  --app APP, -a APP     application name
  --promote PROMOTE, -p PROMOTE
                        add "-p 1" at the end if you want to promote the change
  • VARIABLE is the name of the environment variable.
  • VALUE is the value of the environment variable.
  • APPNAME is the name of the application listed in pyconvox apps.

Get into Rails console of the application

pyconvox railsconsole -a APPNAME
          or 
pyconvox railsconsole -s SERVICE -a APPNAME
usage: pyconvox railsconsole [-h] [--app APP] [--service SERVICE]

optional arguments:
  -h, --help            show this help message and exit
  --app APP, -a APP     application name
  --service SERVICE, -s SERVICE
                        Service name
  • APPNAME is the name of the application listed in pyconvox apps.
  • SERVICE is the name of the service listed in pyconvox scale -a APPNAME.

Get into Bash console of the application

pyconvox bash -a APPNAME
          or 
pyconvox bash -s SERVICE -a APPNAME
usage: pyconvox bash [-h] [--app APP] [--service SERVICE]

optional arguments:
  -h, --help            show this help message and exit
  --app APP, -a APP     application name
  --service SERVICE, -s SERVICE
                        Service name
  • APPNAME is the name of the application listed in pyconvox apps.
  • SERVICE is the name of the service listed in pyconvox scale -a APPNAME.

Get Count,CPU and Memory of all the services/workers of an application

pyconvox scale -a APPNAME
usage: pyconvox scale [-h] [--app APP]

optional arguments:
  -h, --help         show this help message and exit
  --app APP, -a APP  application name
  • APPNAME is the name of the application listed in pyconvox apps.

Get currently running services/workers of an application

pyconvox ps -a APPNAME
usage: pyconvox ps [-h] [--app APP]

optional arguments:
  -h, --help         show this help message and exit
  --app APP, -a APP  application name
  • APPNAME is the name of the application listed in pyconvox apps.

Get Count,CPU and Memory of all the Instances

pyconvox instances
usage: pyconvox instances [-h]

optional arguments:
  -h, --help  show this help message and exit

Get release details of an application

pyconvox releases -a APPNAME
usage: pyconvox releases [-h] [--app APP]

optional arguments:
  -h, --help         show this help message and exit
  --app APP, -a APP  application name
  • APPNAME is the name of the application listed in pyconvox apps.

Stream current logs of an application

pyconvox logs -a APPNAME
usage: pyconvox logs [-h] [--app APP]

optional arguments:
  -h, --help         show this help message and exit
  --app APP, -a APP  application name
  • APPNAME is the name of the application listed in pyconvox apps.

Help of pyconvox

usage: pyconvox [--help|-h]

optional arguments:
  -h, --help  show this help message and exit

Version of pyconvox

usage: pyconvox [--version|-V]

optional arguments:
  -h, --help  show this help message and exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyconvox-0.2.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyconvox-0.2.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pyconvox-0.2.3.tar.gz.

File metadata

  • Download URL: pyconvox-0.2.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pyconvox-0.2.3.tar.gz
Algorithm Hash digest
SHA256 c0acc16b425ef394faa4284b1aa9501ca126d9400d2354c76dd9613f55ec4355
MD5 6bf16d0d89a12fdd44d6df35da84d1a0
BLAKE2b-256 85c7dcae1a328e56eddfb0736d7e4291871d552b4dc3f8eb20253636bcf1e531

See more details on using hashes here.

File details

Details for the file pyconvox-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: pyconvox-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pyconvox-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c419ebcbda8a5db90e7285093e45f1e0bb48463b25e8f02bcc4b87dd5a688973
MD5 53a42f8a9f7a89be9cc2ad8f92c60589
BLAKE2b-256 ed4bdbd4d8d4f7c2b361e904f9cb02260cf54a7ef53c6c426d7c58cb2a60b347

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page