Parse URLs for DOIs, PubMed identifiers, PMC identifiers, arXiv identifiers, etc

Parse URLs for DOIs, PubMed identifiers, PMC identifiers, arXiv identifiers, etc.

This module has a single parse() function that takes in a URL and gives back
a CURIE pair (with None as the first entry if it could not parse)

>>> import citation_url

>>> citation_url.parse("https://joss.theoj.org/papers/10.21105/joss.01708")
('doi', '10.21105/joss.01708')

>>> citation_url.parse("http://www.ncbi.nlm.nih.gov/pubmed/34739845")
('pubmed', '34739845')

>>> citation_url.parse("https://example.com/true-garbage")
(None, 'https://example.com/true-garbage')

🚀 Installation

The most recent release can be installed from
PyPI with:

$ pip install citation_url

The most recent code and data can be installed directly from GitHub with:

$ pip install git+https://github.com/cthoyt/citation-url.git

👐 Contributing

Contributions, whether filing an issue, making a pull request, or forking, are appreciated. See
CONTRIBUTING.md for more information on getting involved.

👋 Attribution

⚖️ License

The code in this package is licensed under the MIT License.

🍪 Cookiecutter

This package was created with

 

 

 

To finish reading, please visit source site