aur module (AUR class)

Author:Chris Warrick <chris@chriswarrick.com>
Copyright:© 2011-2023, Chris Warrick.
License:BSD (see /LICENSE or Appendix B.)
Date:2023-01-30
Version:4.3.2

New in version 2.1.0.0.

Call the AUR API.

Copyright:© 2011-2023, Chris Warrick.
License:BSD (see /LICENSE).
class pkgbuilder.aur.AUR[source]

Call the AUR API.

Valid request types for request() (and jsonrequest()):

name purpose
info get info about arg
search search for arg in the AUR
msearch show packages maintained by arg

A more accurate list might be available at the AUR RPC website: https://aur.archlinux.org/rpc.php

multiinfo is implemented in another function, multiinfo().

Note

Most people don’t actually want this and will prefer to use pkgbuilder.utils.{info,search,msearch}() instead.

jsonmultiinfo(args)[source]

Make a multiinfo request and return plain JSON data.

jsonreq(rtype, arg, search_by=None)[source]

Make a request and return plain JSON data.

multiinfo(args)[source]

Make a multiinfo request and return the AURDict.

request(rtype, arg, search_by=None)[source]

Make a request and return the AURDict.

rpc

Return the RPC URL.

search(search_by, arg)[source]

Search the AUR and return the AURDict.