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.2.tar.gz (5.8 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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: as_a_person-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 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.2.tar.gz
Algorithm Hash digest
SHA256 fcf719f7d6bd08f88e6a3338d580d6de25a2d11f762fa4a238283948be04a862
MD5 8b3c815990866f5947e56086258f936e
BLAKE2b-256 d39c9cb60c28bbf9ab1ae44ae1f2a01c01a7567157a67a54641cdf55b3abebe1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: as_a_person-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b897ce2d183e836687ea9ce4556e69458b543b711a4e41f6b79ab6b7d17ac0d
MD5 55eb49f34b5dbc07608b75655110fc66
BLAKE2b-256 8f597e4df09eea52596739d6b385cc787a590b39ec0e91883789cbffb9518c7f

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