install.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Installation
  2. ============
  3. **Prerequisites**: CloudBridge requires Python 3.13 or higher.
  4. We highly recommend installing CloudBridge in a
  5. `virtualenv <http://virtualenv.readthedocs.org/>`_. Creating a new virtualenv
  6. is simple:
  7. .. code-block:: shell
  8. pip install virtualenv
  9. virtualenv .venv
  10. source .venv/bin/activate
  11. Latest stable release
  12. ---------------------
  13. The latest release of CloudBridge can be installed from PyPI::
  14. pip install cloudbridge[full]
  15. Latest unreleased dev version
  16. -----------------------------
  17. The development version of the library can be installed directly from the
  18. `GitHub repo <https://github.com/CloudVE/cloudbridge>`_::
  19. $ pip install --upgrade git+https://github.com/CloudVE/cloudbridge.git
  20. Single Provider Installation
  21. -----------------------------
  22. If you only require to integrate with one to two providers, you can install
  23. the particular providers only as the following.
  24. $ pip install cloudbridge[aws,gcp]
  25. The available options are aws, azure, gcp and openstack.
  26. Developer installation
  27. ----------------------
  28. To install additional libraries required by CloudBridge contributors, such as
  29. `tox <https://tox.readthedocs.org/en/latest/>`_, clone the source code
  30. repository and run the following command from the repository root directory::
  31. $ git clone https://github.com/CloudVE/cloudbridge.git
  32. $ cd cloudbridge
  33. $ pip install --upgrade --editable .[dev]
  34. Checking installation
  35. ---------------------
  36. To check what version of the library you have installed, do the following::
  37. import cloudbridge
  38. cloudbridge.get_version()