dgerosa / filltex

Automatic queries to ADS and INSPIRE databases to fill LaTex bibliography
https://davidegerosa.com/filltex
MIT License
21 stars 6 forks source link

Consider making it into a Python package #6

Closed lnielsen closed 7 years ago

lnielsen commented 7 years ago

The repository could be made into Python package and be released on Python Package Index.

The installation could be reduced to:

$ pip install filltex
$ filltex install-texshop
$ filltex <file>

You could use the click library for handling the CLI (and install the command line tool). This also makes unit testing the CLI pretty easy.

You could easily use dependencies such as requests and idutils libraries to do part of the work.

You could refactor the script into API + CLI. The API being citation extraction from .aux files etc (might be there's a Python library already doing this).

You would need modifying the PATH environment.

You would need to deal properly rewrite the filltex bash script into Python or call it from Python.

If this is something you'd like I'll happily provide more details.

openjournals/joss-reviews#222

dgerosa commented 7 years ago

Thanks for all these ideas. I'll look into this soon and see if I want to rewrite the code as you suggest. In the meanwhile, any volunteer is more than welcome to give it a try!

dgerosa commented 7 years ago

Some of these suggestions have been implemented. Installation now is:

pip install filltex
filltex install-texshop
filltex <file>