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.0rc15.tar.gz (13.8 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.0rc15-py2.py3-none-any.whl (20.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rayyan_sdk-1.0rc15.tar.gz.

File metadata

  • Download URL: rayyan_sdk-1.0rc15.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for rayyan_sdk-1.0rc15.tar.gz
Algorithm Hash digest
SHA256 c1380b51ecd46ef119f4dac3ee1b48af8782f44d76770e934b6a6995908f30e9
MD5 8dc2aa8d984e88716768e0113541b15d
BLAKE2b-256 baf3bd9fbcd1ef27ff568db6c2efb2c9c71e248cc255ca6c19056c5d322d6667

See more details on using hashes here.

Provenance

The following attestation bundles were made for rayyan_sdk-1.0rc15.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.0rc15-py2.py3-none-any.whl.

File metadata

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

File hashes

Hashes for rayyan_sdk-1.0rc15-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0bfb037c6945e4f180f93916578888918dc920593f9c4c8ab46779486da10b3
MD5 a66a77cc47855002b9d4ca6283a09799
BLAKE2b-256 4c63740ce05601fafd76f2e92bfcfbfdf8d5b0e024c5e132090801aff3ce60f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for rayyan_sdk-1.0rc15-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