{ "info": { "author": "Ryan Varley", "author_email": "ryan@ryanvarley.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Education", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS", "Programming Language :: Python :: 2.7", "Topic :: Scientific/Engineering :: Astronomy" ], "description": "# ADSBibTeX\n[![Build Status](https://api.travis-ci.org/ryanvarley/adsbibtex.png?branch=master)](https://travis-ci.org/ryanvarley/adsbibtex)\n[![Coverage Status](https://coveralls.io/repos/ryanvarley/adsbibtex/badge.svg?branch=master&service=github)](https://coveralls.io/github/ryanvarley/adsbibtex?branch=master)\n\nADSBibTeX builds a bibtex file for a LaTeX document using by querying a list of bibcodes with NASA ADS, it was inspired by a similar script by [Alex Merson](http://www.ucl.ac.uk/star/people/amerson).\n\n## Why?\n\nTwo main reasons\n\n1. If you cite a preprint paper, this will automatically update the entry to the published version, when it is published\n2. For really long bibtex files, its much easier to manage a list of bibcodes than bibtex entries, and you can divide\n them into sections with comments i.e.\n\n```bash\n# Transmission Spectroscopy\n2008Natur.452..329S Swain2008 # The presence of methane in the atmosphere of an extrasolar planet\n2006AGUSM.A21A..06T Tinetti2006\n\n# Detrending Techniques\n2013ApJ...766....7W Waldmann2013\n```\n\nIt is also fast after the initial run, entries are cached so they are only fetched from ADS again after they are older than your ttl (time to live) setting in the config. This means you can integrate it into your latex compilation without worrying about it adding a significant overhead to your build.\n\n## Setup and installation\n\nYou'll need an ADS API key, the following is from the `ads` [module docs](https://github.com/andycasey/ads)\n\n1. You'll need an API key from NASA ADS labs. Sign up for the newest version of ADS search at https://ui.adsabs.harvard.edu, visit account settings and generate a new API token. The official documentation is available at https://github.com/adsabs/adsabs-dev-api\n2. When you get your API key, save it to a file called ``~/.ads/dev_key`` or save it as an environment variable named ``ADS_DEV_KEY``\n\nThen install this package\n\n```bash\npip install adsbibtex\n```\n\nor get the latest development version from here with\n\n```bash\ngit clone https://github.com/ryanvarley/adsbibtex.git\ncd adsbibtex\npython setup.py install\n```\n\n\n## Usage\n\n```bash\nadsbibtex \n```\n\nconfig_file defaults to `config.adsbib`, see the next section for an example file\n\n## Example config file\n\nThe config file consists of a top section of `yaml` where the config is stored and a list of bibcode citename entries\n(after `---`). Comments can be entered with `#`.\n\nAll entries must have a valid bibcode, if no citename is given then the bibcode will be the citename\n\n```bash\ncache_ttl: 168 # hours, 3d = 72, 1w=168, 2w=336\ncache_file: adsbibtex.cache # location to store cached entries\nbibtex_file: example.bib # location to output bibtex file\n---\n# Bibcode Name # Optional Comment\n2008Natur.452..329S Swain2008\n2006AGUSM.A21A..06T # no name needed\n\n# You can use comments to divide papers into sections\n2013ApJ...766....7W Waldmann2013 # You could put the paper title or subject here\n```\n\nRunning `adsbibtex` on this file produces the following output\n\n```bibtex\n@ARTICLE{Swain2008,\n author = {{Swain}, M.~R. and {Vasisht}, G. and {Tinetti}, G.},\n title = \"{The presence of methane in the atmosphere of an extrasolar planet}\",\n journal = {\\nat},\n year = 2008,\n month = mar,\n volume = 452,\n pages = {329-331},\n doi = {10.1038/nature06823},\n adsurl = {http://adsabs.harvard.edu/abs/2008Natur.452..329S},\n adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n\n@ARTICLE{2006AGUSM.A21A..06T,\n author = {{Tinetti}, G. and {Meadows}, V.~S. and {Crisp}, D. and {Kiang}, N. and \n\t{Fishbein}, E. and {Kahn}, B. and {Turnbull}, M.},\n title = \"{Detectability of Surface and Atmospheric Signatures in the Disk-averaged Spectra of the Earth}\",\n journal = {AGU Spring Meeting Abstracts},\n keywords = {5210 Planetary atmospheres, clouds, and hazes (0343), 5704 Atmospheres (0343, 1060), 0343 Planetary atmospheres (5210, 5405, 5704), 0406 Astrobiology and extraterrestrial materials},\n year = 2006,\n month = may,\n pages = {A6},\n adsurl = {http://adsabs.harvard.edu/abs/2006AGUSM.A21A..06T},\n adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n\n@ARTICLE{Waldmann2013,\n author = {{Waldmann}, I.~P. and {Tinetti}, G. and {Deroo}, P. and {Hollis}, M.~D.~J. and \n\t{Yurchenko}, S.~N. and {Tennyson}, J.},\n title = \"{Blind Extraction of an Exoplanetary Spectrum through Independent Component Analysis}\",\n journal = {\\apj},\narchivePrefix = \"arXiv\",\n eprint = {1301.4041},\n primaryClass = \"astro-ph.EP\",\n keywords = {methods: data analysis, methods: observational, methods: statistical, planets and satellites: atmospheres, planets and satellites: individual: HD189733b, techniques: spectroscopic },\n year = 2013,\n month = mar,\n volume = 766,\n eid = {7},\n pages = {7},\n doi = {10.1088/0004-637X/766/1/7},\n adsurl = {http://adsabs.harvard.edu/abs/2013ApJ...766....7W},\n adsnote = {Provided by the SAO/NASA Astrophysics Data System}\n}\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ryanvarley/adsbibtex", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "ADSBibTeX", "package_url": "https://pypi.org/project/ADSBibTeX/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ADSBibTeX/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ryanvarley/adsbibtex" }, "release_url": "https://pypi.org/project/ADSBibTeX/1.0.9/", "requires_dist": null, "requires_python": null, "summary": "ADSBibTeX", "version": "1.0.9" }, "last_serial": 2113121, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "bdc9af07355491b1809c1600468d1932", "sha256": "a1b89bb921b89f1033471b267b31511461fac84d204c77596ef46209e979d553" }, "downloads": -1, "filename": "ADSBibTeX-1.0.tar.gz", "has_sig": false, "md5_digest": "bdc9af07355491b1809c1600468d1932", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5239, "upload_time": "2015-08-17T23:48:39", "url": "https://files.pythonhosted.org/packages/c3/05/8ac29351180e88553cfc900af4f854b47940555745efde23859e787bc2fd/ADSBibTeX-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "05b1061c38efaf4e8006c371643cdce0", "sha256": "3852294e77929ba0b41203ca86296f7d50676895f733623c51bf3aec0ca83ec0" }, "downloads": -1, "filename": "ADSBibTeX-1.0.1.tar.gz", "has_sig": false, "md5_digest": "05b1061c38efaf4e8006c371643cdce0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6218, "upload_time": "2015-08-18T00:03:09", "url": "https://files.pythonhosted.org/packages/44/d5/4879ea4ff9d8c51c47d6664d63028c47152f982265f9b7e57911d66ff039/ADSBibTeX-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "23a40049afac1108dd48579e63f45fb7", "sha256": "87941161e59ab0e353185ebbe52f3df6039ccdcbbd8547974ef4e010f05bb79e" }, "downloads": -1, "filename": "ADSBibTeX-1.0.2.tar.gz", "has_sig": false, "md5_digest": "23a40049afac1108dd48579e63f45fb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6229, "upload_time": "2015-08-18T00:12:00", "url": "https://files.pythonhosted.org/packages/10/57/7e997f85d8147fd40a7b621e74cadf8e979c7ce6a8b2a580b1fddef2fffd/ADSBibTeX-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "38754b2e54f728a3444ca03da1b7f4e8", "sha256": "bd28c82811d5512c94940bcfbd15e6006c6cc7c7d02b56bf28cb9e7a7f14d8d2" }, "downloads": -1, "filename": "ADSBibTeX-1.0.3.tar.gz", "has_sig": false, "md5_digest": "38754b2e54f728a3444ca03da1b7f4e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6225, "upload_time": "2015-08-18T00:17:45", "url": "https://files.pythonhosted.org/packages/85/ef/0c2c624e45ceec72e8876b906ece5c2ec438665d0466f8e53fc3f791a97f/ADSBibTeX-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "c7c7c96905de2a1dd02180a5c4586cfe", "sha256": "8a62849771d83c3b9f6ca21716336b41c209cd8860bf6def5d31de540bc5184c" }, "downloads": -1, "filename": "ADSBibTeX-1.0.4.tar.gz", "has_sig": false, "md5_digest": "c7c7c96905de2a1dd02180a5c4586cfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6231, "upload_time": "2015-08-18T00:21:16", "url": "https://files.pythonhosted.org/packages/01/7d/a3b6e3abaead0f9e8dd3be25a548bea8d935b110489cd076e105d315b663/ADSBibTeX-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "0bfa6c0790bc722f0485d4c330197f7f", "sha256": "c1f7c9a7693d28e60b4e8ac0e4b7ccaf224adaff14b00925dc784b6116dbf8f6" }, "downloads": -1, "filename": "ADSBibTeX-1.0.5.tar.gz", "has_sig": false, "md5_digest": "0bfa6c0790bc722f0485d4c330197f7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6223, "upload_time": "2015-08-18T00:22:43", "url": "https://files.pythonhosted.org/packages/4c/13/7d23cd9df9cbec59077d0b54a7079a8750c77f9d3fd7ea3a502b2e5bdde6/ADSBibTeX-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "b52631fedc08a5194f4b701cf6db68be", "sha256": "3f21e320d09cd0c5c4de2e3a76fa37337a8fe5a9bbb01a14ac0a55bb1aa5f44d" }, "downloads": -1, "filename": "ADSBibTeX-1.0.6.tar.gz", "has_sig": false, "md5_digest": "b52631fedc08a5194f4b701cf6db68be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6308, "upload_time": "2015-08-18T00:35:30", "url": "https://files.pythonhosted.org/packages/75/c7/e1635b29d1e7850fbabfd7931116d8b4faaecc191e4025a7836ffc53632d/ADSBibTeX-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "e71ac3071b07d5e1960f24475f530da6", "sha256": "d87373344a790cd2eb6a35045a94106569d5a2796bbcb2b7d33555b279cd7bde" }, "downloads": -1, "filename": "ADSBibTeX-1.0.7.tar.gz", "has_sig": false, "md5_digest": "e71ac3071b07d5e1960f24475f530da6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7423, "upload_time": "2015-08-18T00:46:44", "url": "https://files.pythonhosted.org/packages/29/61/3e0d6c83ed13ec518890e66369f69dc809ed1cc9af26574240b587179057/ADSBibTeX-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "f013758e728327c250aa1db282758d51", "sha256": "7f23cf1d04f5bf4beb43d0c47a268714d04b8ea64842ec4a9dffa686e48f5152" }, "downloads": -1, "filename": "ADSBibTeX-1.0.8.tar.gz", "has_sig": false, "md5_digest": "f013758e728327c250aa1db282758d51", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7633, "upload_time": "2015-08-18T02:28:23", "url": "https://files.pythonhosted.org/packages/11/b8/c6ac9770b297e810916b1aaf950a75e9ddbe2c499d05ec3880352e5277ec/ADSBibTeX-1.0.8.tar.gz" } ], "1.0.9": [ { "comment_text": "", "digests": { "md5": "38229975e8be69657e5242ad31f69b82", "sha256": "5fe588e935036a9701d57a0e49baf513f7d058b5b2876dc59c6f6e764ae36d32" }, "downloads": -1, "filename": "ADSBibTeX-1.0.9.tar.gz", "has_sig": false, "md5_digest": "38229975e8be69657e5242ad31f69b82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7620, "upload_time": "2016-05-12T20:16:23", "url": "https://files.pythonhosted.org/packages/dc/be/8dfa883d50d452236bc0f8f5b430c8373b7e69466e25769397dcf8a5f075/ADSBibTeX-1.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38229975e8be69657e5242ad31f69b82", "sha256": "5fe588e935036a9701d57a0e49baf513f7d058b5b2876dc59c6f6e764ae36d32" }, "downloads": -1, "filename": "ADSBibTeX-1.0.9.tar.gz", "has_sig": false, "md5_digest": "38229975e8be69657e5242ad31f69b82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7620, "upload_time": "2016-05-12T20:16:23", "url": "https://files.pythonhosted.org/packages/dc/be/8dfa883d50d452236bc0f8f5b430c8373b7e69466e25769397dcf8a5f075/ADSBibTeX-1.0.9.tar.gz" } ] }