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 <[email protected]> Authored: Wed Feb 19 10:37:24 2014 +0100 Committer: Tomaz Muraus <[email protected]> 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__ +
