Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!



Retrieve results from the INSPIRE HEP database ( from the command line.

Author: Ian Huston

Released under the modified BSD license.

Usage: [options] Example: -b -s "find a Feynman, Richard"

--version show program's version number and exit
-h, --help show this help message and exit
-s STRING, --search=STRING
 search string to send to INSPIRE
-b, --bibtex output bibtex for entries
--latexEU use LaTeX(EU) format for entries
--latexUS output bibtex for entries
-v, --verbose print informative messages
--debug log lots of debugging information

Please be careful to not overload the INSPIRE server by repeatedly requesting large numbers of results. If using pyinspire in a script please add some throttling of frequency of search queries.

Note: Currently only the first 100 results are returned.

Recent activity

Ian Huston

Commits by Ian Huston were pushed to ihuston/pyinspire

43f1127 - Update to using setuptools instead of distutils and add requirements. Bump to version 0.1.1 to add to PyPi again.
Ian Huston

Commits by Ian Huston were pushed to ihuston/pyinspire

0449a85 - Tidied up unused functions and refactored into bibtex and non bibtex extraction. The text extraction now tries to remove extraneous newline characters and other unneeded ...
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.