Package zeroinstall :: Module apps
[frames] | no frames]

Module apps

source code

Support for managing apps (as created with "0install add").


Since: 1.9

Classes
  AppScriptInfo
  App
  AppManager
Functions
 
validate_name(name) source code
str
find_bin_dir(paths=None)
Find the first writable path in the list (default $PATH), skipping /bin, /sbin and everything under /usr except /usr/local/bin
source code
AppScriptInfo | None
parse_script_header(stream)
If stream is a shell script for an application, return the app details.
source code
Variables
  valid_name = re.compile(r'''^[^./\\:=;'"][^/\\:=;'"]*$''')
Function Details

validate_name(name)

source code 
Parameters:
  • name (str)

find_bin_dir(paths=None)

source code 

Find the first writable path in the list (default $PATH), skipping /bin, /sbin and everything under /usr except /usr/local/bin

Parameters:
  • paths ([str] | None)
Returns: str

parse_script_header(stream)

source code 

If stream is a shell script for an application, return the app details.

Parameters:
  • stream (file-like object) - the executable file's stream (will seek)
Returns: AppScriptInfo | None
the app details, if any

Since: 1.12