Skip to main content

Linux commands line

Project description

https://github.com/ChristfriedBalizou/lincl/workflows/Deploy%20Python%20Package/badge.svg

lincl

Linux commands line as python methods

This project is ccreate to help avoiding calling subprocess. While working on another script project I was doing lot o system calls. Having to always import subprocess with Popen, checkoutput, checkcall with ugly arguments to pass as –show-lines or –include=A,B,C, I decided to implement something python readable.

Usage

Pythonic approch and very simple to use:

from lincl import cp as copy

copy(src, dest, recursive=True, force=True)
>> cp --recursive --force src dest

# Or

from lincl import deboostrap

deboostrap("stable", "destination", variant="buildd" include=["A", "B", "C"])
>> deboostrap --variant=buildd --include=A,B,C stable destination

Requirements

To use this package you need:
  • Python 3.7 or higher (Tested with python3.7. Let me know for lowers)

  • Linux based is prefered (Tested on Debian buster)

  • You still need sudo for sudo syscall

Installation

There is no pip package if you are interested in having one feel free to suggest. Otherwize install using:

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lincl-1.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

lincl-1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page