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.
Metadata
Release files for cmd-plan 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cmd_plan-1.0.4.tar.gz | 1.8 kB | Without provenance | Details for cmd_plan-1.0.4.tar.gz |
Release files / cmd_plan-1.0.4.tar.gz
| Download URL | cmd_plan-1.0.4.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f3954968c01f7ea15306649a4f57e3737a59dddbff15ab0f9d885c971e69f34
|
|
BLAKE2b-256 checksum How to use checksums |
2e5d77c59e55b177a9a0580096dbceea40305bf8a6481f1d474a262d57173472
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for cmd-plan 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.