Skip to main content

AstroKit: A Python ToolKit for Astronomy

Project description

AstroKit

PyPI version PyPI Downloads Documentation Status License DOI

logo

🌟 Current Version (BETA): 0.1.0

⚠️ AstroKit is currently under development.
Please use it with caution. Feedback and suggestions are very welcome — feel free to contact me at zhurui675@gmail.com. The first stable release (version 1.0.0) will be available soon (expected in late 2025).

🏁 Quick Start

AstroKit is a Python package for astronomical data analysis (hodgepodge 😁), developed by Rui Zhu. It provides:

  1. Photometric data preprocessing — including photometric redshift estimation, extinction correction, and more.
  2. Wrappers for classical astronomical software — such as GALFIT(M), STILTS, EAZY, and SExtractor.
  3. A collection of useful functions developed for and inspired by my own research.
  4. More features and documents are on the way!

✨ To install:

  • step 1: pip install
pip install astrokit
  • step 2: write your own config file
    create a new file named .astrokit_config.yaml in your home directory. Here is an example (also in the .astrokit_config_template.yaml file):
# software directory
PATH_SEX:  # SExtractor program file directory
  /opt/homebrew/Cellar/sextractor/2.28.0/share/sextractor
PATH_EAZY:  # EAZY program file directory
  /Users/rui/Applications/eazy-photoz

# Qucik Directory
PATH_DOWNLOAD:  # Default save file path
  /Users/rui/Downloads

# Project Tools Directory
PATH_PROJECT_TOOL:
  - <PATH_PROJECT1>
  - <PATH_PROJECT2>

# My Account and Password
Account_HSC: 
  username: <xxx>
  password: <xxx>
  • step 3: Enjoy it!
import astrokit as ak

🔔 Tip: Because a lot of dependencies are required, it is recommended to use Miniconda to create a new environment and install AstroKit in it. All required packages are listed in the requirement.txt file.

# Create a new conda environment
conda create -n astro python=3.13
# Activate the environment
conda activate astro
# Install Required packages
pip install -r requirements.txt
# Install AstroKit
pip install astrokit

📖 Documentation

Read the full documentation at astrokit.readthedocs.io. The documentation is still under construction, and the API may change in the future.

📜 License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

📚 Citation

(Zenodo Software DOI)

@software{zhu_2025_15321580,
  author       = {Zhu, Rui},
  title        = {AstroKit: A Python Package for Astronomical Data
                   Analysis
                  },
  month        = may,
  year         = 2025,
  publisher    = {Zenodo},
  version      = {beta-0.0},
  doi          = {10.5281/zenodo.15321580},
  url          = {https://doi.org/10.5281/zenodo.15321580},
  swhid        = {swh:1:dir:db15360761629c93ac723f4566e63570dfbe1d75
                   ;origin=https://doi.org/10.5281/zenodo.15321579;vi
                   sit=swh:1:snp:d83768d3d6f61e42e4028e488e6212d39d77
                   0eea;anchor=swh:1:rel:54bf5502e35b15d3f73552ebb3bc
                   00e154356c18;path=/
                  },
}

🤝 Acknowledgements

This project makes use of code and Data from the following projects:

Data Cite

(astrokit.datasets.data)

Code Cite

(astrokit.externals)

(astrokit.ML)

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

astrokit-0.1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

astrokit-0.1.0-py3-none-any.whl (951.5 kB view details)

Uploaded Python 3

File details

Details for the file astrokit-0.1.0.tar.gz.

File metadata

  • Download URL: astrokit-0.1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for astrokit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b80389838c430409aa51dcc7c444d5c778569e2e8b73a473d9d925c9beb9a042
MD5 f0cef7c7731fab5230629840ddc41ede
BLAKE2b-256 e225605586d68ce9a23e814f950cbeb159a6c240628260c69d5111a13cfb3418

See more details on using hashes here.

File details

Details for the file astrokit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: astrokit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 951.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for astrokit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f80031a9a1fe25582eb0da76ed1e3755046ed327566a385438423dc9becd5670
MD5 46c1a78e5b65d2cac1b4b9abe51558f9
BLAKE2b-256 d4c64ead26c6d5486217eab80a46647ce67e0335cdc76e4bba96ccdf0b26a34f

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