Skip to main content

Simple Python interface to Arch Linux package manager (yay)

Project description

# python-yay

Simple Python interface to Arch Linux ‘yay’ package management interface

### Examples

  • Refresh master package list: yay.refresh()

  • Install a package: yay.install(“php”)

  • Remove a package: yay.remove(“php”, purge=True)

  • Upgrade all packages: yay.upgrade()

  • List all installed packages: yay.get_installed() (returns dict of id, version, upgradable status)

  • List all available packages: yay.get_available() (returns dict of id, version, repo name)

  • Get info for a package: yay.get_info(“php”) (returns dict, info labels as keys)

  • Get uninstalled dependencies of a package: yay.needs_for(“php”) (returns list of package names)

  • Get installed packages that depend on this one: yay.depends_for(“php”) (returns list of package names)

  • Check if a package is installed: yay.is_installed(“php”) (returns bool)

All functions that allow a package name as parameter (except get_info) will accept either a single package name or a list of multiple names.

Project details


Download files

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

Source Distribution

yay-digitalsparky-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yay_digitalsparky-0.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file yay-digitalsparky-0.0.1.tar.gz.

File metadata

  • Download URL: yay-digitalsparky-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for yay-digitalsparky-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8c3272e6aedaf4ecc1aaa631760e781ee353b8ae2f5faca7712e0de6537f4f46
MD5 5950fe89adadc52b326f151c082950dd
BLAKE2b-256 34fe6e69698517f15a2b08b3bb465aad34fbd3b4650fb876c6fc4e68ab315455

See more details on using hashes here.

File details

Details for the file yay_digitalsparky-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yay_digitalsparky-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for yay_digitalsparky-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51850d00bdd94e857cfe1fc5190f59a812a7fdf195141a18e1bc3ba50bf38afe
MD5 b549c8d737a77a7f0b519568cf544ce5
BLAKE2b-256 47d39aa24bb6f04e435ca4d0a46c5d3a06668bacd73355b34488154e45eeaa83

See more details on using hashes here.

Supported by

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