abrik1 / py-install

Python bindings for the `install` command from linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

py-install

install bindings for Python 3

what is install?

install is a command line utility for GNU based OSes which copies a file with specific permissions. It is useful to make package managers.

syntax:-

install(TargetFile, Destination, Permissions)
  • TargetFile is the file which is to be copied
  • Destination is the target destination(it should be a directory) where TargetFile will be copied
  • Permissions is the specific permissions supported by os.chmod()

Note:- There are only specific permissions supported:- [exec_all, write_all, read_all, rwe_all, read_user, write_user, exec_user]

Permission explanations:-

  • exec_all: permission allows every user to execute
  • exec_user: permission allows current user to execute
  • read_all: permission allows every user to read a file
  • read_user: permission allows current user to read a file
  • write_all: permission allows every user to edit a file
  • write_user: permission allows every user to execute
  • rwe_all: permission allows current user to perform read,write and execute
  • rwe_user: permission allows current user to perform read,write and execute

todo:-

  • Enable directory support

About

Python bindings for the `install` command from linux

License:MIT License


Languages

Language:Python 100.0%