Skript is wrapper of the shell command to use them in Python3.x.This wrapper allows system administrations easily develop shell scripts the person who familiar with Python3.x
Inspired from ; https://github.com/bitfield/script
With this simple wrapper you are able to develop python scripts to use them in python.
from src.stdin import *
from src.stdin_interface import *
from src.process import Script
Script()._cat("file.txt")._tail(8)._head(4)
Supported UNIX/Shell command allows you to use pipe the outputs between functions.
Unix/Shell | skript |
---|---|
cat | _cat ✅ |
tail | _tail ✅ |
head | _head ✅ |
wc -l | _wordcount ✅ |
unique | _unique |
exec | _exec TODO |
find | find TODO |
grep | _exec TODO |
kubectl -o jsonpath | _kubectl TODO |