You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2017/09/19 17:03:54 UTC

svn commit: r1808917 [1/7] - in /libcloud/site/trunk/generated: ./ blog/ blog/2017/04/09/ blog/2017/04/25/ blog/archives/2017/04/ blog/page/10/ blog/page/11/ blog/page/12/ blog/page/13/ blog/page/14/ blog/page/15/ blog/page/16/ blog/page/2/ blog/page/3...

Author: tomaz
Date: Tue Sep 19 17:03:53 2017
New Revision: 1808917

URL: http://svn.apache.org/viewvc?rev=1808917&view=rev
Log:
Re-generate website.

Modified:
    libcloud/site/trunk/generated/blog/2017/04/09/async-rfc.html
    libcloud/site/trunk/generated/blog/2017/04/25/libcloud-2-0-0-released.html
    libcloud/site/trunk/generated/blog/archives/2017/04/index.html
    libcloud/site/trunk/generated/blog/atom.xml
    libcloud/site/trunk/generated/blog/index.html
    libcloud/site/trunk/generated/blog/page/10/index.html
    libcloud/site/trunk/generated/blog/page/11/index.html
    libcloud/site/trunk/generated/blog/page/12/index.html
    libcloud/site/trunk/generated/blog/page/13/index.html
    libcloud/site/trunk/generated/blog/page/14/index.html
    libcloud/site/trunk/generated/blog/page/15/index.html
    libcloud/site/trunk/generated/blog/page/16/index.html
    libcloud/site/trunk/generated/blog/page/2/index.html
    libcloud/site/trunk/generated/blog/page/3/index.html
    libcloud/site/trunk/generated/blog/page/4/index.html
    libcloud/site/trunk/generated/blog/page/5/index.html
    libcloud/site/trunk/generated/blog/page/6/index.html
    libcloud/site/trunk/generated/blog/page/7/index.html
    libcloud/site/trunk/generated/blog/page/8/index.html
    libcloud/site/trunk/generated/blog/page/9/index.html
    libcloud/site/trunk/generated/blog/tags/news.html
    libcloud/site/trunk/generated/blog/tags/release announcement.html
    libcloud/site/trunk/generated/blog/tags/tutorial.html
    libcloud/site/trunk/generated/downloads.html
    libcloud/site/trunk/generated/getting-started.html
    libcloud/site/trunk/generated/index.html
    libcloud/site/trunk/generated/sitemap.xml

Modified: libcloud/site/trunk/generated/blog/2017/04/09/async-rfc.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/generated/blog/2017/04/09/async-rfc.html?rev=1808917&r1=1808916&r2=1808917&view=diff
==============================================================================
--- libcloud/site/trunk/generated/blog/2017/04/09/async-rfc.html (original)
+++ libcloud/site/trunk/generated/blog/2017/04/09/async-rfc.html Tue Sep 19 17:03:53 2017
@@ -44,7 +44,7 @@
       <meta content="https://libcloud.apache.org/blog/2017/04/09/async-rfc.html" property="og:url">
     
     
-      <meta content="2017-04-09T00:00:00+10:00" property="article:published_time">
+      <meta content="2017-04-09T00:00:00+02:00" property="article:published_time">
       <meta content="https://libcloud.apache.org/about.html" property="article:author">
     
 
@@ -56,7 +56,7 @@
       
     
 
-    <link href='/assets/global-eb5319c938d664847c83b2674bfd22c2.css' rel='stylesheet' type='text/css' />
+    <link href='/assets/global-57b0092d353d0369071e1021782bb38d.css' rel='stylesheet' type='text/css' />
 
   </head>
 
@@ -287,7 +287,7 @@ Share : <a href="https://twitter.com/sha
     </div><!-- /.container -->
 
     <!-- JavaScript -->
-    <script src='/assets/global-c6949aebbeb9952ae7967e9bc1aedfbc.js' type='text/javascript'></script>
+    <script src='/assets/global-14c8e0124e6d563413005cb909342e2a.js' type='text/javascript'></script>
 
 
     

Modified: libcloud/site/trunk/generated/blog/2017/04/25/libcloud-2-0-0-released.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/generated/blog/2017/04/25/libcloud-2-0-0-released.html?rev=1808917&r1=1808916&r2=1808917&view=diff
==============================================================================
--- libcloud/site/trunk/generated/blog/2017/04/25/libcloud-2-0-0-released.html (original)
+++ libcloud/site/trunk/generated/blog/2017/04/25/libcloud-2-0-0-released.html Tue Sep 19 17:03:53 2017
@@ -44,7 +44,7 @@
       <meta content="https://libcloud.apache.org/blog/2017/04/25/libcloud-2-0-0-released.html" property="og:url">
     
     
-      <meta content="2017-04-25T00:00:00+10:00" property="article:published_time">
+      <meta content="2017-04-25T00:00:00+02:00" property="article:published_time">
       <meta content="https://libcloud.apache.org/about.html" property="article:author">
     
 
@@ -56,7 +56,7 @@
       
     
 
-    <link href='/assets/global-eb5319c938d664847c83b2674bfd22c2.css' rel='stylesheet' type='text/css' />
+    <link href='/assets/global-57b0092d353d0369071e1021782bb38d.css' rel='stylesheet' type='text/css' />
 
   </head>
 
@@ -348,7 +348,7 @@ Share : <a href="https://twitter.com/sha
     </div><!-- /.container -->
 
     <!-- JavaScript -->
-    <script src='/assets/global-c6949aebbeb9952ae7967e9bc1aedfbc.js' type='text/javascript'></script>
+    <script src='/assets/global-14c8e0124e6d563413005cb909342e2a.js' type='text/javascript'></script>
 
 
     

Modified: libcloud/site/trunk/generated/blog/archives/2017/04/index.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/generated/blog/archives/2017/04/index.html?rev=1808917&r1=1808916&r2=1808917&view=diff
==============================================================================
--- libcloud/site/trunk/generated/blog/archives/2017/04/index.html (original)
+++ libcloud/site/trunk/generated/blog/archives/2017/04/index.html Tue Sep 19 17:03:53 2017
@@ -95,6 +95,381 @@
 
   <div class="post">
   
