Metadata-Version: 2.4
Name: cloudbridge
Version: 4.1.0
Summary: A simple layer of abstraction over multiple cloud providers.
Author-email: Galaxy and GVL Projects <help@genome.edu.au>
License-Expression: MIT
Project-URL: Homepage, http://cloudbridge.cloudve.org/
Project-URL: Source, https://github.com/CloudVE/cloudbridge
Project-URL: Issues, https://github.com/CloudVE/cloudbridge/issues
Keywords: cloud,aws,azure,gcp,openstack,iaas
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.13
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: tenacity>=6.0
Requires-Dist: deprecation>=2.0.7
Requires-Dist: pyeventsystem<2
Provides-Extra: aws
Requires-Dist: boto3<2.0.0,>=1.9.86; extra == "aws"
Provides-Extra: azure
Requires-Dist: azure-identity<2.0.0,>=1.20.0; extra == "azure"
Requires-Dist: azure-common<2.0.0,>=1.1.28; extra == "azure"
Requires-Dist: azure-core<2.0.0,>=1.30.0; extra == "azure"
Requires-Dist: azure-mgmt-devtestlabs<10.0.0,>=9.0.0; extra == "azure"
Requires-Dist: azure-mgmt-resource<26.0.0,>=23.0.0; extra == "azure"
Requires-Dist: azure-mgmt-subscription<4.0.0,>=3.0.0; extra == "azure"
Requires-Dist: azure-mgmt-compute<39.0.0,>=34.0.0; extra == "azure"
Requires-Dist: azure-mgmt-dns<10.0.0,>=9.0.0; extra == "azure"
Requires-Dist: azure-mgmt-network<31.0.0,>=28.0.0; extra == "azure"
Requires-Dist: azure-mgmt-storage<25.0.0,>=22.0.0; extra == "azure"
Requires-Dist: azure-storage-blob<13.0.0,>=12.20.0; extra == "azure"
Requires-Dist: azure-data-tables<13.0.0,>=12.4.0; extra == "azure"
Requires-Dist: paramiko<6.0.0; extra == "azure"
Provides-Extra: gcp
Requires-Dist: google-api-python-client<3.0.0,>=2.0; extra == "gcp"
Provides-Extra: openstack
Requires-Dist: openstacksdk<5.0.0,>=3.0.0; extra == "openstack"
Requires-Dist: python-novaclient<20.0,>=17.0.0; extra == "openstack"
Requires-Dist: python-swiftclient<5.0,>=4.0.0; extra == "openstack"
Requires-Dist: python-neutronclient<13.0,>=11.0.0; extra == "openstack"
Requires-Dist: python-keystoneclient<7.0,>=4.0.0; extra == "openstack"
Provides-Extra: full
Requires-Dist: cloudbridge[aws,azure,gcp,openstack]; extra == "full"
Provides-Extra: dev
Requires-Dist: cloudbridge[full]; extra == "dev"
Requires-Dist: tox>=4.0.0; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: moto[ec2,s3]>=5.0.0; extra == "dev"
Requires-Dist: packaging; extra == "dev"
Requires-Dist: sphinx>=1.3.1; extra == "dev"
Requires-Dist: pydevd; extra == "dev"
Requires-Dist: flake8>=3.3.0; extra == "dev"
Requires-Dist: flake8-import-order>=0.12; extra == "dev"
Dynamic: license-file

CloudBridge provides a consistent layer of abstraction over different
Infrastructure-as-a-Service cloud providers, reducing or eliminating the need
to write conditional code for each cloud.

Documentation
~~~~~~~~~~~~~
Detailed documentation can be found at http://cloudbridge.cloudve.org.


Build Status Tests
~~~~~~~~~~~~~~~~~~
.. image:: https://github.com/CloudVE/cloudbridge/actions/workflows/integration.yaml/badge.svg
   :target: https://github.com/CloudVE/cloudbridge/actions/
   :alt: Integration Tests

.. image:: https://codecov.io/gh/CloudVE/cloudbridge/graph/badge.svg?token=w0LAfAIVdd 
   :target: https://codecov.io/gh/CloudVE/cloudbridge
   :alt: Code Coverage

.. image:: https://img.shields.io/pypi/v/cloudbridge.svg
   :target: https://pypi.python.org/pypi/cloudbridge/
   :alt: latest version available on PyPI

.. image:: https://readthedocs.org/projects/cloudbridge/badge/?version=latest
   :target: http://cloudbridge.readthedocs.org/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://img.shields.io/pypi/dm/cloudbridge
   :target: https://pypistats.org/packages/cloudbridge
   :alt: Download stats

.. |aws-py313| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.13_aws.json
               :target: https://github.com/CloudVE/cloudbridge/actions/

.. |azure-py313| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.13_azure.json
                 :target: https://github.com/CloudVE/cloudbridge/actions/

.. |gcp-py313| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.13_gcp.json
               :target: https://github.com/CloudVE/cloudbridge/actions/

