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] [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
  • 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.1.tar.gz (5.2 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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyconvox-0.2.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyconvox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 2fb51677b98ff0aae365697f0ebd46ac07ea27c398a9b0ab0ae19a5bdcf6b621
MD5 11527fc98ce5ad8bd6a2a0a960b5a968
BLAKE2b-256 bd8d164c7d22a51f423da77d82284bd973edfff26cbca09cfc1b161c66cd92ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyconvox-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pyconvox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21e82529f36580fdf0e004b2c246f8d169daaee643e622e31604c7f9ad9ac3fc
MD5 59350b5335608542e266d65d45054f5d
BLAKE2b-256 60b60a7c9f31198917070dffb8aad4b91aa8b12f0c32852d5a574774e3e4f980

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