Skip to main content

A Python SDK for Rayyan APIs

Project description

Rayyan Python SDK

A Python SDK for Rayyan HTTP APIs.

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 and going to 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 on GitHub. You can also find a Juptyer notebook with examples here: 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-api-py
cd rayyan-api-py
python setup.py develop

Support

If you have any questions or problems with the SDK, please create an issue on GitHub. 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.0rc6.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

rayyan_sdk-1.0rc6-py2.py3-none-any.whl (12.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: rayyan-sdk-1.0rc6.tar.gz
  • Upload date:
  • Size: 9.7 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.0rc6.tar.gz
Algorithm Hash digest
SHA256 6285f9819e2c20fdd97ad754653dbf1db9ab5ff0a2cbe1997ffff353e6019977
MD5 1ce99f55f0d9cb5c4a1af64f420a7a66
BLAKE2b-256 572be118bb887d60e1648781d7e393e2b62103dfc127cbe20bbdc2e7087486ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rayyan_sdk-1.0rc6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2c4630318fc469df4db456eeae1bd510ca9b8f0f250b6ce528b3694c0ab9d607
MD5 830ff0838279c570e10cb4cd795bb496
BLAKE2b-256 2ca6783974e1ba81e2f82ee17449b72d5c6c35cea9a65dc27cb2537715fe8907

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