Following #42 by @boyanpenkov this PR moves main() related code to main.py
The code in main.py is not meant to be used elsewhere. If code found there is deemed useful enough to be used in its own purpose (such as in another application using papers as dependency), it should be moved to another module (bib.py or else).
Now the cli code can be run either upon pip install as papers, or without install via python -m papers (instead of previously python -m papers.bib). That can be useful for development.
Following #42 by @boyanpenkov this PR moves main() related code to main.py The code in main.py is not meant to be used elsewhere. If code found there is deemed useful enough to be used in its own purpose (such as in another application using papers as dependency), it should be moved to another module (bib.py or else). Now the cli code can be run either upon pip install as
papers
, or without install viapython -m papers
(instead of previouslypython -m papers.bib
). That can be useful for development.