Add your description here
Project description
openalex
This is an UNOFFICIAL client library designed to make it easy to interact with the OpenAlex API. The OpenAlex API is a free, open-source API that provides access to a wide range of data on academic publications, including metadata, citation data, and full-text content.
Installation
To install this OpenAlex client library, you can use pip or uv. (I am choosing not to use the pypi openalex name to make it clear that this is an unofficial client library, but in the meantime the openalex name is not taken.)
uv add "git+https://github.com/j6k4m8/openalex"
Usage
Here's a simple example of how you can use this library to search for publications on a particular topic:
from openalex import OpenAlex
# Create a new OpenAlex client
client = OpenAlex(mailto="provide-an-email-for-better-service@example.com")
# Search for publications on a particular topic
author_uri = client.get_author_uri_by_search("jordan matelsky")
# Get author institutions:
client.get_author_institutions(author_uri)
Here, all objects are defined as Pydantic types, so you can access, for example, "deep" attributes like this:
paper = client.get_work_by_search("dotmotif")
print(paper.title)
print(paper.authorships[0].author.id)
See also
This work is used by the following projects:
| Project | Description |
|---|---|
| http://bib.experiments.kordinglab.com/nsf-coa | A simple NSF COA generator and collaborator-finder |
| https://github.com/j6k4m8/scholarversary | milestone-finder for academic careers through the (limited!) lens of publishing |
| https://github.com/j6k4m8/remarkabib | Emerging bibliography and reference manager for the reMarkable tablet. |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openalex-0.1.0.tar.gz.
File metadata
- Download URL: openalex-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5644574eac91c6285535498988eb03c57f7a88c5eaf03897e8f5ee6802215cba
|
|
| MD5 |
9961647c6ae03bc10f747b4aff2c6b0c
|
|
| BLAKE2b-256 |
1daf3c488682093d4e791e43615de44bb699982c852a5204956b7e627ff5f2a4
|
File details
Details for the file openalex-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openalex-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b7c23c4c4627b01834627112212176d853f6115f5b032564e3252f8bec3428
|
|
| MD5 |
98c4197dc014638694bc6670bf07e6c5
|
|
| BLAKE2b-256 |
69551c9bd5f95cca09355cf25661332cf078c6c29f8c6cbd96c0b17a59578bb6
|