Skip to main content

GitHub License GitHub branch check runs

astrostash

🔭 An astronomy and astrophysics database building/syncing tool

Astrostash lets you "stash" query results from astronomy data sources into a local SQLite or PostgreSQL database by caching individual queries, or mirroring entire catalog tables for offline or internal access.


Features

  • Local data storage — Retain copies of query results in a SQLite or PostgreSQL database.
  • Offline querying — Mirror stable catalog tables and query them with spatial filters without network access.
  • Automatic caching — Results from repeated queries are served from your local database.
  • Refresh scheduling — Set a refresh interval to keep cached data up to date.
  • Data products — Locate and download associated data files (FITS, etc.) and track local paths in the database.

Requirements

Python >= 3.10

📦 Dependencies

  • astroquery >= 0.4.10
  • pandas >= 2.3.0
  • SQLAlchemy >= 2.0.43

📥 Installation

pip install astrostash

With PostgreSQL support:

pip install astrostash[postgres]

Or clone and install from source:

git clone https://github.com/nkphysics/astrostash.git
cd astrostash
pip install .

For info on Getting Started see the docs linked below.


📚 Documentation

  • HEASARC — Quickstart, local mirroring workflow, spatial queries, data products, and full API reference.
  • Development — Development setup, running tests, and PostgreSQL testing with Docker.

Development

🚧 Current State: Beta

Install dev dependencies:

pip install .[dev]

License

BSD 3-Clause. See LICENSE for details.

Download files

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

Source Distribution

astrostash-0.3.0.tar.gz (173.8 kB view details)

Uploaded Source

Built Distribution

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

astrostash-0.3.0-py3-none-any.whl (168.4 kB view details)

Uploaded Python 3

File details

Details for the file astrostash-0.3.0.tar.gz.

File metadata

  • Download URL: astrostash-0.3.0.tar.gz
  • Upload date:
  • Size: 173.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for astrostash-0.3.0.tar.gz
Algorithm Hash digest
SHA256 ad36659001a3ee19faecbb42ecf188382d01ef87ae82fd330ae62809530f3070
MD5 7bcacb523ec9e3119893060924006a4c
BLAKE2b-256 bed4eb991c160f576215e5140380b59e7b17742588c6ab045f8b503064d658d1

See more details on using hashes here.

File details

Details for the file astrostash-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: astrostash-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 168.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for astrostash-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fbb657ddf223c588f544aced35fd08d74a2d7e5cf86e39c4207c0d28b81903
MD5 2c2aa7bb059fe9c69f75cfe8b4a242d1
BLAKE2b-256 6d591a617bd62cb7cab97a23cb3c601b05279260258cd00759d4b4415d3950f6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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