You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Astro CLI**(working title: suggestions welcome!) is a modern command-line tool that provides quick access to multiple astronomical data services through the [Astroquery](https://astroquery.readthedocs.io/) library. It's designed for astronomers, researchers, and anyone who needs to query astronomical databases efficiently from the terminal.
16
+
**Astro CLI** is a modern command-line tool that provides quick access to multiple astronomical data services through the [Astroquery](https://astroquery.readthedocs.io/) library. It's designed for astronomers, researchers, and anyone who needs to query astronomical databases efficiently from the terminal.
14
17
15
18
*17 data sources. One command. Beautiful output. Multi-language support. Extensible for future services.*
16
19
@@ -38,8 +41,8 @@ Query data from 17 different astronomical databases and services:
38
41
|[SDSS](https://www.sdss.org/)| Sloan Digital Sky Survey |`astrocli sdss`| - |
39
42
|[ESO](https://www.eso.org/)| European Southern Observatory |`astrocli eso`| - |
40
43
|[Splatalogue](https://www.splatalogue.org/)| Molecular line database |`astrocli splatalogue`|`astrocli spl`|
41
-
|[**AAVSO VSX**](https://www.aavso.org/vsx/)| Variable Star Index |`astrocli aavso`|-|
42
-
|[**Fermi-LAT**](https://fermi.gsfc.nasa.gov/)| Gamma-ray telescope data |`astrocli fermi`|-|
44
+
|[**AAVSO VSX**](https://www.aavso.org/vsx/)| Variable Star Index |`astrocli aavso`|`astrocli aav`|
45
+
|[**Fermi-LAT**](https://fermi.gsfc.nasa.gov/)| Gamma-ray telescope data |`astrocli fermi`|`astrocli fer`|
43
46
44
47
---
45
48
@@ -57,48 +60,48 @@ Query data from 17 different astronomical databases and services:
57
60
58
61
## 📦 Installation
59
62
60
-
Astro CLI 提供多种安装方式,选择适合你的方式:
63
+
Astro CLI offers multiple installation methods. Choose the one that suits you:
61
64
62
-
### 方式一:npm 全局安装(推荐)
65
+
### Method 1: npm Global Install (Recommended)
63
66
64
67
```bash
65
-
#全局安装(需要 Node.js ≥18 和 Python 3.11+)
68
+
#Global install (requires Node.js ≥18 and Python 3.11+)
66
69
npm install -g astroquery-cli
67
70
68
-
#安装后可使用以下任一命令:
69
-
astroquery-cli --help #完整命令
70
-
aqc --help #短命令
71
-
astrocli --help #别名命令
71
+
#After installation, all three commands are available:
|`-p, --ping`| Test connectivity to all services (top-level only) |
216
222
|`-f, --field`| Check available fields for a module (top-level only) |
@@ -272,22 +278,23 @@ astrocli --ping
272
278
273
279
```
274
280
astrocli/
275
-
├── astrocli/
281
+
├── src/ # Source code (renamed from astroquery_cli)
276
282
│ ├── modules/ # Service-specific modules
277
283
│ │ ├── simbad_cli.py
278
284
│ │ ├── vizier_cli.py
279
-
│ │ ├── aavso_cli.py # NEW: AAVSO VSX
280
-
│ │ ├── fermi_cli.py # NEW: Fermi-LAT
285
+
│ │ ├── aavso_cli.py # AAVSO VSX
286
+
│ │ ├── fermi_cli.py # Fermi-LAT
281
287
│ │ └── ...
282
288
│ ├── utils.py # Common utilities
283
289
│ ├── common_options.py # Shared CLI options
284
290
│ ├── i18n.py # Internationalization
285
291
│ └── main.py # CLI entry point
286
292
├── locales/ # Translation files
287
-
│ ├── zh/LC_MESSAGES/
288
-
│ ├── ja/LC_MESSAGES/
289
-
│ └── en/LC_MESSAGES/
290
-
├── package.json # pnpm/npx configuration
293
+
│ ├── en/LC_MESSAGES/ # English
294
+
│ ├── zh/LC_MESSAGES/ # Chinese
295
+
│ ├── ja/LC_MESSAGES/ # Japanese
296
+
│ └── fr/LC_MESSAGES/ # French
297
+
├── package.json # npm/npx configuration
291
298
├── pyproject.toml # Python package config
292
299
└── README.md
293
300
```
@@ -319,22 +326,6 @@ This project uses [Astroquery](https://github.com/astropy/astroquery), which is
319
326
320
327
---
321
328
322
-
## 🔄 Migration from astroquery-cli
323
-
324
-
If you were previously using `astroquery-cli`, simply change your command:
325
-
326
-
```bash
327
-
# Old command
328
-
aqc simbad object "M31"
329
-
330
-
# New command
331
-
astrocli simbad object "M31"
332
-
```
333
-
334
-
All aliases remain the same: `sim` for `simbad`, `viz` for `vizier`, `spl` for `splatalogue`, etc.
335
-
336
-
---
337
-
338
329
## 📝 FAQ
339
330
340
331
<details>
@@ -356,4 +347,4 @@ Some advanced features or edge cases may not have full CLI coverage yet. Core qu
356
347
357
348
**Astro CLI** is a command-line interface for Astroquery. Think of it as a user-friendly wrapper that makes common tasks easier. It doesn't replace Astroquery — it enhances it!
0 commit comments