[aur-general] New AUR Metadata Archives
morganamilo at archlinux.org
Thu Nov 11 00:15:28 UTC 2021
On 10/11/2021 22:31, Kevin Morris via aur-general wrote:
> Hello AUR users,
> In addition to pre-existing archives, we've introduced two new
> archives that can be used instead of bulk queries against the RPC.
> Pre-existing archives:
> - packages.gz
> - Listing of all packages separated by line break.
> - pkgbase.gz
> - Listing of all package bases separated by line break.
> - users.gz
> - Listening of all users separated by line break.
> Metadata archives:
> - packages-meta-v1.json.gz
> - A complete `type=search` formatted JSON package archive.
> - packages-meta-ext-v1.json.gz
> - A complete `type=multiinfo` formatted JSON package archive.
> All archives support Last-Modified and ETag. Each archive is updated
> on a rough ~5 minute interval. For any bulk users of the RPC, we ask
> that you consider these archives as a solution to repeated searches
> or bulk multiinfo requests.
> All archives are available for download at https://aur.archlinux.org/archive-name.gz
> Using these archives will drastically help the AUR with the amount
> of traffic required for API clients. Particularly with clients who
> are able to query by themselves en masse.
> We thank you all for contributing to the world of AUR and helping
> those who can use your maintained software as a result.
I see the metadata is in an array instead of NDJSON like I suggested.
However Seems as the opening and closing array are on the first/last
line I guess they could be trimmed out. Could I be safe doing this
without the formatting changing?
More information about the aur-general