seds-rocket-safdev758 1.0.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,3 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 safdev758
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: seds_rocket_safdev758
3
+ Version: 1.0.0
4
+ Summary: Rocket package for SEDS Lab 3
5
+ Home-page: https://github.com/safdev758/seds_rocket
6
+ Author: safdev758
7
+ Author-email: safdev758@gmail.com
8
+ License: LICENSE.txt
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE.txt
11
+ Dynamic: author
12
+ Dynamic: author-email
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: home-page
16
+ Dynamic: license
17
+ Dynamic: license-file
18
+ Dynamic: summary
19
+
20
+ # seds_rocket
21
+
22
+ Rocket package by safdev758.
@@ -0,0 +1,3 @@
1
+ # seds_rocket
2
+
3
+ Rocket package by safdev758.
@@ -0,0 +1 @@
1
+ from .rocket import Rocket, Shuttle, CircleRocket
@@ -0,0 +1,55 @@
1
+ from math import sqrt, pi
2
+
3
+ class Rocket:
4
+ def __init__(self, x=0, y=0):
5
+ self.x = x
6
+ self.y = y
7
+
8
+ def move_rocket(self, x_increment=0, y_increment=1):
9
+ self.x += x_increment
10
+ self.y += y_increment
11
+
12
+ def move_up(self, x_increment=0, y_increment=1):
13
+ self.move_rocket(x_increment, y_increment)
14
+
15
+ def get_distance(self, other_rocket):
16
+ return sqrt((self.x - other_rocket.x)**2 + (self.y - other_rocket.y)**2)
17
+
18
+ def __eq__(self, other):
19
+ if not isinstance(other, Rocket):
20
+ return False
21
+ return self.x == other.x and self.y == other.y
22
+
23
+ def __str__(self):
24
+ return f"A Rocket positioned at ({self.x},{self.y})"
25
+
26
+ def __repr__(self):
27
+ return f"Rocket({self.x},{self.y})"
28
+
29
+ class Shuttle(Rocket):
30
+ def __init__(self, x=0, y=0, flights_completed=0):
31
+ super().__init__(x, y)
32
+ self.flights_completed = flights_completed
33
+
34
+ def __str__(self):
35
+ return f"A Shuttle positioned at ({self.x},{self.y}) with {self.flights_completed} flights completed"
36
+
37
+ def __repr__(self):
38
+ return f"Shuttle({self.x},{self.y},{self.flights_completed})"
39
+
40
+ class CircleRocket(Rocket):
41
+ def __init__(self, x=0, y=0, radius=1):
42
+ super().__init__(x, y)
43
+ self.radius = radius
44
+
45
+ def get_area(self):
46
+ return pi * self.radius**2
47
+
48
+ def get_circumference(self):
49
+ return 2 * pi * self.radius
50
+
51
+ def __str__(self):
52
+ return f"CircleRocket positioned at ({self.x},{self.y}) with radius {self.radius}"
53
+
54
+ def __repr__(self):
55
+ return f"CircleRocket({self.x},{self.y},{self.radius})"
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: seds_rocket_safdev758
3
+ Version: 1.0.0
4
+ Summary: Rocket package for SEDS Lab 3
5
+ Home-page: https://github.com/safdev758/seds_rocket
6
+ Author: safdev758
7
+ Author-email: safdev758@gmail.com
8
+ License: LICENSE.txt
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE.txt
11
+ Dynamic: author
12
+ Dynamic: author-email
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: home-page
16
+ Dynamic: license
17
+ Dynamic: license-file
18
+ Dynamic: summary
19
+
20
+ # seds_rocket
21
+
22
+ Rocket package by safdev758.
@@ -0,0 +1,9 @@
1
+ LICENSE.txt
2
+ README.md
3
+ setup.py
4
+ rocket/__init__.py
5
+ rocket/rocket.py
6
+ seds_rocket_safdev758.egg-info/PKG-INFO
7
+ seds_rocket_safdev758.egg-info/SOURCES.txt
8
+ seds_rocket_safdev758.egg-info/dependency_links.txt
9
+ seds_rocket_safdev758.egg-info/top_level.txt
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,15 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name='seds_rocket_safdev758',
5
+ version='1.0.0',
6
+ author='safdev758',
7
+ author_email='safdev758@gmail.com',
8
+ url='https://github.com/safdev758/seds_rocket',
9
+ packages=find_packages(),
10
+ license='LICENSE.txt',
11
+ description='Rocket package for SEDS Lab 3',
12
+ long_description=open('README.md').read(),
13
+ long_description_content_type='text/markdown',
14
+ install_requires=[],
15
+ )