AstroKit
🌟 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:
- Photometric data preprocessing — including photometric redshift estimation, extinction correction, and more.
- Wrappers for classical astronomical software — such as GALFIT(M), STILTS, EAZY, and SExtractor.
- A collection of useful functions developed for and inspired by my own research.
- 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.yamlin your home directory. Here is an example (also in the.astrokit_config_template.yamlfile):
# 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)
- HSC_pdr3/: Copied from hsc-gitlab
- sfdmap.py Copied from sfdmap2
(astrokit.ML)
- d2l.py: Modified from https://github.com/d2l-ai
Metadata
Release files for astrokit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astrokit-0.1.0.tar.gz | 1.3 MB | Without provenance | Details for astrokit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astrokit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for astrokit-0.1.0-py3-none-any.whl |
Total release size: 2.2 MB
Release files / astrokit-0.1.0.tar.gz
| Download URL | astrokit-0.1.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b80389838c430409aa51dcc7c444d5c778569e2e8b73a473d9d925c9beb9a042
|
|
BLAKE2b-256 checksum How to use checksums |
e225605586d68ce9a23e814f950cbeb159a6c240628260c69d5111a13cfb3418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / astrokit-0.1.0-py3-none-any.whl
| Download URL | astrokit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 951.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f80031a9a1fe25582eb0da76ed1e3755046ed327566a385438423dc9becd5670
|
|
BLAKE2b-256 checksum How to use checksums |
d4c64ead26c6d5486217eab80a46647ce67e0335cdc76e4bba96ccdf0b26a34f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for astrokit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.