Command line client to the CloudLaunch API.
Project description
===============
CloudLaunch CLI
===============
.. image:: https://travis-ci.org/CloudVE/cloudlaunch-cli.svg?branch=master
:target: https://travis-ci.org/CloudVE/cloudlaunch-cli
.. image:: https://coveralls.io/repos/github/CloudVE/cloudlaunch-cli/badge.svg?branch=master
:target: https://coveralls.io/github/CloudVE/cloudlaunch-cli?branch=master
.. image:: https://img.shields.io/pypi/v/cloudlaunch_cli.svg
:target: https://pypi-hypernode.com/pypi/cloudlaunch_cli
.. image:: https://readthedocs.org/projects/cloudlaunch-cli/badge/?version=latest
:target: https://cloudlaunch-cli.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/CloudVE/cloudlaunch_cli/shield.svg
:target: https://pyup.io/repos/github/CloudVE/cloudlaunch_cli/
:alt: Updates
Command line client to the CloudLaunch API.
* Free software: MIT license
* Documentation: https://cloudlaunch-cli.readthedocs.io.
Quickstart
==========
1. Create a virtual environment and activate it
::
python3 -m venv venv
source venv/bin/activate
2. Install ``cloudlaunch-cli`` with pip
::
pip install cloudlaunch-cli
3. The CloudLaunch CLI requires two config settings. First is the URL of
the API root:
::
cloudlaunch config set url https://launch.usegalaxy.org/cloudlaunch/api/v1
4. Second config setting is an auth token. To get an auth token, first
log into CloudLaunch, for example, by going to
https://launch.usegalaxy.org/login. Then navigate to the
``/api/v1/auth/tokens`` API endpoint, for example,
https://launch.usegalaxy.org/cloudlaunch/api/v1/auth/tokens/.
Copy the token out of the JSON response and then run the following
(substituting your own token instead):
::
cloudlaunch config set token b38faadf2ef6d59ce46711ed73e99d6...
5. Now you should be able to list your deployments
::
cloudlaunch deployments list
6. You can create a deployment as well
::
cloudlaunch deployments create my-ubuntu-test ubuntu \
amazon-us-east-n-virginia --application-version 16.04
Installing for development
==========================
1. ``python3 -m venv venv``
2. ``source venv/bin/activate``
3. ``pip install -r requirements_dev.txt``
Now you can run ``cloudlaunch``.
Release process
===============
::
bumpversion patch
# or `bumpversion minor` or `bumpversion major`
git push
git push --tags
make release
Credits
---------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.2.0 - 2018-11-14 - (sha 331e58f756145316334049100f582dd4316055fb)
------------------
* Major refactoring.
* Backward compatibility with Python 2.
* Integration tests with CloudLaunch.
0.1.0 - 2018-01-09
------------------
* First release on PyPI.
CloudLaunch CLI
===============
.. image:: https://travis-ci.org/CloudVE/cloudlaunch-cli.svg?branch=master
:target: https://travis-ci.org/CloudVE/cloudlaunch-cli
.. image:: https://coveralls.io/repos/github/CloudVE/cloudlaunch-cli/badge.svg?branch=master
:target: https://coveralls.io/github/CloudVE/cloudlaunch-cli?branch=master
.. image:: https://img.shields.io/pypi/v/cloudlaunch_cli.svg
:target: https://pypi-hypernode.com/pypi/cloudlaunch_cli
.. image:: https://readthedocs.org/projects/cloudlaunch-cli/badge/?version=latest
:target: https://cloudlaunch-cli.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://pyup.io/repos/github/CloudVE/cloudlaunch_cli/shield.svg
:target: https://pyup.io/repos/github/CloudVE/cloudlaunch_cli/
:alt: Updates
Command line client to the CloudLaunch API.
* Free software: MIT license
* Documentation: https://cloudlaunch-cli.readthedocs.io.
Quickstart
==========
1. Create a virtual environment and activate it
::
python3 -m venv venv
source venv/bin/activate
2. Install ``cloudlaunch-cli`` with pip
::
pip install cloudlaunch-cli
3. The CloudLaunch CLI requires two config settings. First is the URL of
the API root:
::
cloudlaunch config set url https://launch.usegalaxy.org/cloudlaunch/api/v1
4. Second config setting is an auth token. To get an auth token, first
log into CloudLaunch, for example, by going to
https://launch.usegalaxy.org/login. Then navigate to the
``/api/v1/auth/tokens`` API endpoint, for example,
https://launch.usegalaxy.org/cloudlaunch/api/v1/auth/tokens/.
Copy the token out of the JSON response and then run the following
(substituting your own token instead):
::
cloudlaunch config set token b38faadf2ef6d59ce46711ed73e99d6...
5. Now you should be able to list your deployments
::
cloudlaunch deployments list
6. You can create a deployment as well
::
cloudlaunch deployments create my-ubuntu-test ubuntu \
amazon-us-east-n-virginia --application-version 16.04
Installing for development
==========================
1. ``python3 -m venv venv``
2. ``source venv/bin/activate``
3. ``pip install -r requirements_dev.txt``
Now you can run ``cloudlaunch``.
Release process
===============
::
bumpversion patch
# or `bumpversion minor` or `bumpversion major`
git push
git push --tags
make release
Credits
---------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
=======
History
=======
0.2.0 - 2018-11-14 - (sha 331e58f756145316334049100f582dd4316055fb)
------------------
* Major refactoring.
* Backward compatibility with Python 2.
* Integration tests with CloudLaunch.
0.1.0 - 2018-01-09
------------------
* First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cloudlaunch_cli-0.2.0.tar.gz
(33.2 kB
view hashes)
Built Distribution
Close
Hashes for cloudlaunch_cli-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27636d2f3828c3d60b17d0bde4ae98455626019083a927607f53871a3940f1f5 |
|
MD5 | 3367c41831c1b98becfcf184272a0f2d |
|
BLAKE2b-256 | 53ff371b270b52215d151f0d2da622ede093a97b2740e7887d5e1f90993ccd34 |