+    <h2><a href="/blog/2017/04/25/libcloud-2-0-0-released.html">Libcloud 2.0.0 released</a></h2>
+  
+
+  
+    
+  
+  <span class="post-date-author">By Anthony Shaw on Apr 25, 2017</span>
+
+  <div class="post-content">
+    <p>We are pleased to announce the release of Libcloud 2.0.0.</p>
+
+<p>This major release brings many new features, improvements, bug-fixes, and drivers.</p>
+
+<h2>Release highlights</h2>
+
+<ul>
+<li>Apache Libcloud 2.0 series replaces the use of Python httplib with a hard dependency on the <code>requests</code> package. Users no longer
+have to specific Certificate Authority bundles when using Apache Libcloud</li>
+<li>10% performance improvement through the use of HTTP sessions</li>
+<li>Support for buffered IO streams for storage drivers</li>
+<li>Support for Python 3.6, deprecation of Python 3.2</li>
+<li>3 new drivers - <a href="http://libcloud.readthedocs.io/en/latest/compute/drivers/onapp.html">OnApp Compute</a>, <a href="http://libcloud.readthedocs.io/en/latest/dns/drivers/onapp.html">OnApp DNS</a>, <a href="http://libcloud.readthedocs.io/en/latest/compute/drivers/oneandone.html">1&amp;1 Compute</a></li>
+<li>Lots of improvements to our Azure ARM support</li>
+<li>Continuing udates to the Amazon drivers</li>
+</ul>
+
+<p>A detailed description of the 2.0 HTTP API is documented <a href="http://libcloud.readthedocs.io/en/latest/other/changes_in_2_0.html">here</a></p>
+
+<h3>Compute API Changes</h3>
+
+<ul>
+<li>Outscale SAS doc improvements and logo update</li>
+</ul>
+
+<h4>OnApp Changes</h4>
+
+<ul>
+<li>Add list images support for OnApp driver</li>
+<li>Add keypair management to OnApp driver</li>
+</ul>
+
+<h4>Amazon EC2 Changes</h4>
+
+<ul>
+<li>Add r4 instance types for AWS</li>
+<li>Add support for AWS eu-west-2 and ca-central-1 regions</li>
+<li>Add P2 GPU instance types</li>
+<li>Add method to modify snapshot attribute for EC2</li>
+<li>Add ENA support for EC2 compute images</li>
+<li>Add support for forcing detachment of EBS volumes to EC2 driver</li>
+<li>Add support for ModifyVolume and DescribeVolumesModifications</li>
+<li>Added Import Snapshot and Describe Import Snapshot to EC2 compute driver</li>
+<li>Add missing regions in AWS storage and compute drivers</li>
+<li>Add SR-IOV net support to images in EC2 compute driver</li>
+<li>Fix - update t2.small image size from 11 CPU to 1</li>
+<li>Added Billing Product for image in EC2 compute driver</li>
+</ul>
+
+<h4>Linode changes</h4>
+
+<ul>
+<li>Add start, stop instance methods and fix incorrect state TERMINATED to STOPPED</li>
+</ul>
+
+<h4>Azure ARM changes</h4>
+
+<ul>
+<li>Fix typeerror on ex<em>list</em>nics</li>
+<li>Add support for Azure Cloud Environments as well as Locations</li>
+<li>Fix string representation of the VhdImage type and fix listing of Public IP addresses</li>
+<li>Add network security groups to azure ARM</li>
+<li>Add the ability to list resource groups</li>
+<li>Fix Azure ARM driver condition for ex<em>list</em>publishers where location is specified</li>
+</ul>
+
+<h4>Google Cloud changes</h4>
+
+<ul>
+<li>Allow delete instances from managed group</li>
+<li>Allow preemptible instances to be created</li>
+<li>Remove validation checks for guestOsFeatures</li>
+</ul>
+
+<h4>Alibaba Aliyun changes</h4>
+
+<ul>
+<li>Add aliyun ecs instance join leave security group</li>
+<li>Fix Aliyun ECS, Load balancer and storage adapters when using unicode UTF-8 characters in the names of resources</li>
+</ul>
+
+<h4>DigitalOcean changes</h4>
+
+<ul>
+<li>Add price_monthly extra param to digitalocean sizes</li>
+</ul>
+
+<h4>VMWare vSphere changes</h4>
+
+<ul>
+<li>Fix issue with authentication methods crashing</li>
+</ul>
+
+<h3>Storage</h3>
+
+<ul>
+<li>Reintroduce S3 multipart upload support with signature v4</li>
+</ul>
+
+<h3>DNS</h3>
+
+<ul>
+<li>Add <a href="http://libcloud.readthedocs.io/en/latest/dns/drivers/onapp.html">OnApp driver</a></li>
+</ul>
+
+<h2>Minor changes</h2>
+
+<h3>Common</h3>
+
+<ul>
+<li>Added an integration test API and a test suite for validating functionality
+without mocking any libcloud subsystems</li>
+<li>Change Cloudscale to cloudscale.ch.</li>
+</ul>
+
+<h2>Bug Fixes</h2>
+
+<h3>Compute</h3>
+
+<h4>2.0.0</h4>
+
+<ul>
+<li><p>Fix OpenStack drivers not correctly setting URLs when used with identity API, would default to 127.0.0.1 and service
+catalog URLs were not adhered to.</p></li>
+<li><p>Fix Aliyun ECS, Load balancer and storage adapters when using unicode UTF-8 characters in the names of resources
+in 2.0.0rc2 &lt; it would fail as a MalformedResponseError, Python 2.7 element tree was raising a unicode error</p></li>
+<li><p>Refactor the test classes to use the full libcloud.http and libcloud.common.base modules, with Connection,
+Response all used with requests<em>mock. This increases our test coverages and catches bugs in drivers&#39; custom
+parse</em>body and auth modules</p></li>
+<li><p>Rename libcloud.httplib_ssl to libcloud.http now that we don&#39;t use httplib</p></li>
+</ul>
+
+<h4>2.0.0rc2</h4>
+
+<ul>
+<li>Fix Public IP not assigned when creating NIC on Azure ARM</li>
+<li>Fix a bug in profitbricks driver where listing snapshots would request a malformed URL</li>
+<li>Fix LIBCLOUD-806 bug where vsphere driver cannot be instantiated</li>
+<li>[google compute] Improve performance of list nodes by caching volume information.</li>
+</ul>
+
+<p>Full change log can be found at <a href="https://libcloud.readthedocs.org/en/latest/changelog.html">here</a>.</p>
+
+<h3>Special thank you</h3>
+
+<p>I would like to wish a special thank you to all of our community contributors
+for their ongoing support to the project.</p>
+
+<ul>
+<li>Tinu Cleatus for the OnApp driver</li>
+<li>Alex Misstear for the EC2 improvements</li>
+<li>Jie Ren for the Aliyun improvements</li>
+<li>Francisco Ros for the DigitalOcean improvements</li>
+<li>Peter Amstutz and Joseph Hall for the Azure ARM API updates</li>
+<li>All of our community for their ongoing support and contributions...</li>
+</ul>
+
+<h3>Download</h3>
+
+<p>The release can can be downloaded from
+<a href="https://libcloud.apache.org/downloads.html">https://libcloud.apache.org/downloads.html</a> or installed using pip:</p>
+
+<pre>
+pip install apache-libcloud==2.0.0
+</pre>
+
+<h3>Upgrading</h3>
+
+<p>If you have installed Libcloud using pip you can also use it to upgrade it:</p>
+
+<pre>
+pip install --upgrade apache-libcloud==2.0.0
+</pre>
+
+<h3>Upgrade notes</h3>
+
+<p>A page which describes backward incompatible or semi-incompatible
+changes and how to preserve the old behavior when this is possible
+can be found at <a href="https://libcloud.readthedocs.org/en/latest/upgrade_notes.html">https://libcloud.readthedocs.org/en/latest/upgrade_notes.html</a></p>
+
+<h3>Documentation</h3>
+
+<p>Regular and API documentation is available at <a href="https://libcloud.readthedocs.org/en/latest/">https://libcloud.readthedocs.org/en/latest/</a></p>
+
+<h3>Bugs / Issues</h3>
+
+<p>If you find any bug or issue, please report it on our issue tracker
+<a href="https://issues.apache.org/jira/browse/LIBCLOUD">https://issues.apache.org/jira/browse/LIBCLOUD</a>.
+Don&#39;t forget to attach an example and / or test which reproduces your
+problem.</p>
+
+<h3>Thanks</h3>
+
+<p>Thanks to everyone who contributed and made this release possible! Full
+list of people who contributed to this release can be found in the
+<a href="https://libcloud.readthedocs.org/en/latest/changelog.html">CHANGES file</a>.</p>
+
+  </div>
+
+  <div class="row section post-meta">
+    <div class="col-md-12 post-tags">
+      <p>Tags: <a href="/blog/tags/news.html" rel="tag">news</a>, <a href="/blog/tags/release%20announcement.html" rel="tag">release announcement</a></p>
+    </div>
+  </div>
+</div>
+
+
+  <div class="post">
+  
+    <h2><a href="/blog/2017/04/09/async-rfc.html">Have your say - async support in Apache Libcloud</a></h2>
+  
+
+  
+    
+  
+  <span class="post-date-author">By Anthony Shaw on Apr 09, 2017</span>
+
+  <div class="post-content">
+    <p>One of the big requests whilst we were replacing <code>httplib</code> with the <code>requests</code> package in 2.0 was why didn&#39;t
+we use a HTTP library that supports <em>asynchronous</em> API calls.</p>
+
+<p>The intention for 2.0 and replacing the HTTP backend classes was to improve the usability of the project, by making SSL
+certificates easier to manage, improving the maintainability of our source code by using an active 3rd party package and
+also improving performance and stability.</p>
+
+<p>Apache Libcloud already has documentation on threaded libraries like gevent and callback-based libraries like Twisted, see
+<a href="https://libcloud.readthedocs.io/en/latest/other/using-libcloud-in-multithreaded-and-async-environments.html">using libcloud in multithreaded environments</a>
+for examples.</p>
+
+<p><a href="https://www.python.org/dev/peps/pep-0492/#">PEP 492</a>, implemented in Python 3.5 provides a new coroutine protocol using methods,
+<code>__await__</code> for classes, a coroutine method wrapper, or a method that returns a coroutine object.
+Also async <a href="https://www.python.org/dev/peps/pep-0492/#asynchronous-iterators-and-async-for">iterators</a> and <a href="https://www.python.org/dev/peps/pep-0492/#asynchronous-context-managers-and-async-with">context managers</a>
+have been introduced.</p>
+
+<p>We would like to take advantage of the new language features by offering APIs in Apache Libcloud without breaking backward compatibility and
+compatibility for users of &lt;Python 3.5.</p>
+
+<p>Use cases for this would be:</p>
+
+<ul>
+<li>Being able to fetch <code>Node</code> or <code>StorageObject</code>s from multiple geographies or drivers simultaneously.</li>
+<li>Being able to quickly upload or download storage objects by parallelizing operations on the <code>StorageDriver</code>.</li>
+<li>Being able to call a long-running API method (e.g. generate report), whilst running other code.</li>
+</ul>
+
+<h2>Design 1 - async context managers <a href="https://github.com/apache/libcloud/pull/1016">PR 1016</a></h2>
+
+<p>This design would allow drivers to operate in 2 modes, the first is for synchronous method calls, they return list or object
+data as per usual. The second mode, API methods like <code>NodeDriver.list_nodes</code> would return a <a href="https://www.python.org/dev/peps/pep-0492/#coroutine-objects">coroutine object</a>
+and could be awaited or gathered using an event loop.</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="kn">import</span> <span class="nn">asyncio</span>
+
+<span class="kn">from</span> <span class="nn">integration.driver.test</span> <span class="kn">import</span> <span class="n">TestNodeDriver</span>
+<span class="kn">from</span> <span class="nn">libcloud.async_util</span> <span class="kn">import</span> <span class="n">AsyncSession</span>
+
+<span class="n">driver</span> <span class="o">=</span> <span class="n">TestNodeDriver</span><span class="p">(</span><span class="s">&#39;apache&#39;</span><span class="p">,</span> <span class="s">&#39;libcloud&#39;</span><span class="p">)</span>
+
+<span class="n">async</span> <span class="k">def</span> <span class="nf">run</span><span class="p">():</span>
+    <span class="c"># regular API call</span>
+    <span class="n">nodes</span> <span class="o">=</span> <span class="n">driver</span><span class="o">.</span><span class="n">list_nodes</span><span class="p">()</span>
+
+    <span class="n">async</span> <span class="k">with</span> <span class="n">AsyncSession</span><span class="p">(</span><span class="n">driver</span><span class="p">)</span> <span class="k">as</span> <span class="n">async_instance</span><span class="p">:</span>
+        <span class="n">nodes</span> <span class="o">=</span> <span class="n">await</span> <span class="n">async_instance</span><span class="o">.</span><span class="n">list_nodes</span><span class="p">()</span>
+
+    <span class="k">assert</span> <span class="nb">len</span><span class="p">(</span><span class="n">nodes</span><span class="p">)</span> <span class="o">==</span> <span class="mi">2</span>
+
+<span class="n">loop</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">get_event_loop</span><span class="p">()</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">run_until_complete</span><span class="p">(</span><span class="n">run</span><span class="p">())</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
+</code></pre></div>
+<h2>Design 2 - Additional methods in each driver for coroutines <a href="https://github.com/apache/libcloud/pull/1027">PR 1027</a></h2>
+
+<p>This is the second design concept for async support in Libcloud.</p>
+
+<p>The concept here is to have Asynchronous Mixins, <code>LibcloudConnection</code> uses requests and <code>LibcloudAsyncConnection</code> uses aiohttp for async transport <a href="https://github.com/tonybaloney/libcloud/blob/d4fe097476d2f02941e17d5e1b1d405fcf44c0f7/libcloud/connection_async.py#L22-L42">see</a></p>
+
+<p>The LibcloudAsyncConnection is an implementation detail of AsyncConnection, which is the API for the drivers to consume <a href="https://github.com/tonybaloney/libcloud/blob/d4fe097476d2f02941e17d5e1b1d405fcf44c0f7/libcloud/common/base.py#L742-L778">see</a></p>
+
+<p>The drivers then use this mixin for their custom connection classes, e.g.</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="k">class</span> <span class="nc">GoogleStorageConnection</span><span class="p">(</span><span class="n">ConnectionUserAndKey</span><span class="p">,</span> <span class="n">AsyncConnection</span><span class="p">):</span>
+    <span class="o">...</span>
+</code></pre></div>
+<p>They then inherit from <code>libcloud.storage.base.StorageAsyncDriver</code>, which uses a new set of base methods, e.g. <code>iterate_containers_async</code> and can be implemented like this:</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python">        <span class="n">async</span> <span class="k">def</span> <span class="nf">iterate_containers_async</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
+            <span class="n">response</span> <span class="o">=</span> <span class="n">await</span> <span class="bp">self</span><span class="o">.</span><span class="n">connection</span><span class="o">.</span><span class="n">request_async</span><span class="p">(</span><span class="s">&#39;/&#39;</span><span class="p">)</span>
+            <span class="k">if</span> <span class="n">response</span><span class="o">.</span><span class="n">status</span> <span class="o">==</span> <span class="n">httplib</span><span class="o">.</span><span class="n">OK</span><span class="p">:</span>
+                <span class="n">containers</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_to_containers</span><span class="p">(</span><span class="n">obj</span><span class="o">=</span><span class="n">response</span><span class="o">.</span><span class="n">object</span><span class="p">,</span>
+                                                 <span class="n">xpath</span><span class="o">=</span><span class="s">&#39;Buckets/Bucket&#39;</span><span class="p">)</span>
+                <span class="k">return</span> <span class="n">containers</span>
+
+            <span class="k">raise</span> <span class="n">LibcloudError</span><span class="p">(</span><span class="s">&#39;Unexpected status code: </span><span class="si">%s</span><span class="s">&#39;</span> <span class="o">%</span> <span class="p">(</span><span class="n">response</span><span class="o">.</span><span class="n">status</span><span class="p">),</span>
+                                <span class="n">driver</span><span class="o">=</span><span class="bp">self</span><span class="p">)</span>
+</code></pre></div>
+<p>Now the consumer can more or less do this:</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="kn">from</span> <span class="nn">libcloud.storage.providers</span> <span class="kn">import</span> <span class="n">get_driver</span>
+<span class="kn">from</span> <span class="nn">libcloud.storage.types</span> <span class="kn">import</span> <span class="n">Provider</span>
+
+<span class="kn">import</span> <span class="nn">asyncio</span>
+
+<span class="n">GoogleStorageDriver</span> <span class="o">=</span> <span class="n">get_driver</span><span class="p">(</span><span class="n">Provider</span><span class="o">.</span><span class="n">GOOGLE_STORAGE</span><span class="p">)</span>
+<span class="n">driver</span> <span class="o">=</span> <span class="n">GoogleStorageDriver</span><span class="p">(</span><span class="n">key</span><span class="o">=</span><span class="n">KEY</span><span class="p">,</span> <span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">)</span>
+
+<span class="k">def</span> <span class="nf">do_stuff_with_object</span><span class="p">(</span><span class="n">obj</span><span class="p">):</span>
+    <span class="k">print</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>
+
+<span class="n">async</span> <span class="k">def</span> <span class="nf">run</span><span class="p">():</span>
+    <span class="n">tasks</span> <span class="o">=</span> <span class="p">[]</span>
+    <span class="n">async</span> <span class="k">for</span> <span class="n">container</span> <span class="ow">in</span> <span class="n">driver</span><span class="o">.</span><span class="n">iterate_containers_async</span><span class="p">():</span>
+        <span class="n">async</span> <span class="k">for</span> <span class="n">obj</span> <span class="ow">in</span> <span class="n">driver</span><span class="o">.</span><span class="n">iterate_container_objects_async</span><span class="p">(</span><span class="n">container</span><span class="p">):</span>
+            <span class="n">tasks</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">asyncio</span><span class="o">.</span><span class="n">ensure_future</span><span class="p">(</span><span class="n">do_stuff_with_object</span><span class="p">(</span><span class="n">obj</span><span class="p">)))</span>
+    <span class="n">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">gather</span><span class="p">(</span><span class="o">*</span><span class="n">tasks</span><span class="p">)</span>
+
+<span class="n">loop</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">get_event_loop</span><span class="p">()</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">run_until_complete</span><span class="p">(</span><span class="n">run</span><span class="p">())</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
+</code></pre></div>
+<h2>Design 3 - Initializer with &quot;<em>async</em>&quot; mode</h2>
+
+<p>This option is similar to 2, except that if a driver is instantiated with &quot;<code>async=True</code>&quot;,
+then all driver class methods would return coroutine objects. Internally, it would
+patch the Connection class with the AsyncConnection class.</p>
+
+<p>The downside of this is that all method calls to a driver would need to be awaited or used
+by an event loop.</p>
+<div class="highlight"><pre><code class="python language-python" data-lang="python"><span class="kn">from</span> <span class="nn">libcloud.storage.providers</span> <span class="kn">import</span> <span class="n">get_driver</span>
+<span class="kn">from</span> <span class="nn">libcloud.storage.types</span> <span class="kn">import</span> <span class="n">Provider</span>
+
+<span class="kn">import</span> <span class="nn">asyncio</span>
+
+<span class="n">GoogleStorageDriver</span> <span class="o">=</span> <span class="n">get_driver</span><span class="p">(</span><span class="n">Provider</span><span class="o">.</span><span class="n">GOOGLE_STORAGE</span><span class="p">)</span>
+<span class="n">driver</span> <span class="o">=</span> <span class="n">GoogleStorageDriver</span><span class="p">(</span><span class="n">key</span><span class="o">=</span><span class="n">KEY</span><span class="p">,</span> <span class="n">secret</span><span class="o">=</span><span class="n">SECRET</span><span class="p">,</span> <span class="n">async</span><span class="o">=</span><span class="bp">True</span><span class="p">)</span>
+
+<span class="k">def</span> <span class="nf">do_stuff_with_object</span><span class="p">(</span><span class="n">obj</span><span class="p">):</span>
+    <span class="k">print</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>
+
+<span class="n">async</span> <span class="k">def</span> <span class="nf">run</span><span class="p">():</span>
+    <span class="n">tasks</span> <span class="o">=</span> <span class="p">[]</span>
+    <span class="n">async</span> <span class="k">for</span> <span class="n">container</span> <span class="ow">in</span> <span class="n">driver</span><span class="o">.</span><span class="n">iterate_containers</span><span class="p">():</span>
+        <span class="n">async</span> <span class="k">for</span> <span class="n">obj</span> <span class="ow">in</span> <span class="n">driver</span><span class="o">.</span><span class="n">iterate_container_objects</span><span class="p">(</span><span class="n">container</span><span class="p">):</span>
+            <span class="n">tasks</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">asyncio</span><span class="o">.</span><span class="n">ensure_future</span><span class="p">(</span><span class="n">do_stuff_with_object</span><span class="p">(</span><span class="n">obj</span><span class="p">)))</span>
+    <span class="n">await</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">gather</span><span class="p">(</span><span class="o">*</span><span class="n">tasks</span><span class="p">)</span>
+
+<span class="n">loop</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">get_event_loop</span><span class="p">()</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">run_until_complete</span><span class="p">(</span><span class="n">run</span><span class="p">())</span>
+<span class="n">loop</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>
+</code></pre></div>
+<h1>Give us feedback</h1>
+
+<p>Got a better idea? Have an API or design, the question we&#39;re asking is 
+&quot;if you wanted to use Libcloud for an async application, what would the code look like?&quot; This helps us design
+the API and the implementation details can follow.</p>
+
+<p>Feel free to comment on the mailing list or on the pull requests, or raise your own pull-request with an API design.</p>
+
+  </div>
+
+  <div class="row section post-meta">
+    <div class="col-md-12 post-tags">
+      <p>Tags: <a href="/blog/tags/news.html" rel="tag">news</a>, <a href="/blog/tags/tutorial.html" rel="tag">tutorial</a></p>
+    </div>
+  </div>
+</div>
+
+
+  <div class="post">
+  
     <h2><a href="/blog/2017/04/07/libcloud-2-0-0-rc2-released.html">Libcloud 2.0.0rc2 released</a></h2>
   
 

Modified: libcloud/site/trunk/generated/blog/atom.xml
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/generated/blog/atom.xml?rev=1808917&r1=1808916&r2=1808917&view=diff
==============================================================================
--- libcloud/site/trunk/generated/blog/atom.xml (original)
+++ libcloud/site/trunk/generated/blog/atom.xml Tue Sep 19 17:03:53 2017
@@ -5,13 +5,366 @@
   <link href="https://libcloud.apache.org" rel="self" />
   <link href="https://libcloud.apache.org" />
   <id>https://libcloud.apache.org</id>
-  <updated>2017-06-04T16:33:45+02:00</updated>
+  <updated>2017-09-19T18:59:53+02:00</updated>
   <author>
     <name>The Apache Software Foundation</name>
   </author>
 
     
   <entry>
+    <title>Libcloud 2.0.0 released</title>
+    <link href="https://libcloud.apache.org/blog/2017/04/25/libcloud-2-0-0-released.html" />
+    <id>https://libcloud.apache.org/blog/2017/04/25/libcloud-2-0-0-released.html</id>
+    <updated>2017-04-25T00:00:00+02:00</updated>
+    <author>
+      <name>Anthony Shaw</name>
+    </author>
+    <content type="html">&lt;p&gt;We are pleased to announce the release of Libcloud 2.0.0.&lt;/p&gt;
+
+&lt;p&gt;This major release brings many new features, improvements, bug-fixes, and drivers.&lt;/p&gt;
+
+&lt;h2&gt;Release highlights&lt;/h2&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Apache Libcloud 2.0 series replaces the use of Python httplib with a hard dependency on the &lt;code&gt;requests&lt;/code&gt; package. Users no longer
+have to specific Certificate Authority bundles when using Apache Libcloud&lt;/li&gt;
+&lt;li&gt;10% performance improvement through the use of HTTP sessions&lt;/li&gt;
+&lt;li&gt;Support for buffered IO streams for storage drivers&lt;/li&gt;
+&lt;li&gt;Support for Python 3.6, deprecation of Python 3.2&lt;/li&gt;
+&lt;li&gt;3 new drivers - &lt;a href=&quot;http://libcloud.readthedocs.io/en/latest/compute/drivers/onapp.html&quot;&gt;OnApp Compute&lt;/a&gt;, &lt;a href=&quot;http://libcloud.readthedocs.io/en/latest/dns/drivers/onapp.html&quot;&gt;OnApp DNS&lt;/a&gt;, &lt;a href=&quot;http://libcloud.readthedocs.io/en/latest/compute/drivers/oneandone.html&quot;&gt;1&amp;amp;1 Compute&lt;/a&gt;&lt;/li&gt;
+&lt;li&gt;Lots of improvements to our Azure ARM support&lt;/li&gt;
+&lt;li&gt;Continuing udates to the Amazon drivers&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;p&gt;A detailed description of the 2.0 HTTP API is documented &lt;a href=&quot;http://libcloud.readthedocs.io/en/latest/other/changes_in_2_0.html&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
+
+&lt;h3&gt;Compute API Changes&lt;/h3&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Outscale SAS doc improvements and logo update&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;OnApp Changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add list images support for OnApp driver&lt;/li&gt;
+&lt;li&gt;Add keypair management to OnApp driver&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;Amazon EC2 Changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add r4 instance types for AWS&lt;/li&gt;
+&lt;li&gt;Add support for AWS eu-west-2 and ca-central-1 regions&lt;/li&gt;
+&lt;li&gt;Add P2 GPU instance types&lt;/li&gt;
+&lt;li&gt;Add method to modify snapshot attribute for EC2&lt;/li&gt;
+&lt;li&gt;Add ENA support for EC2 compute images&lt;/li&gt;
+&lt;li&gt;Add support for forcing detachment of EBS volumes to EC2 driver&lt;/li&gt;
+&lt;li&gt;Add support for ModifyVolume and DescribeVolumesModifications&lt;/li&gt;
+&lt;li&gt;Added Import Snapshot and Describe Import Snapshot to EC2 compute driver&lt;/li&gt;
+&lt;li&gt;Add missing regions in AWS storage and compute drivers&lt;/li&gt;
+&lt;li&gt;Add SR-IOV net support to images in EC2 compute driver&lt;/li&gt;
+&lt;li&gt;Fix - update t2.small image size from 11 CPU to 1&lt;/li&gt;
+&lt;li&gt;Added Billing Product for image in EC2 compute driver&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;Linode changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add start, stop instance methods and fix incorrect state TERMINATED to STOPPED&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;Azure ARM changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Fix typeerror on ex&lt;em&gt;list&lt;/em&gt;nics&lt;/li&gt;
+&lt;li&gt;Add support for Azure Cloud Environments as well as Locations&lt;/li&gt;
+&lt;li&gt;Fix string representation of the VhdImage type and fix listing of Public IP addresses&lt;/li&gt;
+&lt;li&gt;Add network security groups to azure ARM&lt;/li&gt;
+&lt;li&gt;Add the ability to list resource groups&lt;/li&gt;
+&lt;li&gt;Fix Azure ARM driver condition for ex&lt;em&gt;list&lt;/em&gt;publishers where location is specified&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;Google Cloud changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Allow delete instances from managed group&lt;/li&gt;
+&lt;li&gt;Allow preemptible instances to be created&lt;/li&gt;
+&lt;li&gt;Remove validation checks for guestOsFeatures&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;Alibaba Aliyun changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add aliyun ecs instance join leave security group&lt;/li&gt;
+&lt;li&gt;Fix Aliyun ECS, Load balancer and storage adapters when using unicode UTF-8 characters in the names of resources&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;DigitalOcean changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add price_monthly extra param to digitalocean sizes&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;VMWare vSphere changes&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Fix issue with authentication methods crashing&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h3&gt;Storage&lt;/h3&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Reintroduce S3 multipart upload support with signature v4&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h3&gt;DNS&lt;/h3&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Add &lt;a href=&quot;http://libcloud.readthedocs.io/en/latest/dns/drivers/onapp.html&quot;&gt;OnApp driver&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h2&gt;Minor changes&lt;/h2&gt;
+
+&lt;h3&gt;Common&lt;/h3&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Added an integration test API and a test suite for validating functionality
+without mocking any libcloud subsystems&lt;/li&gt;
+&lt;li&gt;Change Cloudscale to cloudscale.ch.&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h2&gt;Bug Fixes&lt;/h2&gt;
+
+&lt;h3&gt;Compute&lt;/h3&gt;
+
+&lt;h4&gt;2.0.0&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;&lt;p&gt;Fix OpenStack drivers not correctly setting URLs when used with identity API, would default to 127.0.0.1 and service
+catalog URLs were not adhered to.&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Fix Aliyun ECS, Load balancer and storage adapters when using unicode UTF-8 characters in the names of resources
+in 2.0.0rc2 &amp;lt; it would fail as a MalformedResponseError, Python 2.7 element tree was raising a unicode error&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Refactor the test classes to use the full libcloud.http and libcloud.common.base modules, with Connection,
+Response all used with requests&lt;em&gt;mock. This increases our test coverages and catches bugs in drivers&amp;#39; custom
+parse&lt;/em&gt;body and auth modules&lt;/p&gt;&lt;/li&gt;
+&lt;li&gt;&lt;p&gt;Rename libcloud.httplib_ssl to libcloud.http now that we don&amp;#39;t use httplib&lt;/p&gt;&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h4&gt;2.0.0rc2&lt;/h4&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Fix Public IP not assigned when creating NIC on Azure ARM&lt;/li&gt;
+&lt;li&gt;Fix a bug in profitbricks driver where listing snapshots would request a malformed URL&lt;/li&gt;
+&lt;li&gt;Fix LIBCLOUD-806 bug where vsphere driver cannot be instantiated&lt;/li&gt;
+&lt;li&gt;[google compute] Improve performance of list nodes by caching volume information.&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;p&gt;Full change log can be found at &lt;a href=&quot;https://libcloud.readthedocs.org/en/latest/changelog.html&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
+
+&lt;h3&gt;Special thank you&lt;/h3&gt;
+
+&lt;p&gt;I would like to wish a special thank you to all of our community contributors
+for their ongoing support to the project.&lt;/p&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Tinu Cleatus for the OnApp driver&lt;/li&gt;
+&lt;li&gt;Alex Misstear for the EC2 improvements&lt;/li&gt;
+&lt;li&gt;Jie Ren for the Aliyun improvements&lt;/li&gt;
+&lt;li&gt;Francisco Ros for the DigitalOcean improvements&lt;/li&gt;
+&lt;li&gt;Peter Amstutz and Joseph Hall for the Azure ARM API updates&lt;/li&gt;
+&lt;li&gt;All of our community for their ongoing support and contributions...&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h3&gt;Download&lt;/h3&gt;
+
+&lt;p&gt;The release can can be downloaded from
+&lt;a href=&quot;https://libcloud.apache.org/downloads.html&quot;&gt;https://libcloud.apache.org/downloads.html&lt;/a&gt; or installed using pip:&lt;/p&gt;
+
+&lt;pre&gt;
+pip install apache-libcloud==2.0.0
+&lt;/pre&gt;
+
+&lt;h3&gt;Upgrading&lt;/h3&gt;
+
+&lt;p&gt;If you have installed Libcloud using pip you can also use it to upgrade it:&lt;/p&gt;
+
+&lt;pre&gt;
+pip install --upgrade apache-libcloud==2.0.0
+&lt;/pre&gt;
+
+&lt;h3&gt;Upgrade notes&lt;/h3&gt;
+
+&lt;p&gt;A page which describes backward incompatible or semi-incompatible
+changes and how to preserve the old behavior when this is possible
+can be found at &lt;a href=&quot;https://libcloud.readthedocs.org/en/latest/upgrade_notes.html&quot;&gt;https://libcloud.readthedocs.org/en/latest/upgrade_notes.html&lt;/a&gt;&lt;/p&gt;
+
+&lt;h3&gt;Documentation&lt;/h3&gt;
+
+&lt;p&gt;Regular and API documentation is available at &lt;a href=&quot;https://libcloud.readthedocs.org/en/latest/&quot;&gt;https://libcloud.readthedocs.org/en/latest/&lt;/a&gt;&lt;/p&gt;
+
+&lt;h3&gt;Bugs / Issues&lt;/h3&gt;
+
+&lt;p&gt;If you find any bug or issue, please report it on our issue tracker
+&lt;a href=&quot;https://issues.apache.org/jira/browse/LIBCLOUD&quot;&gt;https://issues.apache.org/jira/browse/LIBCLOUD&lt;/a&gt;.
+Don&amp;#39;t forget to attach an example and / or test which reproduces your
+problem.&lt;/p&gt;
+
+&lt;h3&gt;Thanks&lt;/h3&gt;
+
+&lt;p&gt;Thanks to everyone who contributed and made this release possible! Full
+list of people who contributed to this release can be found in the
+&lt;a href=&quot;https://libcloud.readthedocs.org/en/latest/changelog.html&quot;&gt;CHANGES file&lt;/a&gt;.&lt;/p&gt;
+</content>
+  </entry>
+    
+  <entry>
+    <title>Have your say - async support in Apache Libcloud</title>
+    <link href="https://libcloud.apache.org/blog/2017/04/09/async-rfc.html" />
+    <id>https://libcloud.apache.org/blog/2017/04/09/async-rfc.html</id>
+    <updated>2017-04-09T00:00:00+02:00</updated>
+    <author>
+      <name>Anthony Shaw</name>
+    </author>
+    <content type="html">&lt;p&gt;One of the big requests whilst we were replacing &lt;code&gt;httplib&lt;/code&gt; with the &lt;code&gt;requests&lt;/code&gt; package in 2.0 was why didn&amp;#39;t
+we use a HTTP library that supports &lt;em&gt;asynchronous&lt;/em&gt; API calls.&lt;/p&gt;
+
+&lt;p&gt;The intention for 2.0 and replacing the HTTP backend classes was to improve the usability of the project, by making SSL
+certificates easier to manage, improving the maintainability of our source code by using an active 3rd party package and
+also improving performance and stability.&lt;/p&gt;
+
+&lt;p&gt;Apache Libcloud already has documentation on threaded libraries like gevent and callback-based libraries like Twisted, see
+&lt;a href=&quot;https://libcloud.readthedocs.io/en/latest/other/using-libcloud-in-multithreaded-and-async-environments.html&quot;&gt;using libcloud in multithreaded environments&lt;/a&gt;
+for examples.&lt;/p&gt;
+
+&lt;p&gt;&lt;a href=&quot;https://www.python.org/dev/peps/pep-0492/#&quot;&gt;PEP 492&lt;/a&gt;, implemented in Python 3.5 provides a new coroutine protocol using methods,
+&lt;code&gt;__await__&lt;/code&gt; for classes, a coroutine method wrapper, or a method that returns a coroutine object.
+Also async &lt;a href=&quot;https://www.python.org/dev/peps/pep-0492/#asynchronous-iterators-and-async-for&quot;&gt;iterators&lt;/a&gt; and &lt;a href=&quot;https://www.python.org/dev/peps/pep-0492/#asynchronous-context-managers-and-async-with&quot;&gt;context managers&lt;/a&gt;
+have been introduced.&lt;/p&gt;
+
+&lt;p&gt;We would like to take advantage of the new language features by offering APIs in Apache Libcloud without breaking backward compatibility and
+compatibility for users of &amp;lt;Python 3.5.&lt;/p&gt;
+
+&lt;p&gt;Use cases for this would be:&lt;/p&gt;
+
+&lt;ul&gt;
+&lt;li&gt;Being able to fetch &lt;code&gt;Node&lt;/code&gt; or &lt;code&gt;StorageObject&lt;/code&gt;s from multiple geographies or drivers simultaneously.&lt;/li&gt;
+&lt;li&gt;Being able to quickly upload or download storage objects by parallelizing operations on the &lt;code&gt;StorageDriver&lt;/code&gt;.&lt;/li&gt;
+&lt;li&gt;Being able to call a long-running API method (e.g. generate report), whilst running other code.&lt;/li&gt;
+&lt;/ul&gt;
+
+&lt;h2&gt;Design 1 - async context managers &lt;a href=&quot;https://github.com/apache/libcloud/pull/1016&quot;&gt;PR 1016&lt;/a&gt;&lt;/h2&gt;
+
+&lt;p&gt;This design would allow drivers to operate in 2 modes, the first is for synchronous method calls, they return list or object
+data as per usual. The second mode, API methods like &lt;code&gt;NodeDriver.list_nodes&lt;/code&gt; would return a &lt;a href=&quot;https://www.python.org/dev/peps/pep-0492/#coroutine-objects&quot;&gt;coroutine object&lt;/a&gt;
+and could be awaited or gathered using an event loop.&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;asyncio&lt;/span&gt;
+
+&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;integration.driver.test&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TestNodeDriver&lt;/span&gt;
+&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;libcloud.async_util&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;AsyncSession&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TestNodeDriver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;#39;apache&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&amp;#39;libcloud&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
+    &lt;span class=&quot;c&quot;&gt;# regular API call&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;nodes&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;list_nodes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+
+    &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;with&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;AsyncSession&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;async_instance&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
+        &lt;span class=&quot;n&quot;&gt;nodes&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;async_instance&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;list_nodes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+
+    &lt;span class=&quot;k&quot;&gt;assert&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nodes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_event_loop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run_until_complete&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;h2&gt;Design 2 - Additional methods in each driver for coroutines &lt;a href=&quot;https://github.com/apache/libcloud/pull/1027&quot;&gt;PR 1027&lt;/a&gt;&lt;/h2&gt;
+
+&lt;p&gt;This is the second design concept for async support in Libcloud.&lt;/p&gt;
+
+&lt;p&gt;The concept here is to have Asynchronous Mixins, &lt;code&gt;LibcloudConnection&lt;/code&gt; uses requests and &lt;code&gt;LibcloudAsyncConnection&lt;/code&gt; uses aiohttp for async transport &lt;a href=&quot;https://github.com/tonybaloney/libcloud/blob/d4fe097476d2f02941e17d5e1b1d405fcf44c0f7/libcloud/connection_async.py#L22-L42&quot;&gt;see&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;The LibcloudAsyncConnection is an implementation detail of AsyncConnection, which is the API for the drivers to consume &lt;a href=&quot;https://github.com/tonybaloney/libcloud/blob/d4fe097476d2f02941e17d5e1b1d405fcf44c0f7/libcloud/common/base.py#L742-L778&quot;&gt;see&lt;/a&gt;&lt;/p&gt;
+
+&lt;p&gt;The drivers then use this mixin for their custom connection classes, e.g.&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;GoogleStorageConnection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ConnectionUserAndKey&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;AsyncConnection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+    &lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;They then inherit from &lt;code&gt;libcloud.storage.base.StorageAsyncDriver&lt;/code&gt;, which uses a new set of base methods, e.g. &lt;code&gt;iterate_containers_async&lt;/code&gt; and can be implemented like this:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;        &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;iterate_containers_async&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+            &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connection&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;request_async&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;#39;/&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+            &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;status&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;httplib&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OK&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
+                &lt;span class=&quot;n&quot;&gt;containers&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_to_containers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
+                                                 &lt;span class=&quot;n&quot;&gt;xpath&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;#39;Buckets/Bucket&amp;#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+                &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;containers&lt;/span&gt;
+
+            &lt;span class=&quot;k&quot;&gt;raise&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LibcloudError&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;#39;Unexpected status code: &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;%s&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;status&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
+                                &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;Now the consumer can more or less do this:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;libcloud.storage.providers&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get_driver&lt;/span&gt;
+&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;libcloud.storage.types&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Provider&lt;/span&gt;
+
+&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;asyncio&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;GoogleStorageDriver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get_driver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Provider&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GOOGLE_STORAGE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;GoogleStorageDriver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;KEY&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;secret&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SECRET&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;do_stuff_with_object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+    &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;container&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;iterate_containers_async&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
+        &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;iterate_container_objects_async&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;container&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+            &lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ensure_future&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;do_stuff_with_object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)))&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gather&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_event_loop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run_until_complete&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;h2&gt;Design 3 - Initializer with &amp;quot;&lt;em&gt;async&lt;/em&gt;&amp;quot; mode&lt;/h2&gt;
+
+&lt;p&gt;This option is similar to 2, except that if a driver is instantiated with &amp;quot;&lt;code&gt;async=True&lt;/code&gt;&amp;quot;,
+then all driver class methods would return coroutine objects. Internally, it would
+patch the Connection class with the AsyncConnection class.&lt;/p&gt;
+
+&lt;p&gt;The downside of this is that all method calls to a driver would need to be awaited or used
+by an event loop.&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;libcloud.storage.providers&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get_driver&lt;/span&gt;
+&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;libcloud.storage.types&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Provider&lt;/span&gt;
+
+&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;asyncio&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;GoogleStorageDriver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;get_driver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Provider&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GOOGLE_STORAGE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;GoogleStorageDriver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;KEY&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;secret&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SECRET&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;do_stuff_with_object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+    &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;container&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;iterate_containers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;():&lt;/span&gt;
+        &lt;span class=&quot;n&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;iterate_container_objects&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;container&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
+            &lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ensure_future&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;do_stuff_with_object&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)))&lt;/span&gt;
+    &lt;span class=&quot;n&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gather&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tasks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
+
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;asyncio&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_event_loop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run_until_complete&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
+&lt;span class=&quot;n&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;h1&gt;Give us feedback&lt;/h1&gt;
+
+&lt;p&gt;Got a better idea? Have an API or design, the question we&amp;#39;re asking is 
+&amp;quot;if you wanted to use Libcloud for an async application, what would the code look like?&amp;quot; This helps us design
+the API and the implementation details can follow.&lt;/p&gt;
+
+&lt;p&gt;Feel free to comment on the mailing list or on the pull requests, or raise your own pull-request with an API design.&lt;/p&gt;
+</content>
+  </entry>
+    
+  <entry>
     <title>Libcloud 2.0.0rc2 released</title>
     <link href="https://libcloud.apache.org/blog/2017/04/07/libcloud-2-0-0-rc2-released.html" />
     <id>https://libcloud.apache.org/blog/2017/04/07/libcloud-2-0-0-rc2-released.html</id>
