Skip to main content

CmdPlan

CmdPlan will help you plan launch of the system commands. Just define target node name and script will search it at described nodes dictionary, but it will launch their dependencies at first.

Requires

Python3

Install

$ pip install cmd-plan

Usage

Example:

import cmd_plan

NODES = {
    'TEST': {
        'command': 'python3 manage.py runserver 127.0.0.1:8000',
    },
    'TEST_WITH_NOHUP': {
        'command': 'nohup python3 manage.py runserver 127.0.0.1:8000 >/dev/null 2>&1 &',
    },
    'SERVER_SIDE': {
        'command': './server.sh &',
    },
    'CLIENT_SIDE': {
        'command': 'python3 ./client.py',
        'dependencies': ['SERVER_SIDE', ],
    }
}

# Example 1
cmd_plan.launch('TEST', NODES)  # Run Django debug WEB-server

# Example 2
cmd_plan.launch('CLIENT_SIDE', NODES)  # Run some `client`, but run it `server` at first 

License

From Russia with love.

Download files

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

Source Distribution

cmd_plan-1.0.4.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file cmd_plan-1.0.4.tar.gz.

File metadata

  • Download URL: cmd_plan-1.0.4.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.0

File hashes

Hashes for cmd_plan-1.0.4.tar.gz
Algorithm Hash digest
SHA256 9f3954968c01f7ea15306649a4f57e3737a59dddbff15ab0f9d885c971e69f34
MD5 495c49603914c7b907c9e95d5ffc21b2
BLAKE2b-256 2e5d77c59e55b177a9a0580096dbceea40305bf8a6481f1d474a262d57173472

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

1 file

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