Skip to main content

What It Does

pyRerve is a library for connecting Python to an R process (an excellent statistic package) running Rserve as a RPC connection gateway. Through such a connection variables can be get and set in R from Python, and also R-functions can be called remotely. In contrast to rpy or rpy2 the R process does not have to run on the same machine, it can run on a remote machine and all variable access and function calls will be delegated there through the network.

Furthermore - and this makes everything feel very pythonic - all data structures will automatically be converted from native R to native Python types and back.

Changes

  • V 0.5.2 (2011-12-02)
    • Fixed problem with 32bit integers being mistakenly rendered into 64bit integers on 64bit machines

  • V 0.5.1 (2011-11-22)
    • Fixed improper DeprecationWarning when evaluating R statements via conn.r(…)

  • V 0.5 (2011-10-03)
    • Renamed pyRserve.rconnect() to pyRserve.connect(). The former still works but shows a DeprecationWarning

    • String evaluation should now only be executed on the namespace directly, not on the connection object anymore. The latter still works but shows a DeprecationWarning.

    • New kw argument atomicArray=True added to pyRserve.connect() for preventing single valued arrays from being converted into atomic python data types.

  • V 0.4 (2011-09-20)
    • Added support for nested function calls. E.g. conn.r.t.test( ….) now works.

    • Proper support for boolean variables and vectors

  • V 0.3 (2010-06-08)
    • Added conversion of more complex R structures into Python

    • Updated documentation (installation, manual)

  • V 0.2 (2010-03-19) Fixed rendering of TaggedArrays

  • V 0.1 (2010-01-10) Initial version

Supported Platforms

This package has been mainly developed under Linux, and hence should run on all standard unix platforms. It has also been successfully used on Win32 machines. Unittests have only been used on the Linux side, however they might just work fine for Win32.

It has been tested run with Python 2.6.x and 2.7.x. Python 3.x has never been tested, it might or might not work.

The latest development has been tested with R 2.13.1 and Rserve 0.6.6.

License

pyRserve has been written by Ralph Heinkel (www.ralph-heinkel.com) and is released under MIT license.

Quick Installation

Make sure that Numpy is installed.

Then from your unix/windows command line run:

easy_install pyRserve

or download the tar.gz or zip package. After unpacking run python setup.py install from your command line.

Documentation

Documentation can be found at http://packages.python.org/pyRserve/.

Support

For discussion of pyRserve issues and getting help please use the Google newsgroup available at http://groups.google.com/group/pyrserve.

Missing Features

  • Authentication is implemented in Rserve but not yet in pyRserve

Release files for pyRserve 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyRserve 0.5.2
File Size Uploaded
pyRserve-0.5.2.tar.gz 78.2 kB Details

Release files / pyRserve-0.5.2.tar.gz

Download URL pyRserve-0.5.2.tar.gz
Size 78.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d2dd70a50a5ff2293da5de96746041704bb19524e8929166727e6a6b30bc1045
BLAKE2b-256 checksum
How to use checksums
f167bf3638897f0ee03ae7eeab0cef86191748856561c04475518d6c93a56192
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page