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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6285f9819e2c20fdd97ad754653dbf1db9ab5ff0a2cbe1997ffff353e6019977 |
|
MD5 | 1ce99f55f0d9cb5c4a1af64f420a7a66 |
|
BLAKE2b-256 | 572be118bb887d60e1648781d7e393e2b62103dfc127cbe20bbdc2e7087486ba |
File details
Details for the file rayyan_sdk-1.0rc6-py2.py3-none-any.whl
.
File metadata
- Download URL: rayyan_sdk-1.0rc6-py2.py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c4630318fc469df4db456eeae1bd510ca9b8f0f250b6ce528b3694c0ab9d607 |
|
MD5 | 830ff0838279c570e10cb4cd795bb496 |
|
BLAKE2b-256 | 2ca6783974e1ba81e2f82ee17449b72d5c6c35cea9a65dc27cb2537715fe8907 |