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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file lincl-1.0.tar.gz.

File metadata

  • Download URL: lincl-1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for lincl-1.0.tar.gz
Algorithm Hash digest
SHA256 00d209a43ffbe196494fb3cffef3e315ae147ae855e91f04b7ae49d8fcf000ae
MD5 6a96f65c16c028c2dcc8ee210f54783b
BLAKE2b-256 c4ea02f719de4f7946e5cb6973c5fe6dcd97464b50ea2a9d6e5b5c513470de2d

See more details on using hashes here.

File details

Details for the file lincl-1.0-py3-none-any.whl.

File metadata

  • Download URL: lincl-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.9

File hashes

Hashes for lincl-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cd3ee060899dda76705757631c2c7357bb5560e05454fa0f53d87071015a3e2
MD5 c23afcc2f016b6307559938b37e345f0
BLAKE2b-256 b28eb12c125098d9c1548cde26d181074c67b847f6aeb4e73f31d6e2b13f7525

See more details on using hashes here.

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