Closed bilalshaikh42 closed 2 years ago
I am silly. JournalArticle is a data class and I can just use the asDict method
For caching HTTP queries, I like requests-cache
.
The Entrez methods are probably easiest to cache externally. One option is something like https://pypi.org/project/diskcache/.
Dataclass is nice. Unfortunately, I wasn't aware of this when we started.
I have a small hack function to save the journal article to a json file to avoid calling the NCBI API too much. It would be helpful to incorporate this into the class