Skip to main content

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 orcidfetch 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orcidfetch-0.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file orcidfetch-0.3-py3-none-any.whl.

File metadata

  • Download URL: orcidfetch-0.3-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

Hashes for orcidfetch-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 662785b2fd3047469c218557927fb7dad5456a0eb32f37f4b98cb99f4f3124ad
MD5 d2f43d7e98a3603eac7d97f1268c66d9
BLAKE2b-256 dff0ac0618b4ec84b4ab90b402ebdec218ff4db6d2c100ac546223c32e5154b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page