This is a wrapper for the Researchmap API.
Project description
researchmap.py
Key Features
- Modern Pythonic API using
async
andawait
. - Optimised in both speed and memory.
Installing
Python 3.8 or higher is required
To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U researchmap.py
# Windows
py -3 -m pip install -U researchmap.py
To install the development version, do the following:
$ git clone https://github.com/RTa-technology/researchmap.py
$ cd researchmap.py
$ python3 -m pip install -U .
Quick Example
import researchmap
def main():
with open('env/rmap_jwt_private.key', 'rb') as f_private:
private_key = f_private.read()
with open('env/rmap_client_id.key', 'r') as f_id:
id = f_id.read()
client_id = id
client_secret = private_key
scope = 'read researchers'
auth = researchmap.Auth(client_id, client_secret, scope)
access_token = auth.get_access_token()["access_token"]
req = researchmap.RequestsAdapter(access_token)
payload = {"format": "json", "limit": 100, "institution_code": "所属機関の機関コード"}
print(req.get_bulk(payload))
if __name__ == "__main__":
main()
Contributing
How to localize
$ docs/make.bat gettext
$ sphinx-intl update -p docs/_build/gettext -l ja
$ # Translate the po file.
$ Set-Item env:SPHINXOPTS "-D language=ja"
$ docs/make.bat html
Links
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
researchmap.py-0.0.1.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file researchmap.py-0.0.1.tar.gz
.
File metadata
- Download URL: researchmap.py-0.0.1.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fff140200789b03d0c5d9a20f16edd0661e721773adabe4076e790442d612650 |
|
MD5 | cc83505825d744c5b4b67c89c323f079 |
|
BLAKE2b-256 | d09ca8372e83827e7734cc24d27b1f45f92914e9eb6b80ef8a6e4b637e2dcf8d |
File details
Details for the file researchmap.py-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: researchmap.py-0.0.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d58a42673d6b57d73380364f13ba66b594237aa54d89b14c1905e2529925056f |
|
MD5 | 7dae823402c46fa27f31fbb6770e7773 |
|
BLAKE2b-256 | 6744602ca69f8ffbc86c376c044ff06d69364e382879870570f79f190728dda5 |