Skip to main content

A Python SDK for Rayyan APIs

Project description

Rayyan Python SDK

A Python SDK for Rayyan, the popular systematic reviews platform. It is a wrapper around the HTTP APIs of Rayyan.

Installation

To install the latest stable release of Rayyan Python SDK, execute the following command:

pip install rayyan-sdk

For the nightly builds, execute the following command:

pip install -i https://test.pypi.org/simple/ rayyan-sdk

Usage

To use the SDK, you need to have a credentials file in JSON format like the one below. You can retrieve such file by signing in to your Rayyan account (create a free account if you don't have one) and visiting My Account page.

// creds.json
{
    "access_token": "9c2b0fe74ab7cd8d1227cd2fd",
    "refresh_token": "b40e325a1a7f53831ec3c09fffc7"
}

Import Rayyan main class and pass the credentials file to it like this:

rayyan = Rayyan("cred.json")

Note: The credentials file should be kept secret and not shared with anyone. It acts as a password to your Rayyan account.

To get the authenticated user info:

user = rayyan.user.get_info()

Documentation

The full documentation for Rayyan Python SDK is available in the docs folder on GitHub. You can also find a Juptyer notebook with examples in rayyan-api.ipynb.

Development

To build Rayyan Python SDK from source, execute the following command in a terminal:

git clone https://github.com/rayyansys/rayyan-python-sdk
cd rayyan-python-sdk
python setup.py develop

Support

If you have any questions or problems with the SDK, please check existing issues on GitHub, or open a new issue if needed. For questions about Rayyan itself, please use the Rayyan Help Center.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rayyan-sdk-1.0rc7.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

rayyan_sdk-1.0rc7-py2.py3-none-any.whl (12.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rayyan-sdk-1.0rc7.tar.gz.

File metadata

  • Download URL: rayyan-sdk-1.0rc7.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for rayyan-sdk-1.0rc7.tar.gz
Algorithm Hash digest
SHA256 07deb44d2cf6124d9b8ba82f340faf0cb856bfbbe0e856aab347d17efbfc4567
MD5 d582ccf1d90518681a37540f6a6ceb9e
BLAKE2b-256 309dec5e1f0ba600e86372035f579613a5b8c6046a8b9289d8570935ea6a75a3

See more details on using hashes here.

File details

Details for the file rayyan_sdk-1.0rc7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rayyan_sdk-1.0rc7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fc52a6f474f4997cf324e5c72b777b7f6835d45476ca33ff6f00d15fcaaaef05
MD5 706a9d727b5e98fad446deaca1f1985a
BLAKE2b-256 a9f433b35b03963f5acfbb09ea027378690b6c009072a22ea303449851670d7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page