gcfit.util.bibcode2cite#
- gcfit.util.bibcode2cite(bibcode, strict=True)#
Request this bibcode from ADS and attempt to parse a cite from it.
Requires the ads package and a NASA ADS API-key saved to a file called ~/.ads/dev_key or as an environment variable named ADS_DEV_KEY.
For lack of a more sophisticated parser, simply grabs the start of a full format which begins with the “cite” style (aastex) and uses that.
If the given bibcode is not valid, won’t even attempt to query ads, and will simply error or return the bibcode (depending on strict).