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

Switch to using ADC for receiving samples, events #15

Open
5 of 6 tasks
WardLT opened this issue Aug 16, 2021 · 2 comments
Open
5 of 6 tasks

Switch to using ADC for receiving samples, events #15

WardLT opened this issue Aug 16, 2021 · 2 comments
Assignees

Comments

@WardLT
Copy link
Contributor

WardLT commented Aug 16, 2021

This Issue is our initial step for tracking how we integrate with the Argonne Data Cloud (ADC). Future issues will be created as the ADC and it's SDK emerge.

Issues we'll need to solve:

  • Purge mention of FastAPI from the documentation and examples
  • Implement "get all samples" utility function
  • Be able to use SDK to create a websocket, route events from socket to planner
  • Add SDK to the system requirements
  • Provide documentation for how to authenticate with ADC
  • Implement tests that mock ADC requirements
@WardLT WardLT self-assigned this Aug 16, 2021
@laaraujo-dnt
Copy link

laaraujo-dnt commented Aug 20, 2021

Implement "get all samples" utility function

I think the following should be enough, at least for the raw response dict from the API which you can later iterate through:

from adc.client import ADCClient

token = <token you get from adc>
client = ADCClient(token)
studies = client.get_studies()

@WardLT
Copy link
Contributor Author

WardLT commented Aug 30, 2021

Thanks! I added that logic (along with some auto-populate token from env variables) to that with 6f8a58e

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