Skip to main content

A simple Python library for converting URLs to citable people

Project description

As-A-Person: A simple Python library for converting URLs to citable people

Supports ORCID, ISNI, vCard, hCard, and jCard lookup and parsing. Everything is converted to the internal CitablePerson dataclass.

Motivation

Various metadata fromats, including DataCite and Frictionless require similar, but not identical, metadata for authors. Neither adheres to a particular standard nor supplies tools for resulving author URIs.

Prerequisites

  • Python 3.11 runtime
  • Pip for package installation

Installation

Install the dependencies into the environment with pip:

pip install -r requirements.txt
pip install .

Usage

Feed identifiers into the appropriate dereferencing function, e.g., orcid_to_person for an ORCID, to return a CitablePerson on success or raise a ValueError on failure.

Testing

python3 -m coverage run -m unittest discover -s test -p "*_test.py" && python -m coverage report --skip-covered
python -m coverage html

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Ryan Quinn - Initial work

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

as_a_person-0.1.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

as_a_person-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file as_a_person-0.1.0.tar.gz.

File metadata

  • Download URL: as_a_person-0.1.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for as_a_person-0.1.0.tar.gz
Algorithm Hash digest
SHA256 627870e62735b60e0722aff8404090f3ed00883715d603d6cda9689c237a50c5
MD5 e9f23d56b0b3032de9b15d7548b11b39
BLAKE2b-256 8cf38b495de293ea78b87bd25f6c22a5e4ad23659f0c467b1bc869525424d3cf

See more details on using hashes here.

File details

Details for the file as_a_person-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: as_a_person-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for as_a_person-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fa886de9bd420388eb151a92de230da044a2c59fbb0ba41edde9bc37edd2b05
MD5 94559a787072e84dd70ef0d0c687e875
BLAKE2b-256 ed3b8f88ef039d727fa2bdf2593c852ace1c6095cbf07d324bf4d3b424ee4d68

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