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

CLI tools via pipx/uvx directly from GitHub, without publishing to PyPI:

pipx install "git+https://github.com/wiso/ListOfPublicationsFromInspireHEP.git"

or run one-shot without a persistent install:

uvx --from "git+https://github.com/wiso/ListOfPublicationsFromInspireHEP.git" check_biblio -h

uvx --from "git+https://github.com/wiso/ListOfPublicationsFromInspireHEP.git" create_bibtex -h

uvx --from "git+https://github.com/wiso/ListOfPublicationsFromInspireHEP.git" create_latex -h

Installed/exposed commands are:

check_biblio
create_bibtex
create_latex

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.0.tar.gz (19.5 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.0.tar.gz.

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5f0406ad6f7dfe5cab670044328266d9c92421746429567b571360ae3989c1fb
MD5 e119daa44688f37c0eb48249fa4084d0
BLAKE2b-256 4192bf09a433a3dc29485cb36572ab2c09609bc6d0939c190a22c4e7f5f970d7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for listofpublicationsfrominspirehep-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4324054b2e1933ce7b13fab349595b6e048fda9e008d0f8f99213599a3ea53f
MD5 7800a916f977b514670be8aa7f2144f4
BLAKE2b-256 bb58de02c9c76d561a858b89d027782a143f0edd33161ef4797e0b3de8bb56ff

See more details on using hashes here.

Provenance

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