From 3d3893de6d0e8ea21c9e7b0c177e02d9d5b6d20e Mon Sep 17 00:00:00 2001 From: Caner Candan <candan@info.univ-angers.fr> Date: Sat, 1 Feb 2014 18:59:36 +0100 Subject: [PATCH] * README.md: fixed an issue in the example --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 882a5fc5..d965a129 100644 --- a/README.md +++ b/README.md @@ -15,18 +15,18 @@ Here is a fast installation procedure (a bit dirty) we suggest to quickly use th ```bash $ mkdir $HOME/ucoin $ cd $HOME/ucoin -$ git clone git@github.com:canercandan/ucoin-python-api.git +$ git clone git@github.com:canercandan/ucoin-python-api.git ucoinpy $ export PYTHONPATH="$HOME/ucoin:$PYTHONPATH" ``` Thus you are ready to use it with your own python program. Here is an example illustrating how to use it thanks to the python shell: ```python -In [1]: import ucoin-python-api as ucoin +In [1]: import ucoinpy -In [2]: ucoin.settings['server'] = 'mycurrency.candan.fr' +In [2]: ucoinpy.settings['server'] = 'mycurrency.candan.fr' -In [3]: ucoin.ucg.Peering().get() +In [3]: ucoinpy.ucg.Peering().get() Out[3]: {'contract': {'currentNumber': '5', 'hash': 'FB710AE30F843BF505ABF9DE8CF404B7F35D238A'}, -- GitLab