Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashmehrotra/soldier
Subprocess with Style
https://github.com/yashmehrotra/soldier
Last synced: 9 days ago
JSON representation
Subprocess with Style
- Host: GitHub
- URL: https://github.com/yashmehrotra/soldier
- Owner: yashmehrotra
- License: apache-2.0
- Created: 2015-03-14T17:45:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-07-05T03:23:38.000Z (over 1 year ago)
- Last Synced: 2024-10-12T22:32:19.517Z (23 days ago)
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 34
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Soldier: Subprocess with Style
[![image](https://img.shields.io/travis/yashmehrotra/soldier.svg?style=flat-square)](https://travis-ci.org/yashmehrotra/soldier) [![image](https://img.shields.io/badge/license-APACHE2-blue.svg?style=flat-square)](https://github.com/yashmehrotra/soldier/blob/master/LICENSE) [![Documentation](https://readthedocs.org/projects/soldier/badge/?version=latest)](http://soldier.readthedocs.org/en/latest/?badge=latest)
![image](https://raw.githubusercontent.com/yashmehrotra/soldier/master/images/flint.jpg)
Soldier is an Apache2 licensed library designed for executing and
managing system processes with ease.It is written on top of subprocess and has a much user-friendly and
pythonic interface.And the best part - it is very easy to get started
## Installation
``` sh
$ pip install soldier
```## Getting Started
``` python
>>> import soldier>>> print soldier.run('pwd').output
/home/python/>>> firefox_process = soldier.run('firefox', background=True)
>>> firefox_process.pid
20749>>> job = soldier.run('myjob', timeout=30)
```## Documentation
The documentation is available at [soldier.readthedocs.io](http://soldier.readthedocs.io/)