Skip to main content

Create and validate publication lists from INSPIREHEP and generate LaTeX/PDF output

Project description

Python application

ListOfPublicationsFromInspireHEP

Create a list of publications from InspireHEP and produce a LaTeX document and a PDF. This tool can be useful when the list is very long and there are some LaTeX errors in the BibTeX entries.

Install

From a local checkout (classic workflow):

python -m pip install -r requirements.txt

Install the CLI tools with pipx (persistent install):

pipx install listofpublicationsfrominspirehep

or run one-shot without installing with uvx:

uvx --from listofpublicationsfrominspirehep check_biblio -h
uvx --from listofpublicationsfrominspirehep create_bibtex -h
uvx --from listofpublicationsfrominspirehep create_latex -h

Publish to PyPI

The repository now includes a GitHub Actions workflow that publishes a release to PyPI when you push a tag that starts with v.

Typical flow:

  1. Bump the version in pyproject.toml and commit it.
  2. Create and push a tag such as v0.1.1.
  3. GitHub Actions runs tests, builds the wheel/sdist, and publishes to PyPI.

Before the first release, enable trusted publishing for this repository in your PyPI project settings, or replace it with an API token-based setup if you prefer that model.

How to use it

First create the BibTex file downloading all your bib entries, for the options try:

create_bibtex -h

it downloads the entries from http://inspirehep.net/ and produces a BibTeX file as bibtex_2016-02-07.bib. If you get problems you can download the BibTex from inspire.hep, going on your profile and using the "cite all" button. Actually, this is faster, but you can download only 1000 entries. In this case, you can select a few years on the left and then merge the files.

Usually, many LaTeX errors are present, you can fix them with:

check_biblio --fix-unicode <bibtexfilename.bib>

Finally to create the pdf:

create_latex <bibtexfilename_new.bib>

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

listofpublicationsfrominspirehep-0.1.1.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file listofpublicationsfrominspirehep-0.1.1.tar.gz.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc5953cca095074a559dd2b1b27e4dc93345653b3d0e81998488a75a67735b80
MD5 9837d121d757b24d43cefa52a0dea602
BLAKE2b-256 b1c962e5203a3017f0efd968395a89fa406c166dd757eb626018b558f7a7ae20

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.1.tar.gz:

Publisher: publish-pypi.yml on wiso/ListOfPublicationsFromInspireHEP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file listofpublicationsfrominspirehep-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 505160fe05c10bcfb9c1619945e8cf892d861c916d8e171eac579096a99c8e36
MD5 4678c5bdea1ade6b799755b8d05bf282
BLAKE2b-256 a6694ab9c66446fb83c7c05726264e3e65dc7898345f905b6659e68aebba4613

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.1-py3-none-any.whl:

Publisher: publish-pypi.yml on wiso/ListOfPublicationsFromInspireHEP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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