No project description provided
Project description
Epycs
Epycs is a simple way to convert shell scripts to python. It features
- A simple subprocess API
- A sane behaviour of exiting by default on subprocess failures
- A show-output-on-fail behaviour
The goal of this package is to be able to write shell-script equivalent code in python while still being terse, but adding a tons of goodness in terms of arithmetical expression, string manipulation, code reuse etc...
Say no to .sh and welcome .py with epycs, you'll thank me later.
Changelog
- v1.4.0
Improved handling of additional environment (allows any str-convertible,
and providing None
deletes the env var)
Added new python_to_subprocess
function, which turns a local python
function to a full-fledged subprocess, allowing for pure-python piping.
- v1.3.0
Added sourcing of shell scripts
Added new out_filter=text_lines_0
that splits by NUL character
- v1.2.0
Added epycs.config for lightweight user-defined config management
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file epycs-1.4.0.tar.gz
.
File metadata
- Download URL: epycs-1.4.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d20ca14a769f0cb8b5889607f7dc1d25abf7b5bc3b7cd4acad6e15ae06e17225 |
|
MD5 | 9edb12c659e81ff0b6d9edf2af15bf8a |
|
BLAKE2b-256 | 393a10561dd1f2082530e70caf42788d46a6eab6f858c805c5555653ff3d673f |
File details
Details for the file epycs-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: epycs-1.4.0-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2be6ad40c6473207059ffafc2a87722d9ca6b95a4bd841fd048a86157744699b |
|
MD5 | 2e910e06f65d97de26b91d15e8cee717 |
|
BLAKE2b-256 | 025fdf7f11cde338f96be4f05ba0e048b051a8995d03404de54ff70a14e3ef83 |