Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meyer1994/pfluent
https://github.com/meyer1994/pfluent
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/meyer1994/pfluent
- Owner: meyer1994
- License: unlicense
- Archived: true
- Created: 2020-11-08T20:27:33.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T15:45:44.000Z (almost 2 years ago)
- Last Synced: 2024-09-26T02:29:29.788Z (about 2 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Pfluent
[![Build Status](https://travis-ci.com/meyer1994/pfluent.svg?branch=master)](https://travis-ci.com/meyer1994/pfluent)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)Thin wrapper around `subprocess` to use [fluent][1] syntax.
## Table of Contents
- [About](#about)
- [Install](#install)## About
Just because I think it is nicer to write:
```py
Runner('git')\
.arg('commit')\
.arg('-m', '"message"')\
.run(check=True)
```Instead of:
```py
args = ['git', 'commit', '-m', '"message"']
subprocess.run(args, check=True)
```## Install
```
pip install pfluent
```[1]: https://en.wikipedia.org/wiki/Fluent_interface