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

update getting started instructions for fork of multyvac #7

Open
danabauer opened this issue Apr 9, 2015 · 2 comments
Open

update getting started instructions for fork of multyvac #7

danabauer opened this issue Apr 9, 2015 · 2 comments

Comments

@danabauer
Copy link
Contributor

No description provided.

@danabauer
Copy link
Contributor Author

Current instructions:

pip install multyvac

>>> import multyvac
>>> api_url = 'http://{}/v1'.format(<your_ip_endpoint>)
>>> multyvac.config.set_key(api_key='admin',
...                         api_secret_key='12345',
...                         api_url=api_url)

@danabauer
Copy link
Contributor Author

New instructions:

pip install vac

# Warning! If you already have a version of multyvac installed, you will have a config file here: ~/.multyvac. For this demo to work properly, you'll want to remove or move that config file. 

>>> import multyvac
>>> multyvac.config.set_key(api_key='', api_secret_key = '')

>>> #example of submitting a job with requests
>>> import requests
>>> job_id = multivac.submit(lambda: requests.get('http://www.rackspace.com').status_code)
>>> job = multyvac.get(job_id)
>>> job.get_result()

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