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 2014/02/19 20:22:11 UTC

[2/4] git commit: docs: Add "How do I obtain Libcloud version?" entry to FAQ.

docs: Add "How do I obtain Libcloud version?" entry to FAQ.


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/14640c3f
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/14640c3f
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/14640c3f

Branch: refs/heads/trunk
Commit: 14640c3fc244289ab21a23851d1e461f7656363e
Parents: 0da0cb9
Author: Tomaz Muraus <to...@apache.org>
Authored: Wed Feb 19 10:37:24 2014 +0100
Committer: Tomaz Muraus <to...@apache.org>
Committed: Wed Feb 19 10:37:24 2014 +0100

----------------------------------------------------------------------
 docs/faq.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/14640c3f/docs/faq.rst
----------------------------------------------------------------------
diff --git a/docs/faq.rst b/docs/faq.rst
index da7f81e..49d33a8 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -84,3 +84,23 @@ our :ref:`mailing list <mailing-lists>` where we can discuss it further.
 Ideally, the proposal should also contain a prototype of a driver for at least
 two different providers. This helps us make sure that the API you have designed
 is not biased towards a single provider.
+
+How do I obtain Libcloud version?
+---------------------------------
+
+You can obtain currently active Libcloud version by accessing the
+``libcloud.__version__`` variable.
+
+Example #1 (command line):
+
+.. sourcecode:: bash
+
+    python -c "import libcloud ; print libcloud.__version__"
+
+Example #2 (code):
+
+.. sourcecode:: python
+
+    import libcloud
+    libcloud.__version__
+