.. |mock-py313| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.13_mock.json
               :target: https://github.com/CloudVE/cloudbridge/actions/

.. |os-py313| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/nuwang/d354f151eb8c9752da13e6dec012fb07/raw/cloudbridge_py3.13_openstack.json
              :target: https://github.com/CloudVE/cloudbridge/actions/

+---------------------------+-----------------+
| **Provider/Environment**  | **Python 3.13** |
+---------------------------+-----------------+
| **Amazon Web Services**   | |aws-py313|     |
+---------------------------+-----------------+
| **Google Cloud Platform** | |gcp-py313|     |
+---------------------------+-----------------+
| **Microsoft Azure**       | |azure-py313|   |
+---------------------------+-----------------+
| **OpenStack**             | |os-py313|      |
+---------------------------+-----------------+
| **Mock Provider**         | |mock-py313|    |
+---------------------------+-----------------+

Installation
~~~~~~~~~~~~
Install the latest release from PyPi:

.. code-block:: shell

  pip install cloudbridge[full]

For other installation options, see the `installation page`_ in
the documentation.


Usage example
~~~~~~~~~~~~~

To `get started`_ with CloudBridge, export your cloud access credentials
(e.g., AWS_ACCESS_KEY and AWS_SECRET_KEY for your AWS credentials) and start
exploring the API:

.. code-block:: python

  from cloudbridge.factory import CloudProviderFactory, ProviderList

  provider = CloudProviderFactory().create_provider(ProviderList.AWS, {})
  print(provider.security.key_pairs.list())

The exact same command (as well as any other CloudBridge method) will run with
any of the supported providers: ``ProviderList.[AWS | AZURE | GCP | OPENSTACK]``!


Citation
~~~~~~~~

N. Goonasekera, A. Lonie, J. Taylor, and E. Afgan,
"CloudBridge: a Simple Cross-Cloud Python Library,"
presented at the Proceedings of the XSEDE16 Conference on Diversity, Big Data, and Science at Scale, Miami, USA, 2016.
DOI: http://dx.doi.org/10.1145/2949550.2949648


Quick Reference
~~~~~~~~~~~~~~~
The following object graph shows how to access various provider services, and the resource
that they return.

.. image:: http://cloudbridge.readthedocs.org/en/latest/_images/object_relationships_detailed.svg
   :target: http://cloudbridge.readthedocs.org/en/latest/?badge=latest#quick-reference
   :alt: CloudBridge Quick Reference


Design Goals
~~~~~~~~~~~~

1. Create a cloud abstraction layer which minimises or eliminates the need for
   cloud specific special casing (i.e., Not require clients to write
   ``if EC2 do x else if OPENSTACK do y``.)

2. Have a suite of conformance tests which are comprehensive enough that goal
   1 can be achieved. This would also mean that clients need not manually test
   against each provider to make sure their application is compatible.

3. Opt for a minimum set of features that a cloud provider will support,
   instead of  a lowest common denominator approach. This means that reasonably
   mature clouds like Amazon and OpenStack are used as the benchmark against
   which functionality & features are determined. Therefore, there is a
   definite expectation that the cloud infrastructure will support a compute
   service with support for images and snapshots and various machine sizes.
   The cloud infrastructure will very likely support block storage, although
   this is currently optional. It may optionally support object storage.

4. Make the CloudBridge layer as thin as possible without compromising goal 1.
   By wrapping the cloud provider's native SDK and doing the minimal work
   necessary to adapt the interface, we can achieve greater development speed
   and reliability since the native provider SDK is most likely to have both
   properties.


Contributing
~~~~~~~~~~~~
Community contributions for any part of the project are welcome. If you have
a completely new idea or would like to bounce your idea before moving forward
with the implementation, feel free to create an issue to start a discussion.

Contributions should come in the form of a pull request. We strive for 100% test
coverage so code will only be accepted if it comes with appropriate tests and it
does not break existing functionality. Further, the code needs to be well
documented and all methods have docstrings. We are largely adhering to the
`PEP8 style guide`_ with 80 character lines, 4-space indentation (spaces
instead of tabs), explicit, one-per-line imports among others. Please keep the
style consistent with the rest of the project.

Conceptually, the library is laid out such that there is a factory used to
create a reference to a cloud provider. Each provider offers a set of services
and resources. Services typically perform actions while resources offer
information (and can act on itself, when appropriate). The structure of each
object is defined via an abstract interface (see
``cloudbridge/providers/interfaces``) and any object should implement the
defined interface. If adding a completely new provider, take a look at the
`provider development page`_ in the documentation.


.. _`installation page`: http://cloudbridge.readthedocs.org/en/
   latest/topics/install.html
.. _`get started`: http://cloudbridge.readthedocs.org/en/latest/
    getting_started.html
.. _`PEP8 style guide`: https://www.python.org/dev/peps/pep-0008/
.. _`provider development page`: http://cloudbridge.readthedocs.org/
   en/latest/
    topics/provider_development.html
