| 1 |
.. -*- mode: rst -*- |
| 2 |
|
| 3 |
:: |
| 4 |
|
| 5 |
.---. .-..-..-.,-. .--. |
| 6 |
: .; `: :; :`. .'`._-.' |
| 7 |
: ._.'`._. ;:_,._;`.__.' |
| 8 |
: : .-. : |
| 9 |
:_; `._.' 0.4.2-dev |
| 10 |
|
| 11 |
-- XenStore access the Python way! |
| 12 |
|
| 13 |
|
| 14 |
What is ``pyxs``? |
| 15 |
----------------- |
| 16 |
|
| 17 |
It's a pure Python XenStore client implementation, which covers all of |
| 18 |
the ``libxs`` features and adds some nice Pythonic sugar on top. Here's |
| 19 |
a shortlist: |
| 20 |
|
| 21 |
* ``pyxs`` supports both Python 2 and 3, |
| 22 |
* works over a Unix socket or XenBus, |
| 23 |
* has a clean and well-documented API, |
| 24 |
* is written in easy to understand Python, |
| 25 |
* can be used with `gevent <http://www.gevent.org>`_ or |
| 26 |
`eventlet <http://eventlet.net>`_. |
| 27 |
|
| 28 |
Installation |
| 29 |
------------ |
| 30 |
|
| 31 |
If you have `pip <https://pip.pypa.io/en/stable>`_ you can do the usual:: |
| 32 |
|
| 33 |
pip install --user pyxs |
| 34 |
|
| 35 |
Otherwise, download the source from `GitHub <https://github.com/selectel/pyxs>`_ |
| 36 |
and run:: |
| 37 |
|
| 38 |
python setup.py install |
| 39 |
|
| 40 |
Fedora users can install the package from the system repository:: |
| 41 |
|
| 42 |
dnf install python2-pyxs |
| 43 |
dnf install python3-pyxs |
| 44 |
|
| 45 |
RHEL/CentOS users can install the package from the |
| 46 |
`EPEL <https://fedoraproject.org/wiki/EPEL>`_ repository:: |
| 47 |
|
| 48 |
yum install python2-pyxs |
| 49 |
yum install python34-pyxs |