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

Consider reworking clients to be higher level #4

Open
derekjn opened this issue Dec 28, 2016 · 0 comments
Open

Consider reworking clients to be higher level #4

derekjn opened this issue Dec 28, 2016 · 0 comments

Comments

@derekjn
Copy link
Contributor

derekjn commented Dec 28, 2016

(This applies to all clients)

Currently they're all just thin wrappers around GET, PUT, POST, etc, which is a good foundation that gives users a lot of flexibility. But we should build on what we already have by adding calls that abstract away HTTP completely:

stride.create_process('process0', 'SELECT x, count(*) FROM s GROUP BY x')
{
  'name': 'process0',
  'query': 'SELECT x, count(*) FROM s GROUP BY x',
  'action': 'MATERIALIZE',
  'args': {}
}

stride.collect('s', [{'x': 0}, {'x': 1}, ...])

stride.analyze('SELECT * FROM process0')
[(0, 10), (1, 20), ...]

stride.save_analyze('analyze_name', 'SELECT * FROM process0')
{
  'name': 'analyze_name',
  'query': 'SELECT * FROM process0'
}

etc...

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

1 participant