Skip to content

Latest commit

 

History

History
 
 

quetz_harvester

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

quetz_harvester plugin

This is a plugin to use with the quetz package server that allows to extract additional metadata from the packages, using the libcflib harvester.

Installing

To install use:

# no other libcflib deps necessary for the harvester itself
pip install git+https://[email protected]/regro/libcflib@master --no-deps
quetz plugin install plugins/quetz_harvester

Using

After installing the package run the harvest job using the standard /jobs endpoint in quetz:

QUETZ_API_KEY=... # setup you api key retrieved through the quetz fronted
curl -X POST localhost:8000/api/jobs  -d '{"items_spec": "*", "manifest": "quetz-harvester:harvest"}' -H "X-api-key: ${QUETZ_API_KEY}"

it will run the harvest job on ALL package files on the server.

Each package will have an additional file added to the packagestore (channel/metadata/subdir/package-name.json). You can access that file from the URL: http://quetz/channels/channel/metadata/subdir/package-name.json.