@@ -1151,163 +1504,4 @@ list of people who contributed to this r
 </content>
   </entry>
     
-  <entry>
-    <title>Experimental support for the requests package</title>
-    <link href="https://libcloud.apache.org/blog/2016/04/06/requests-support.html" />
-    <id>https://libcloud.apache.org/blog/2016/04/06/requests-support.html</id>
-    <updated>2016-04-06T00:00:00+02:00</updated>
-    <author>
-      <name>Anthony Shaw</name>
-    </author>
-    <content type="html">&lt;h2&gt;Background&lt;/h2&gt;
-
-&lt;p&gt;I&amp;#39;ve just pushed a branch of the latest version of libcloud using the popular &lt;code&gt;requests&lt;/code&gt; package by Kenneth Reitz instead of our home-rolled HTTP client library.&lt;/p&gt;
-
-&lt;p&gt;This article is for both users and developers of libcloud. If you want to give feedback, please join the developer mailing list.&lt;/p&gt;
-
-&lt;h2&gt;Why?&lt;/h2&gt;
-
-&lt;ul&gt;
-&lt;li&gt;requests is the defacto standard - it would be in the standard library but agreed against to allow it to develop faster https://github.com/kennethreitz/requests/issues/2424&lt;/li&gt;
-&lt;li&gt;it works with python 2.6-&amp;gt;3.5&lt;/li&gt;
-&lt;li&gt;Our SSL experience has a lot to be desired for Windows users, having to download the CA cert package and setting environment variables just to get SSL working&lt;/li&gt;
-&lt;li&gt;Developers can use requests_mock for deeper integration testing&lt;/li&gt;
-&lt;li&gt;less code to maintain&lt;/li&gt;
-&lt;li&gt;the role of libcloud is for cloud abstraction, we provide no value in writing and maintaining our own HTTP client library&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2&gt;Benefits of requests&lt;/h2&gt;
-
-&lt;p&gt;There are a number of benefits to having a requests package&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;The client library code is smaller, leaner and simpler.&lt;/li&gt;
-&lt;li&gt;Requests has built in decompression support, we no longer need to support this&lt;/li&gt;
-&lt;li&gt;Requests has built in RAW download, upload support, helping with our storage drivers&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2&gt;Implications of the change&lt;/h2&gt;
-
-&lt;ul&gt;
-&lt;li&gt;There are no longer 2 classes (&lt;code&gt;LibcloudHTTPSConnection&lt;/code&gt; and &lt;code&gt;LibcloudHTTPConnection&lt;/code&gt;) to be provided to each driver, they are now 1 class - &lt;code&gt;LibcloudConnection&lt;/code&gt;. You probably won&amp;#39;t notice this because it is a property of the &lt;code&gt;Connection&lt;/code&gt; class, but
-if you are developing or extending functionality then it is implicated.&lt;/li&gt;
-&lt;li&gt;Unit tests will look slightly different (see below)&lt;/li&gt;
-&lt;li&gt;This change broke 4200 unit tests (out of 6340)! I&amp;#39;ve since fixed them all since they were coupled to the original implementation, but now I don&amp;#39;t know if all of tests are valid.&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h2&gt;Testing with requests&lt;/h2&gt;
-
-&lt;p&gt;Unit tests that were written like this:&lt;/p&gt;
-&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;DigitalOceanTests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;LibcloudTestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
-
-      &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setUp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
-          &lt;span class=&quot;n&quot;&gt;DigitalOceanBaseDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connectionCls&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;conn_classes&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; \ 
-           &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DigitalOceanMockHttp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
-          &lt;span class=&quot;n&quot;&gt;DigitalOceanMockHttp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;
-          &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DigitalOceanBaseDriver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DIGITALOCEAN_v1_PARAMS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
-&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
-&lt;p&gt;Because of the change have been modified to (I updated all of them - so this is just for future reference)&lt;/p&gt;
-&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;python language-python&quot; data-lang=&quot;python&quot;&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;DigitalOceanTests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;LibcloudTestCase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
-
-      &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setUp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
-          &lt;span class=&quot;n&quot;&gt;DigitalOceanBaseDriver&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connectionCls&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;conn_class&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DigitalOceanMockHttp&lt;/span&gt;
-          &lt;span class=&quot;n&quot;&gt;DigitalOceanMockHttp&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;None&lt;/span&gt;
-          &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;driver&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;DigitalOceanBaseDriver&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DIGITALOCEAN_v1_PARAMS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
-&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
-&lt;h1&gt;Check it out!&lt;/h1&gt;
-
-&lt;p&gt;The package is on my personal apache site, you can download it and install it in a virtualenv for testing.&lt;/p&gt;
-
-&lt;p&gt;&lt;code&gt;pip install -e http://people.apache.org/~anthonyshaw/libcloud/1.0.0-rc2-requests/apache-libcloud-1.0.0-rc2-requests.zip@feature#egg=apache-libcloud&lt;/code&gt;&lt;/p&gt;
-
-&lt;p&gt;The hashes are my &lt;a href=&quot;http://people.apache.org/%7Eanthonyshaw/libcloud/1.0.0-rc2-requests/&quot;&gt;apache space&lt;/a&gt;&lt;/p&gt;
-
-&lt;p&gt;Have a look at the &lt;a href=&quot;https://github.com/apache/libcloud/pull/728/files&quot;&gt;PR and the change set&lt;/a&gt; for a list of changes&lt;/p&gt;
-
-&lt;h1&gt;What might break?&lt;/h1&gt;
-
-&lt;p&gt;What I&amp;#39;m really looking for is for users of Libcloud to take 15 minutes, an existing (working) libcloud script, install this package in a virtualenv and just validate
-that there are no regression bugs with this change.&lt;/p&gt;
-
-&lt;p&gt;I&amp;#39;m particularly sceptical about the storage drivers.&lt;/p&gt;
-
-&lt;p&gt;Once we have enough community feedback, we will propose a vote to merge this into trunk for future release.&lt;/p&gt;
-
-&lt;h2&gt;Credit&lt;/h2&gt;
-
-&lt;p&gt;Credit to dz0ny on IRC for contributing some of the requests patch.&lt;/p&gt;
-</content>
-  </entry>
-    
-  <entry>
-    <title>New compute drivers and deprecated drivers in 1.0</title>
-    <link href="https://libcloud.apache.org/blog/2016/02/16/new-drivers-deprecated-drivers.html" />
-    <id>https://libcloud.apache.org/blog/2016/02/16/new-drivers-deprecated-drivers.html</id>
-    <updated>2016-02-16T00:00:00+01:00</updated>
-    <author>
-      <name>Anthony Shaw</name>
-    </author>
-    <content type="html">&lt;p&gt;With Libcloud 1.0.0 around the corner, it&amp;#39;s time to have a spring clean of the compute drivers. Granted, it&amp;#39;s not spring everywhere -actually
-I&amp;#39;m writing from Sydney, Australia where it&amp;#39;s definitely summer.&lt;/p&gt;
-
-&lt;p&gt;Looking at the 52 providers in the 0.21.0 release, I have identified 5 providers that are no longer available or open.&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;CloudFrames
-
-&lt;ul&gt;
-&lt;li&gt;Looks dead - website doesn&amp;#39;t work, can&amp;#39;t see any references to this online.&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;libcloud.compute.drivers.cloudframes&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;HP Public Cloud (Helion)
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2566&quot;&gt;Shut down on 31st of January 2016&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;libcloud.compute.drivers.hpcloud&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;IBM SmartCloud Enterprise
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://www.theregister.co.uk/2013/10/31/ibm_to_shutter_smartcloud_enterprise_moves_customers_to_softlayer/&quot;&gt;Shut down 2014, customers instructed to move to SoftLayer&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;libcloud.compute.drivers.ibm_sce&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Ninefold
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://www.itnews.com.au/news/ninefold-to-shut-down-411312&quot;&gt;Ninefold shut down in January 2016&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;libcloud.compute.drivers.ninefold&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;li&gt;Opsource
-
-&lt;ul&gt;
-&lt;li&gt;Dimension Data acquired OpSource in 2012, the Opsource driver is succeeded by the Dimension Data driver.&lt;/li&gt;
-&lt;li&gt;&lt;code&gt;libcloud.compute.drivers.opsource&lt;/code&gt;&lt;/li&gt;
-&lt;/ul&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;h3&gt;Handling deprecated drivers&lt;/h3&gt;
-
-&lt;p&gt;For 1.0.0, we need a clean and user-friendly way of handling deprecated drivers as well as keeping the repository clean from legacy code.&lt;/p&gt;
-
-&lt;p&gt;The most obvious implementation is that calls to &lt;code&gt;get_driver(Provider.NINEFOLD)&lt;/code&gt; as an example will return a user error message saying
-this provider is no longer supported with a link to a new article and an alternative solution.&lt;/p&gt;
-
-&lt;p&gt;Currently, users trying to instantiate a HPE public cloud driver for example will get a connection error, which is not user friendly.&lt;/p&gt;
-
-&lt;h3&gt;New compute drivers in 1.0.0-pre2&lt;/h3&gt;
-
-&lt;p&gt;The upcoming release, so currently available in trunk contains some new compute drivers.&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;http://libcloud.readthedocs.org/en/latest/compute/drivers/ntta.html&quot;&gt;NTT America Public Cloud&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://libcloud.readthedocs.org/en/latest/compute/drivers/internetsolutions.html&quot;&gt;Internet Solutions Public Cloud&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://libcloud.readthedocs.org/en/latest/compute/drivers/medone.html&quot;&gt;Med-1 Public Cloud&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://libcloud.readthedocs.org/en/latest/compute/drivers/indosat.html&quot;&gt;Indosat Cloud&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://libcloud.readthedocs.org/en/latest/compute/drivers/bsnl.html&quot;&gt;BSNL IDC Cloud&lt;/a&gt;&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;Full change log can be found at &lt;a href=&quot;https://github.com/apache/libcloud/blob/trunk/CHANGES.rst&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
-</content>
-  </entry>
-    
 </feed>