在終端中使用Nextinspace打印最新的太空事件
想知道太空中發生了什麼嗎? 想知道何時會發射衛星或太空飛行? 嘗試 下一個空間,這是一個命令行程序,用於在Terminal中打印最新的Space事件。 Nextinspace的用途 啟動庫2 API 獲取即將發生的與太空有關的事件和軌道發射的詳細信息。 全部來自命令行! 它寫在 蟒蛇 編程語言並根據GPL-3.0許可發布。
在Linux中安裝Nextinspace
可以使用以下方法安裝Nextinspace 點子 包裹經理。 確保按照以下說明在Linux系統上安裝了Pip。
- 如何使用PIP管理Python軟件包
安裝Pip後,請使用以下任一命令安裝Nextinspace:
$ pip install nextinspace
要麼,
$ pip install git+https://github.com/The-Kid-Gid/nextinspace
在終端中使用Nextinspace打印最新的太空事件
Nextinspace是一個非常新的項目。 當前,它僅顯示最新的太空事件並發射。
要打印最新的太空事件,只需運行不帶任何選項的Nextinspace:
$ nextinspace
樣本輸出:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│Soyuz 2.1a | Soyuz MS-17 │
│31/6, Baikonur Cosmodrome, Republic of Kazakhstan │
│ │
│ Wed October 14, 2020 05:45 AM IST │
│ Launch Type: Human Exploration │
│ │
│ Soyuz MS-17 begins expedition 63 by carrying Roscosmos cosmonauts Sergey Ryzhikov, │
│ Sergey Kud-Sverchkov and NASA astronaut Kathleen Rubins to the International Space │
│ Station aboard the Soyuz spacecraft from the Baikonur Cosmodrome in Kazakhstan. │
│ After launching from the Baikonur Cosmodrome in Kazakhstan, they will rendezvous to │
│ the station where they will remain for their 6 month stay. │
└────────────────────────────────────────────────────────────────────────────────────────┘
在終端中使用Nextinspace打印最新的太空事件
如您所見,Nextinspace實用程序提供以下詳細信息:
- 衛星名稱
- 發射中心確切發射場的名稱
- 衛星發射中心的名稱,
- 發射中心所在的國家/地區的名稱,
- 發射的日期和時間,
- 發射類型
- 以及對衛星/航天器/航天/火箭等的簡要說明。
您也可以僅顯示事件或啟動。
僅使用Nextinspace顯示空間事件
要打印唯一的空間事件,請使用 -e
要麼 --events-only
標誌。
$ nextinspace -e
要麼,
$ nextinspace --events-only
樣本輸出:
┌────────────────────────────────────────────────────────────────────────────────────────┐
│Soyuz MS-17 Docking │
│International Space Station │
│ │
│ Wed October 14, 2020 08:50 AM IST │
│ Event Type: Docking │
│ │
│ The Soyuz MS-17 spacecraft will dock to the International Space Station carrying │
│ three new Expedition 63 crew members : ROSCOSMOS cosmonauts Sergey Ryzhikov and │
│ Sergey Kud-Sverchkov as well as NASA astronaut Kathleen Rubins. │
└────────────────────────────────────────────────────────────────────────────────────────┘
使用Nextinspace僅顯示空間事件
這些通常不包含在標準發布中。 這些事件可能是航天器着陸,發動機測試或太空行走。
顯示僅使用Nextinspace啟動
如果只想打印啟動,請使用 -l
要麼 --launches-only
如下標記:
$ nextinspace -l
要麼,
$ nextinspace --launches-only
此命令將僅顯示軌道和亞軌道發射。 通常,這些將是所有旨在到達“太空”或卡曼線的軌道發射和亞軌道發射。
有關更多詳細信息,請通過運行以下命令來參考幫助部分:
$ nextinspace -h
要麼,
$ nextinspace --help
另外,請參考下面給出的項目官方github頁面。
資源:
命令行LinuxNextinspacePythonSpaceSpace新聞