index.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .. cloudbridge documentation master file, created by
  2. sphinx-quickstart on Sat Oct 10 03:17:52 2015.
  3. You can adapt this file completely to your liking, but it should at least
  4. contain the root `toctree` directive.
  5. Welcome to cloudbridge's documentation!
  6. =======================================
  7. cloudbridge aims to provide a simple layer of abstraction over
  8. different cloud providers, reducing or eliminating the need to write
  9. conditional code for each cloud.
  10. Usage example
  11. -------------
  12. The simplest possible example for doing something useful with cloudbridge would
  13. look like the following.
  14. .. code-block:: python
  15. from cloudbridge.cloud.factory import CloudProviderFactory, ProviderList
  16. provider = CloudProviderFactory().create_provider(ProviderList.AWS, {})
  17. print(provider.compute.instances.list())
  18. In the example above, the AWS_ACCESS_KEY and AWS_SECRET_KEY environment variables
  19. must be set to your cloud credentials.
  20. Installation
  21. ------------
  22. **Automatic installation**::
  23. pip install cloudbridge
  24. **Manual installation**::
  25. $ git clone https://github.com/gvlproject/cloudbridge.git
  26. $ cd cloudbridge
  27. $ python setup.py install
  28. **Developer installation**::
  29. pip install cloudbridge[dev]
  30. This will install additional libraries required by cloudbridge contributors, such as tox.
  31. **Prerequisites**: Cloudbridge runs on Python 2.7 and higher. Python 3 is recommended.
  32. Documentation
  33. -------------
  34. .. toctree::
  35. :maxdepth: 2
  36. concepts.rst
  37. getting_started.rst
  38. api_docs/ref.rst
  39. Page index
  40. ----------
  41. * :ref:`genindex`