rocket-esi-package 0.1.0__py3-none-any.whl

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.
rocket/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .rocket import Rocket
rocket/rocket.py ADDED
@@ -0,0 +1,26 @@
1
+
2
+ from math import sqrt
3
+
4
+
5
+ class Rocket:
6
+ def __init__(self, x=0, y=0):
7
+ self.x = x
8
+ self.y = y
9
+
10
+ def move_up(self, x_increment=0, y_increment=1):
11
+ self.x += x_increment
12
+ self.y += y_increment
13
+
14
+ def get_distance(self, other_rocket):
15
+ return sqrt(
16
+ (self.x - other_rocket.x) ** 2
17
+ + (self.y - other_rocket.y) ** 2
18
+ )
19
+
20
+ def __eq__(self, other):
21
+ if not isinstance(other, Rocket):
22
+ return NotImplemented
23
+ return self.x == other.x and self.y == other.y
24
+
25
+ def __str__(self):
26
+ return f"Rocket at ({self.x}, {self.y})"
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocket-esi-package
3
+ Version: 0.1.0
4
+ Summary: A simple Python package for rockets
5
+ Author: Student
6
+ Dynamic: author
7
+ Dynamic: summary
@@ -0,0 +1,6 @@
1
+ rocket/__init__.py,sha256=jcSBnKcfnYnzYtNNdbrl0oQRumyGwzExC0oGJEsIarQ,26
2
+ rocket/rocket.py,sha256=rZWlBlJXt_fLUusQT41-9Q4-urOrqxBM180DPHu2res,647
3
+ rocket_esi_package-0.1.0.dist-info/METADATA,sha256=0WljH2eh5H_hZl8CbFQjfLtvxFlHb2zZE3LqQ8UupmA,163
4
+ rocket_esi_package-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
5
+ rocket_esi_package-0.1.0.dist-info/top_level.txt,sha256=iuGgWVgdNIZpR_FKX9YIEjWhtHhHoT4EJNDTvYSLF8Y,7
6
+ rocket_esi_package-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ rocket