iss-tracker-cli 0.1.0__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 KON/NOS R
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: iss-tracker-cli
3
+ Version: 0.2.0
4
+ Summary: CLI tool for tracking the real-time position of the International Space Station (ISS) and displaying how many people are currently in space
5
+ Author: KON/NOS R
6
+ License: MIT
7
+ Keywords: iss,space,nasa,tracking,cli,terminal,api,international-space-station
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.8
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Environment :: Console
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
18
+ Classifier: Topic :: Utilities
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: requests
23
+ Dynamic: license-file
24
+
25
+ # ISS Position Tracker (CLI)
26
+
27
+ A simple cli python tool for tracking the position of the International Space Station (ISS) in real time as well as how many people are currently in space!
28
+
29
+ ---
30
+
31
+ ## Features
32
+
33
+ - **Real-time ISS Tracking** - Get live latitude and longitude coordinates of the ISS
34
+ - **Crew Counter** - Display the current number of people aboard the ISS
35
+ - **Flexible Tracking Modes**:
36
+ - Single request
37
+ - Multiple requests (specify count)
38
+ - Continuous tracking (until interrupted)
39
+ - **Error Handling** - Graceful handling of network issues and API errors
40
+
41
+ ---
42
+
43
+ ## Requirements
44
+
45
+ - Python 3.8+
46
+ - Internet connection (for API access)
47
+
48
+ ---
49
+
50
+ ## Installation and Usage
51
+
52
+ - PyPI page: [Click here](https://pypi.org/project/iss-tracker-cli/)
53
+
54
+ <br>
55
+
56
+ - Install the CLI application
57
+ ```
58
+ pip install iss-tracker-cli
59
+ ```
60
+
61
+ - Launch the CLI application:
62
+ ```
63
+ iss-tracker
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Commands
69
+
70
+ - `help` - Lists all commands.
71
+
72
+ - `track {parameter}`
73
+ - `{-t}` - Returns position data for the ISS until interrupted.
74
+ - `{[num]}` - Returns position data for the ISS [num] times.
75
+
76
+ - `people` - Returns the number of people that are currently in space.
77
+
78
+ ---
79
+
80
+ ## Notes
81
+
82
+ - Uses the public Open Notify API
83
+ - Requires an internet connection
84
+ - API response speed and reliability may vary
85
+ - Continuous tracking (`-t`) runs until manually stopped (Ctrl+C)
@@ -0,0 +1,61 @@
1
+ # ISS Position Tracker (CLI)
2
+
3
+ A simple cli python tool for tracking the position of the International Space Station (ISS) in real time as well as how many people are currently in space!
4
+
5
+ ---
6
+
7
+ ## Features
8
+
9
+ - **Real-time ISS Tracking** - Get live latitude and longitude coordinates of the ISS
10
+ - **Crew Counter** - Display the current number of people aboard the ISS
11
+ - **Flexible Tracking Modes**:
12
+ - Single request
13
+ - Multiple requests (specify count)
14
+ - Continuous tracking (until interrupted)
15
+ - **Error Handling** - Graceful handling of network issues and API errors
16
+
17
+ ---
18
+
19
+ ## Requirements
20
+
21
+ - Python 3.8+
22
+ - Internet connection (for API access)
23
+
24
+ ---
25
+
26
+ ## Installation and Usage
27
+
28
+ - PyPI page: [Click here](https://pypi.org/project/iss-tracker-cli/)
29
+
30
+ <br>
31
+
32
+ - Install the CLI application
33
+ ```
34
+ pip install iss-tracker-cli
35
+ ```
36
+
37
+ - Launch the CLI application:
38
+ ```
39
+ iss-tracker
40
+ ```
41
+
42
+ ---
43
+
44
+ ## Commands
45
+
46
+ - `help` - Lists all commands.
47
+
48
+ - `track {parameter}`
49
+ - `{-t}` - Returns position data for the ISS until interrupted.
50
+ - `{[num]}` - Returns position data for the ISS [num] times.
51
+
52
+ - `people` - Returns the number of people that are currently in space.
53
+
54
+ ---
55
+
56
+ ## Notes
57
+
58
+ - Uses the public Open Notify API
59
+ - Requires an internet connection
60
+ - API response speed and reliability may vary
61
+ - Continuous tracking (`-t`) runs until manually stopped (Ctrl+C)
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: iss-tracker-cli
3
+ Version: 0.2.0
4
+ Summary: CLI tool for tracking the real-time position of the International Space Station (ISS) and displaying how many people are currently in space
5
+ Author: KON/NOS R
6
+ License: MIT
7
+ Keywords: iss,space,nasa,tracking,cli,terminal,api,international-space-station
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.8
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Environment :: Console
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Topic :: Scientific/Engineering :: Astronomy
18
+ Classifier: Topic :: Utilities
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: requests
23
+ Dynamic: license-file
24
+
25
+ # ISS Position Tracker (CLI)
26
+
27
+ A simple cli python tool for tracking the position of the International Space Station (ISS) in real time as well as how many people are currently in space!
28
+
29
+ ---
30
+
31
+ ## Features
32
+
33
+ - **Real-time ISS Tracking** - Get live latitude and longitude coordinates of the ISS
34
+ - **Crew Counter** - Display the current number of people aboard the ISS
35
+ - **Flexible Tracking Modes**:
36
+ - Single request
37
+ - Multiple requests (specify count)
38
+ - Continuous tracking (until interrupted)
39
+ - **Error Handling** - Graceful handling of network issues and API errors
40
+
41
+ ---
42
+
43
+ ## Requirements
44
+
45
+ - Python 3.8+
46
+ - Internet connection (for API access)
47
+
48
+ ---
49
+
50
+ ## Installation and Usage
51
+
52
+ - PyPI page: [Click here](https://pypi.org/project/iss-tracker-cli/)
53
+
54
+ <br>
55
+
56
+ - Install the CLI application
57
+ ```
58
+ pip install iss-tracker-cli
59
+ ```
60
+
61
+ - Launch the CLI application:
62
+ ```
63
+ iss-tracker
64
+ ```
65
+
66
+ ---
67
+
68
+ ## Commands
69
+
70
+ - `help` - Lists all commands.
71
+
72
+ - `track {parameter}`
73
+ - `{-t}` - Returns position data for the ISS until interrupted.
74
+ - `{[num]}` - Returns position data for the ISS [num] times.
75
+
76
+ - `people` - Returns the number of people that are currently in space.
77
+
78
+ ---
79
+
80
+ ## Notes
81
+
82
+ - Uses the public Open Notify API
83
+ - Requires an internet connection
84
+ - API response speed and reliability may vary
85
+ - Continuous tracking (`-t`) runs until manually stopped (Ctrl+C)
@@ -1,7 +1,6 @@
1
+ LICENSE
1
2
  README.md
2
3
  pyproject.toml
3
- iss_tracker/__init__.py
4
- iss_tracker/main.py
5
4
  iss_tracker_cli.egg-info/PKG-INFO
6
5
  iss_tracker_cli.egg-info/SOURCES.txt
7
6
  iss_tracker_cli.egg-info/dependency_links.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ iss-tracker = iss_tracker:main
@@ -0,0 +1,40 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "iss-tracker-cli"
7
+ version = "0.2.0"
8
+ description = "CLI tool for tracking the real-time position of the International Space Station (ISS) and displaying how many people are currently in space"
9
+ readme = "README.md"
10
+ requires-python = ">=3.8"
11
+ license = {text = "MIT"}
12
+ authors = [
13
+ {name = "KON/NOS R"}
14
+ ]
15
+
16
+ keywords = ["iss", "space", "nasa", "tracking", "cli", "terminal", "api", "international-space-station"]
17
+
18
+ dependencies = [
19
+ "requests"
20
+ ]
21
+
22
+ classifiers = [
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Python :: 3.8",
25
+ "Programming Language :: Python :: 3.9",
26
+ "Programming Language :: Python :: 3.10",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ "License :: OSI Approved :: MIT License",
30
+ "Environment :: Console",
31
+ "Operating System :: OS Independent",
32
+ "Topic :: Scientific/Engineering :: Astronomy",
33
+ "Topic :: Utilities"
34
+ ]
35
+
36
+ [project.scripts]
37
+ iss-tracker = "iss_tracker:main"
38
+
39
+ [tool.setuptools]
40
+ py-modules = ["iss_tracker"]
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: iss-tracker-cli
3
- Version: 0.1.0
4
- Summary: CLI tool to track ISS position
5
- Requires-Python: >=3.8
6
- Description-Content-Type: text/markdown
7
- Requires-Dist: requests
8
-
9
- Simple cli tool for tracking the position of the ISS in real time!
10
-
11
- commands include:
12
- help - Lists all commands.
13
- track {parameter}
14
- {-t} - Returns position data for the ISS until interupted.
15
- {[num]} - Returns position data for the ISS [num] times.
16
- people - Returns the number of people that are currently in space.
17
-
18
- Hope you like it! :)
19
-
20
-
21
- (this project uses open notify API)
@@ -1,13 +0,0 @@
1
- Simple cli tool for tracking the position of the ISS in real time!
2
-
3
- commands include:
4
- help - Lists all commands.
5
- track {parameter}
6
- {-t} - Returns position data for the ISS until interupted.
7
- {[num]} - Returns position data for the ISS [num] times.
8
- people - Returns the number of people that are currently in space.
9
-
10
- Hope you like it! :)
11
-
12
-
13
- (this project uses open notify API)
File without changes
@@ -1,119 +0,0 @@
1
- import requests
2
- import time
3
-
4
-
5
- def getPeopData():
6
- api = "http://api.open-notify.org/astros.json"
7
- try:
8
- raw_data = (requests.get(api, timeout = 5)).json()
9
- except requests.exceptions.RequestException as e:
10
- print(f"Error: {e}\n")
11
- return None
12
-
13
- num = raw_data["number"]
14
-
15
- return num
16
-
17
-
18
- def getPosData():
19
- api = "http://api.open-notify.org/iss-now.json"
20
- try:
21
- raw_data = (requests.get(api, timeout = 5)).json()
22
- except requests.exceptions.RequestException as e:
23
- print(f"Error: {e}\n")
24
- return None
25
-
26
- lat = raw_data["iss_position"]["latitude"]
27
- lon = raw_data["iss_position"]["longitude"]
28
-
29
- return (lat, lon)
30
-
31
-
32
- def help():
33
- return '''command list:
34
- help - Lists all commands.
35
- track {parameter}
36
- {-t} - Returns position data for the ISS until interupted.
37
- {[num]} - Returns position data for the ISS [num] times.
38
- people - Returns the number of people that are currently in space.'''
39
-
40
-
41
- def track(par):
42
- if par == "-t":
43
- print("\n!Displaying Position Data for infinite requests.\n")
44
- try:
45
- while True:
46
- data = getPosData()
47
- if data != None:
48
- lat, lon = data
49
- print(f"------ISS position------\nLatitude: {lat}\nLongitude: {lon}\n")
50
- time.sleep(1)
51
- except KeyboardInterrupt:
52
- print("\nExiting...\n")
53
- else:
54
- try:
55
- t = int(par)
56
- print(f"\n!Displaying Position Data for {t} request(s).\n")
57
- for i in range(t):
58
- data = getPosData()
59
- if data != None:
60
- lat, lon = data
61
- print(f"------ISS position------\nLatitude: {lat}\nLongitude: {lon}\n")
62
- time.sleep(1)
63
- except TypeError as e:
64
- print("Error: Incorrect parammeters")
65
-
66
-
67
- def people():
68
- data = getPeopData()
69
- if data != None:
70
- print(f"\nThere are currently {data} people in space!\n")
71
-
72
-
73
- #Main Programme
74
- def main():
75
- print('''\033[34m
76
- ooo
77
- / : \\
78
- _____"~~~~~"_____
79
- \\+##|U *^* U|##+/
80
- \\..!('ISS')!../
81
- ^--o| |o--^
82
- +====}:^ ^ ^:{====+
83
- ___. .| ! |. .___
84
- |####:/" " "\\:####|
85
- |####=| O |=####|
86
- |####>\\_____/<####|
87
- ‾‾‾˙ | | ˙‾‾‾
88
- o o
89
- \033[0m
90
- * ISS Position Tracker *
91
- ''')
92
-
93
- while True:
94
- try:
95
- command = input(">").lstrip()
96
-
97
- #help command
98
- if command.strip() == "help":
99
- print(help())
100
-
101
- #track command
102
- elif command[:5] == "track":
103
- par = command[5:].strip()
104
- if par == "":
105
- par = 1
106
- track(par)
107
-
108
- elif command.strip() == "people":
109
- people()
110
-
111
- #invalid command
112
- else:
113
- print("!Invalid command. Enter 'help' to display command list.")
114
- except KeyboardInterrupt:
115
- print("\nExiting...\n")
116
- break
117
-
118
- if __name__ == "__main__":
119
- main()
@@ -1,21 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: iss-tracker-cli
3
- Version: 0.1.0
4
- Summary: CLI tool to track ISS position
5
- Requires-Python: >=3.8
6
- Description-Content-Type: text/markdown
7
- Requires-Dist: requests
8
-
9
- Simple cli tool for tracking the position of the ISS in real time!
10
-
11
- commands include:
12
- help - Lists all commands.
13
- track {parameter}
14
- {-t} - Returns position data for the ISS until interupted.
15
- {[num]} - Returns position data for the ISS [num] times.
16
- people - Returns the number of people that are currently in space.
17
-
18
- Hope you like it! :)
19
-
20
-
21
- (this project uses open notify API)
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- iss-tracker = iss_tracker.main:main
@@ -1,16 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "iss-tracker-cli"
7
- version = "0.1.0"
8
- description = "CLI tool to track ISS position"
9
- readme = "README.md"
10
- requires-python = ">=3.8"
11
- dependencies = [
12
- "requests"
13
- ]
14
-
15
- [project.scripts]
16
- iss-tracker = "iss_tracker.main:main"