All Projects → amoffat → Sh

amoffat / Sh

Licence: mit
Python process launching

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Sh

Swagger Stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
Stars: ✭ 559 (-90.63%)
Mutual labels:  devops
Terraform Aws Secure Baseline
Terraform module to set up your AWS account with the secure baseline configuration based on CIS Amazon Web Services Foundations and AWS Foundational Security Best Practices.
Stars: ✭ 596 (-90.01%)
Mutual labels:  devops
Scaleway Cli
Command Line Interface for Scaleway
Stars: ✭ 654 (-89.03%)
Mutual labels:  devops
Kube Scan
kube-scan: Octarine k8s cluster risk assessment tool
Stars: ✭ 566 (-90.51%)
Mutual labels:  devops
Noahv
An efficient front-end application framework based on vue.js
Stars: ✭ 593 (-90.06%)
Mutual labels:  devops
Argo Cd
Declarative continuous deployment for Kubernetes.
Stars: ✭ 7,887 (+32.27%)
Mutual labels:  devops
Guide
Kubernetes clusters for the hobbyist.
Stars: ✭ 5,150 (-13.63%)
Mutual labels:  devops
Postmortem Templates
A collection of postmortem templates
Stars: ✭ 673 (-88.71%)
Mutual labels:  devops
Laravel Server Monitor
Don't let your servers just melt down
Stars: ✭ 595 (-90.02%)
Mutual labels:  devops
Rex
Rex, the friendly automation framework
Stars: ✭ 653 (-89.05%)
Mutual labels:  devops
Cabot
Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
Stars: ✭ 5,209 (-12.64%)
Mutual labels:  devops
Kubesphere
The container platform tailored for Kubernetes multi-cloud, datacenter, and edge management ⎈ 🖥 ☁️
Stars: ✭ 8,315 (+39.44%)
Mutual labels:  devops
Spug
开源运维平台:面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、文件在线上传下载、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。
Stars: ✭ 6,810 (+14.2%)
Mutual labels:  devops
Opsdroid
🤖 An open source chat-ops bot framework
Stars: ✭ 563 (-90.56%)
Mutual labels:  devops
Stacker
An AWS CloudFormation Stack orchestrator/manager.
Stars: ✭ 656 (-89%)
Mutual labels:  devops
Terratest
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
Stars: ✭ 5,797 (-2.78%)
Mutual labels:  devops
Atlantis
Atlantis is now being maintained at https://github.com/runatlantis/atlantis
Stars: ✭ 628 (-89.47%)
Mutual labels:  devops
Mcw
Microsoft Cloud Workshop Project
Stars: ✭ 677 (-88.65%)
Mutual labels:  devops
old vespene
DISCONTINUED: a frozen fork will exist forever at mpdehaan/vespene
Stars: ✭ 672 (-88.73%)
Mutual labels:  devops
Netaddr
A network address manipulation library for Python
Stars: ✭ 648 (-89.13%)
Mutual labels:  devops
Logo

Version Downloads Status Python Versions Build Status Coverage Status

sh is a full-fledged subprocess replacement for Python 2, Python 3, PyPy and PyPy3 that allows you to call any program as if it were a function:

from sh import ifconfig
print(ifconfig("eth0"))

sh is not a collection of system commands implemented in Python.

sh relies on various Unix system calls and only works on Unix-like operating systems - Linux, macOS, BSDs etc. Specifically, Windows is not supported.

Complete documentation here

Installation

$> pip install sh

Support

Developers

Updating the docs

Check out the gh-pages branch and follow the README.rst there.

Testing

I've included a Docker test suite in the docker_test_suit/ folder. To build the image, cd into that directory and run:

$> ./build.sh

This will install ubuntu 18.04 LTS and all supported python versions. Once it's done, stay in that directory and run:

$> ./run.sh

This will mount your local code directory into the container and start the test suite, which will take a long time to run. If you wish to run a single test, you may pass that test to ./run.sh:

$> ./run.sh FunctionalTests.test_unicode_arg

To run a single test for a single environment:

$> ./run.sh -e 3.4 FunctionalTests.test_unicode_arg

Coverage

First run all of the tests:

$> SH_TESTS_RUNNING=1 coverage run --source=sh -m unittest

This will aggregate a .coverage. You may then visualize the report with:

$> coverage report

Or generate visual html files with:

$> coverage html

Which will create ./htmlcov/index.html that you may open in a web browser.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].