meta_package_manager.managers.mas

class meta_package_manager.managers.mas.MAS[source]

Bases: meta_package_manager.base.PackageManager

platforms = frozenset({'macos'})
requirement = '1.6.1'
name = 'Mac AppStore'
get_version()[source]

Fetch version from mas version output.

property installed

Fetch installed packages from mas list output.

Raw CLI output samples:

► mas list
408981434 iMovie (10.1.4)
747648890 Telegram (2.30)
search(query, extended, exact)[source]

Fetch matching packages from mas search output.

Raw CLI output samples:

► mas search python
   689176796  Python Runner   (1.3)
   630736088  Learning Python (1.0)
   945397020  Run Python      (1.0)
  1164498373  PythonGames     (1.0)
  1400050251  Pythonic        (1.0.0)
property outdated

Fetch outdated packages from mas outdated output.

Raw CLI output samples:

► mas outdated
upgrade_cli(package_id=None)[source]

Return a bash-compatible full-CLI to upgrade a package.

upgrade_all_cli()[source]

Return a bash-compatible full-CLI to upgrade all packages.