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.0rc8.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for rayyan-sdk-1.0rc8.tar.gz
Algorithm Hash digest
SHA256 cb8ae131581bd9e40faa82ae1fd0188a7c8659bcbb60c83f465926fba7790166
MD5 26c1271c1443ecb7770a302ce51b9bba
BLAKE2b-256 e7eab105a2694dde448598dbef773c846c10f6e8a365debc4a7ed9290287afe6

See more details on using hashes here.

Provenance

The following attestation bundles were made for rayyan-sdk-1.0rc8.tar.gz:

Publisher: publish-pypi.yaml on rayyansys/rayyan-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: rayyan_sdk-1.0rc8-py2.py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rayyan_sdk-1.0rc8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 599ffa3bce6dfbaab371a76535f46a15e04be7b618a442542bd23e52c0537f9f
MD5 3ac9256b4b82ecb0372f719f60cbeb9a
BLAKE2b-256 e8c042a078f100c62b3033f3d8ad5f401115d7c6478f26820a6bc3e6669c3166

See more details on using hashes here.

Provenance

The following attestation bundles were made for rayyan_sdk-1.0rc8-py2.py3-none-any.whl:

Publisher: publish-pypi.yaml on rayyansys/rayyan-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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