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.0.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.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyconvox-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 900d96b1b44288db9523acecf3ef192b8aa291860fbe342ee5a4e4533173ea2d
MD5 9f3289c161cfd1617565589b9f3e72f4
BLAKE2b-256 afaaf8092f7b85beef82be3bc21bf356a0c234e7821477e0ce715aa3f3fe9e8e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyconvox-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24140dade037bf9f6f159c8dda2472d89e893fde9946150c4b02c667da62c737
MD5 44143b6e02c331496d537453de2637fc
BLAKE2b-256 3fa91d114a17c9300a023144b86a44556059fd7ed063fe4487432858732961b7

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