Demo the ServiceX DID Library
This is a demo DID finder for the ServiceX project. It can be run in ServiceX and if given an appropriate dataset name, it will return a fixed set of data files to the system.
It is meant to demo usage of the ServiceX_DID library, and be used as a template to build new ServiceX DID finders. You'll need to add a deployment.yaml to the ServiceX chart in order to get this to work. Please see other did_finder deployment.yaml files and pattern it off this one.
To test this in ServiceX perform the following steps:
- Start a servicex instance with the demo did finder running
- Launch the
sample.simple_query.ipynbin a notebook server. If you install all development packages in thetomlfile, you'll have everything you need. - Run the sample. On a home internet, the sample takes about 20 seconds to complete.
To see how this is created see the following files in this repository:
src/demo.did.py- Contains the code that returns a single file if the proper dataset name is queried.Dockerfile- Builds the container that can run in the ServiceX environment.requirements.txt- Contains all the packages required to run the did finder.
This repository is a template repository - which makes it very easy to start as a template.