Skip to main content

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.

Metadata

Release files for astrotree 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for astrotree 1.1.5
File Size Uploaded
astrotree-1.1.5.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for astrotree 1.1.5
File Interpreter ABI Platform
astrotree-1.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / astrotree-1.1.5.tar.gz

Download URL astrotree-1.1.5.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b3a5f41e62a009ec8ed52e1a0b55a67532cda16d530402121dde307c71d1f5b2
BLAKE2b-256 checksum
How to use checksums
2ea573cc0d750f81cfd1cc7e4840c67f1e0e7b36831db8577c5548da32f370aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / astrotree-1.1.5-py3-none-any.whl

Download URL astrotree-1.1.5-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a91f01c0f053428a2f8000122b6c1f10a9595783c3ff31ee7bab7ce94aa3cfd
BLAKE2b-256 checksum
How to use checksums
8369fb036f49b52dbdad744ca08ed6ad469fb2ac673c8a07f6ae2ed59da6c746
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.1.5 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page