researchmap.py
Key Features
- Modern Pythonic API using
asyncandawait. - 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
Release files for researchmap.py 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| researchmap.py-0.0.1.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| researchmap.py-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.2 kB
Release files / researchmap.py-0.0.1.tar.gz
| Download URL | researchmap.py-0.0.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fff140200789b03d0c5d9a20f16edd0661e721773adabe4076e790442d612650
|
|
BLAKE2b-256 checksum How to use checksums |
d09ca8372e83827e7734cc24d27b1f45f92914e9eb6b80ef8a6e4b637e2dcf8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / researchmap.py-0.0.1-py3-none-any.whl
| Download URL | researchmap.py-0.0.1-py3-none-any.whl |
|---|---|
| Size | 10.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d58a42673d6b57d73380364f13ba66b594237aa54d89b14c1905e2529925056f
|
|
BLAKE2b-256 checksum How to use checksums |
6744602ca69f8ffbc86c376c044ff06d69364e382879870570f79f190728dda5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|