Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python wrapper #136

Open
mcoughlin opened this issue Aug 27, 2022 · 2 comments
Open

Python wrapper #136

mcoughlin opened this issue Aug 27, 2022 · 2 comments

Comments

@mcoughlin
Copy link

I would guess someone has written a (python?) script wrapping the logging of the Java client output to trigger actions based on. It would be nice if that were posted somewhere.

@jmfee-usgs
Copy link
Contributor

Hi @mcoughlin, PDL is designed to execute external scripts as products are received and/or as an indexer catalog is updated. The resources below haven't been updated recently but should still be relevant.

An example python listener script is included in this repository:
https://github.com/usgs/pdl/blob/master/etc/examples/client/bin/ExampleListener.py

And an example configuration and usage with the indexer can be found in a branch of another repository:
https://github.com/jmfee-usgs/pdl-client-examples/blob/indexer/IndexerListener.py

@mcoughlin
Copy link
Author

Thanks @jmfee-usgs ! Looks like python 2, but seems illustrative enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants