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

Extract pysaltapi library into standalone lib #2

Closed
whiteinge opened this issue Jun 5, 2013 · 3 comments
Closed

Extract pysaltapi library into standalone lib #2

whiteinge opened this issue Jun 5, 2013 · 3 comments
Milestone

Comments

@whiteinge
Copy link
Contributor

pysaltapi.py is useful as a stand-alone library for other projects and should be pulled out into a separate project here and on PyPI.

@whiteinge
Copy link
Contributor Author

First stab at this is in dec388a.

Research keeping the lib and the CLI scripts in the same project but have build-time options to install the CLI scripts or not. Then upload to PyPI as two separate install-ables.

@whiteinge whiteinge modified the milestone: Alpha release Feb 17, 2014
@jacksontj
Copy link

@whiteinge This might be better to create as a client library in salt-api? Or maybe to define THE salt-api and have a single client. As of today there isn't an official salt api (as far as a spec to implement against).

@whiteinge
Copy link
Contributor Author

@jacksontj the idea behind this lib (and pepper) is to have a no-dep install. E.g., pip install salt-pepper, or just grab the libpepper.py file off GitHub, then be able to import pepper.libpepper from a custom script to talk to a remote salt-api install. So for that reason I'd like to keep this a separate project.

The current implementation calls out the rest_cherrypy module as the intended interface.

I've filed an issue to create a REST API spec here: saltstack/salt#13698. Pepper should be written to be able to use any interface that adheres to the spec. (Perhaps those tests should live in this repo, in fact!)

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