Skip to main content

ADS-powered reference tree-builder for the Astro community!

Project description

Welcome to astrotree!

A lightweight, purely python package to handle reference trees. This project evolved because of a personal urge to organize literature from my day-to-day. Note that this is not a reference manager: if you are looking for a python-based reference manager, look no further than Papis!

This project helps you connect literature entries: given an article, you can choose to build a tree of other articles that connect to it. These are articles referenced in the article of interest (references), or works that cited it (citations). Trees can be built to arbitrary depths, limited only by resources available to python and records on the internet, at any level of the tree.

The project presently uses the NASA-ADS API (see ADS Docs) to launch queries and is suited to my use case; any efforts to contribute and extend it to other APIs are welcome!

Installation

Install directly through pip:

pip install astrotree

Prerequisite

Before you can start to use this application, you need to set an environment variable ADSTOKEN, which needs to point to your ADS API token. Follow the instructions here to obtain your ADS API token. You are subject to the ADS API Terms of Service through your use of this application.

Usage

The application is CLI-based and has two modes: you may choose to build either a reference tree or a citation tree. To build a reference tree, use:

astrotree -id <ADS id> --ref 

To build a citation tree, use:

astrotree -id <ADS id> --cite

In either case the output is a list of ADS IDs and the respective article titles, in a tree format. The tool offers you the opportunity to ask to build a tree for any of the listed IDs, restricted to the same mode you started with.

Upon exit (press n when the application asks if you wish to continue), the tree is dumped to a text file containing the tree in the local directory, for future use.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrotree-1.1.5.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrotree-1.1.5-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file astrotree-1.1.5.tar.gz.

File metadata

  • Download URL: astrotree-1.1.5.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for astrotree-1.1.5.tar.gz
Algorithm Hash digest
SHA256 b3a5f41e62a009ec8ed52e1a0b55a67532cda16d530402121dde307c71d1f5b2
MD5 36d28526df5199d9cee77472ac18b0b3
BLAKE2b-256 2ea573cc0d750f81cfd1cc7e4840c67f1e0e7b36831db8577c5548da32f370aa

See more details on using hashes here.

File details

Details for the file astrotree-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: astrotree-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for astrotree-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a91f01c0f053428a2f8000122b6c1f10a9595783c3ff31ee7bab7ce94aa3cfd
MD5 ea3254eff9438e85e1f5e267e4c426d8
BLAKE2b-256 8369fb036f49b52dbdad744ca08ed6ad469fb2ac673c8a07f6ae2ed59da6c746

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page