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

Feature request: Comet-sendvo Python API #36

Open
timstaley opened this issue Sep 2, 2014 · 1 comment
Open

Feature request: Comet-sendvo Python API #36

timstaley opened this issue Sep 2, 2014 · 1 comment

Comments

@timstaley
Copy link
Contributor

Hi John,

currently, to send VOEvents programmatically, I simply call out to comet-sendvo via the command line; a la:
https://github.com/timstaley/pysovo/blob/master/pysovo/comms/comet.py

Because essentially the command line is the only stable and user-friendly API, as far as I'm concerned.
While this actually works quite cleanly, would it be sensible to wrap this same functionality internally from Comet and provide a Python API?

@jdswinbank
Copy link
Owner

Good idea.

The potential issue I see here is the management of the Twisted reactor and (potentially) its interaction with other event loops. Because comet-sendvo is its own process, it can safely start and stop the reactor at will. If there was another event loop running, it would be necessary to ensure they don't interfere with each other. Should be possible (somebody in the Twisted world must have done similar before) but it might take some effort to figure out how.

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

No branches or pull requests

2 participants