iss-tracker-cli 0.1.1__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,27 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: iss-tracker-cli
3
- Version: 0.1.1
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
- ISS Position Tracker (CLI)
10
- 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!
11
-
12
- Run the program named 'iss-tracker' using python (in the directory where the module) and run use the desired commands, exits gracefully with Ctrl + C.
13
-
14
-
15
- Available commands:
16
- help - Lists all commands.
17
- track {parameter}
18
- {-t} - Returns position data for the ISS until interupted.
19
- {[num]} - Returns position data for the ISS [num] times.
20
- people - Returns the number of people that are currently in space.
21
-
22
- Notes:
23
- -Requires an internet connection
24
- -API response speed and success may vary
25
- -Continuous tracking (-t) runs until manually stopped (Ctrl + C)
26
-
27
- (this project uses the public open notify API)
@@ -1,19 +0,0 @@
1
- ISS Position Tracker (CLI)
2
- 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!
3
-
4
- Run the program named 'iss-tracker' using python (in the directory where the module) and run use the desired commands, exits gracefully with Ctrl + C.
5
-
6
-
7
- Available commands:
8
- help - Lists all commands.
9
- track {parameter}
10
- {-t} - Returns position data for the ISS until interupted.
11
- {[num]} - Returns position data for the ISS [num] times.
12
- people - Returns the number of people that are currently in space.
13
-
14
- Notes:
15
- -Requires an internet connection
16
- -API response speed and success may vary
17
- -Continuous tracking (-t) runs until manually stopped (Ctrl + C)
18
-
19
- (this project uses the public open notify API)
File without changes
@@ -1,118 +0,0 @@
1
- import requests
2
- import time
3
-
4
-
5
- #gets the number of people in space
6
- def getPeopData():
7
- api = "http://api.open-notify.org/astros.json"
8
- try:
9
- raw_data = (requests.get(api, timeout = 5)).json()
10
- except requests.exceptions.RequestException as e:
11
- print(f"Error: {e}\n")
12
- return None
13
-
14
- num = raw_data["number"]
15
-
16
- return num
17
-
18
- #gets postion data of the ISS
19
- def getPosData():
20
- api = "http://api.open-notify.org/iss-now.json"
21
- try:
22
- raw_data = (requests.get(api, timeout = 5)).json()
23
- except requests.exceptions.RequestException as e:
24
- print(f"Error: {e}\n")
25
- return None
26
-
27
- lat = raw_data["iss_position"]["latitude"]
28
- lon = raw_data["iss_position"]["longitude"]
29
-
30
- return (lat, lon)
31
-
32
- #help command
33
- def help():
34
- return '''command list:
35
- help - Lists all commands.
36
- track {parameter}
37
- {-t} - Returns position data for the ISS until interupted.
38
- {[num]} - Returns position data for the ISS [num] times.
39
- people - Returns the number of people that are currently in space.'''
40
-
41
- #track command
42
- def track(par):
43
- if par == "-t":
44
- print("\n!Displaying Position Data for infinite requests.\n")
45
- try:
46
- while True:
47
- data = getPosData()
48
- if data != None:
49
- lat, lon = data
50
- print(f"------ISS position------\nLatitude: {lat}\nLongitude: {lon}\n")
51
- time.sleep(1)
52
- except KeyboardInterrupt:
53
- print("\nExiting...\n")
54
- else:
55
- try:
56
- t = int(par)
57
- print(f"\n!Displaying Position Data for {t} request(s).\n")
58
- for i in range(t):
59
- data = getPosData()
60
- if data != None:
61
- lat, lon = data
62
- print(f"------ISS position------\nLatitude: {lat}\nLongitude: {lon}\n")
63
- time.sleep(1)
64
- except TypeError as e:
65
- print("Error: Incorrect parammeters")
66
-
67
- #people command
68
- def people():
69
- data = getPeopData()
70
- if data != None:
71
- print(f"\nThere are currently {data} people in space!\n")
72
-
73
- #main Program
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(">").split()
96
-
97
- #help command
98
- if len(command) == 1 and command[0] == "help":
99
- print(help())
100
-
101
- #track command
102
- elif len(command) in (1,2) and command[0] == "track":
103
- par = command[1] if len(command) > 1 and command[1] else 1
104
- track(par)
105
-
106
- elif len(command) == 1 and command[0] == "people":
107
- people()
108
-
109
- #invalid command
110
- else:
111
- print("!Invalid command. Enter 'help' to display command list.")
112
- except KeyboardInterrupt:
113
- print("\nExiting...\n")
114
- break
115
-
116
-
117
- if __name__ == "__main__":
118
- main()
@@ -1,27 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: iss-tracker-cli
3
- Version: 0.1.1
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
- ISS Position Tracker (CLI)
10
- 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!
11
-
12
- Run the program named 'iss-tracker' using python (in the directory where the module) and run use the desired commands, exits gracefully with Ctrl + C.
13
-
14
-
15
- Available commands:
16
- help - Lists all commands.
17
- track {parameter}
18
- {-t} - Returns position data for the ISS until interupted.
19
- {[num]} - Returns position data for the ISS [num] times.
20
- people - Returns the number of people that are currently in space.
21
-
22
- Notes:
23
- -Requires an internet connection
24
- -API response speed and success may vary
25
- -Continuous tracking (-t) runs until manually stopped (Ctrl + C)
26
-
27
- (this project uses the public 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.1"
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"