Skip to content
Snippets Groups Projects
Commit 3d3893de authored by Caner Candan's avatar Caner Candan
Browse files

* README.md: fixed an issue in the example

parent b2d66dcb
No related branches found
No related tags found
No related merge requests found
...@@ -15,18 +15,18 @@ Here is a fast installation procedure (a bit dirty) we suggest to quickly use th ...@@ -15,18 +15,18 @@ Here is a fast installation procedure (a bit dirty) we suggest to quickly use th
```bash ```bash
$ mkdir $HOME/ucoin $ mkdir $HOME/ucoin
$ cd $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" $ 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: 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 ```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]: Out[3]:
{'contract': {'currentNumber': '5', {'contract': {'currentNumber': '5',
'hash': 'FB710AE30F843BF505ABF9DE8CF404B7F35D238A'}, 'hash': 'FB710AE30F843BF505ABF9DE8CF404B7F35D238A'},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment