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.2.tar.gz (19.4 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.2.tar.gz.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bb8f54d580056e69a046500e4c42be0e09e3ad6fd62580be9a3da14fe3ab6c64
MD5 4b5e68cbd9f041195e068fccaa98c165
BLAKE2b-256 61ed71b506b3ff5cf4244e8553c45f64b2b839279fc5f8e90d478ca84debebcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1af89d4183d7c2a2ba20e23a5ce93a64bf59808a1426e39f402174f75b806db5
MD5 5093f7bd0831b0c0096de064b56b2e4d
BLAKE2b-256 7e64bc0f7f4259be4c72bd5beba8d3bdfd2822fe08dc387acb7f612046b5b5a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for listofpublicationsfrominspirehep-0.1.2-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