The Orcid class takes an author's name, DOI (Digital Object Identifier), and affiliation to attempt to find the author's ORCID ID. It employs a multi-step process, using external APIs like Orcid API, OpenAlex and CrossRef, to provide a confidence score and the method used to identify the author's ORCID.
Project description
Overview
The Orcid class takes an author's name, DOI (Digital Object Identifier), and affiliation to attempt to find the author's ORCID. It employs a multi-step process, using external APIs like Orcid API, OpenAlex and CrossRef, to provide a confidence score and the method used to identify the author's ORCID.
Note: The reliability of the search is greatly increased by providing a DOI and a affiliation of an author, even though they are optional parameters it is highly encuraged to provide them.
Example of usage
from NAME_OF_THE_PACKAGE import Orcid
# Initialize with author name and additional information
results = Orcid(
author_name="Jane Smith",
doi="10.5678/example-doi", # Optional
affiliation= "OpenAI Research Lab"] # Optional
)
# Print the results
print(results)
# Access specific attributes
print("ORCID:", results.orcid)
print("Confidence Level:", results.confidence)
print("Search Method:", results.method)
print("Execution Time:", results.time, "seconds")
Attributes
The Orcid class has several attributes that store the results of the search:
author_name: The name of the author being searched for.
doi: The DOI of the author's work (optional).
affiliation: An affiliation associated with the author (optional).
orcid: The ORCID ID of the author if found.
confidence: The confidence level of the ORCID match (e.g., 'High', 'Medium', 'Low').
method: The method used to find the ORCID ID (e.g., 'orcid API match', 'collaborator match').
time: The execution time for the search.\
Methods
The Orcid class provides a clean and human-readable representation of its attributes:
__repr__(): Returns a detailed string representation of the Orcid object, suitable for debugging.
__str__(): Returns a user-friendly string representation of the Orcid object, outlining the available attributes and their values.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 orcidfetch-0.2-py3-none-any.whl.
File metadata
- Download URL: orcidfetch-0.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d59ab4bb0d81bf57dabe070c0e255e50ebb4912ebc06db86add642bf4e05f0d7
|
|
| MD5 |
46f4a6c105b8c420d60d0ea4b0836fbc
|
|
| BLAKE2b-256 |
6565360a7371d71666eb9c8d4050156afa3a3edb0a536cb794dfa4ba8b245f5b
|