rocket-ilyes-mekhalfa 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,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocket_ilyes_mekhalfa
3
+ Version: 1.0.0
4
+ Summary: package created in the SEDS lab3 to simluate rocket and shuttle movments
5
+ Home-page: http://pypi.python.org/pypi/rocket_ilyes_mekhalfa/
6
+ Author: Ilyes Mekhalfa
7
+ Author-email: ilyesmekalfa@gmail.com
8
+ License: LICENSE.txt
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: rocket_ilyes_mekhalfa
11
+ Dynamic: author
12
+ Dynamic: author-email
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: home-page
16
+ Dynamic: license
17
+ Dynamic: requires-dist
18
+ Dynamic: summary
19
+
20
+ # package_name
21
+
22
+ `package_name` is a Python library for ..........
23
+
24
+ ## Installation
25
+
26
+ Use the package manager [pip](https://pip.pypa.io/en/stable/) to install `package_name`.
27
+
28
+ ```bash
29
+ pip install package_name
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ import package_name
36
+
37
+ # returns 'words'
38
+ package_name.module_name('word')
39
+
40
+ # returns 'geese'
41
+ package_name.module_name('goose')
42
+
43
+ # returns 'phenomenon'
44
+ package_name.module_name('phenomena')
45
+ ```
46
+
47
+ ## License
48
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,29 @@
1
+ # package_name
2
+
3
+ `package_name` is a Python library for ..........
4
+
5
+ ## Installation
6
+
7
+ Use the package manager [pip](https://pip.pypa.io/en/stable/) to install `package_name`.
8
+
9
+ ```bash
10
+ pip install package_name
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```python
16
+ import package_name
17
+
18
+ # returns 'words'
19
+ package_name.module_name('word')
20
+
21
+ # returns 'geese'
22
+ package_name.module_name('goose')
23
+
24
+ # returns 'phenomenon'
25
+ package_name.module_name('phenomena')
26
+ ```
27
+
28
+ ## License
29
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1 @@
1
+ import rocket
@@ -0,0 +1,36 @@
1
+ from math import sqrt
2
+
3
+ class Rocket():
4
+ # Rocket simulates a rocket ship for a game,
5
+ # or a physics simulation.
6
+
7
+ def __init__(self, x=0, y=0):
8
+ # Each rocket has an (x,y) position.
9
+ self.x = x
10
+ self.y = y
11
+
12
+ def move_rocket(self, x_increment=0, y_increment=1):
13
+ # Move the rocket according to the paremeters given.
14
+ # Default behavior is to move the rocket up one unit.
15
+ self.x += x_increment
16
+ self.y += y_increment
17
+
18
+ def get_distance(self, other_rocket):
19
+ # Calculates the distance from this rocket to another rocket,
20
+ # and returns that value.
21
+ distance = sqrt((self.x-other_rocket.x)**2+(self.y-other_rocket.y)**2)
22
+ return distance
23
+
24
+ def __str__(self):
25
+ return f"A Rocket positioned at ({self.x},{self.y})"
26
+
27
+ def __repr__(self):
28
+ return f"Rocket({self.x},{self.y})"
29
+
30
+ class Shuttle(Rocket):
31
+ # Shuttle simulates a space shuttle, which is really
32
+ # just a reusable rocket.
33
+
34
+ def __init__(self, x=0, y=0, flights_completed=0):
35
+ super().__init__(x, y)
36
+ self.flights_completed = flights_completed
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocket_ilyes_mekhalfa
3
+ Version: 1.0.0
4
+ Summary: package created in the SEDS lab3 to simluate rocket and shuttle movments
5
+ Home-page: http://pypi.python.org/pypi/rocket_ilyes_mekhalfa/
6
+ Author: Ilyes Mekhalfa
7
+ Author-email: ilyesmekalfa@gmail.com
8
+ License: LICENSE.txt
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: rocket_ilyes_mekhalfa
11
+ Dynamic: author
12
+ Dynamic: author-email
13
+ Dynamic: description
14
+ Dynamic: description-content-type
15
+ Dynamic: home-page
16
+ Dynamic: license
17
+ Dynamic: requires-dist
18
+ Dynamic: summary
19
+
20
+ # package_name
21
+
22
+ `package_name` is a Python library for ..........
23
+
24
+ ## Installation
25
+
26
+ Use the package manager [pip](https://pip.pypa.io/en/stable/) to install `package_name`.
27
+
28
+ ```bash
29
+ pip install package_name
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ ```python
35
+ import package_name
36
+
37
+ # returns 'words'
38
+ package_name.module_name('word')
39
+
40
+ # returns 'geese'
41
+ package_name.module_name('goose')
42
+
43
+ # returns 'phenomenon'
44
+ package_name.module_name('phenomena')
45
+ ```
46
+
47
+ ## License
48
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,9 @@
1
+ README.md
2
+ setup.py
3
+ rocket_ilyes_mekhalfa/__init__.py
4
+ rocket_ilyes_mekhalfa/rocket.py
5
+ rocket_ilyes_mekhalfa.egg-info/PKG-INFO
6
+ rocket_ilyes_mekhalfa.egg-info/SOURCES.txt
7
+ rocket_ilyes_mekhalfa.egg-info/dependency_links.txt
8
+ rocket_ilyes_mekhalfa.egg-info/requires.txt
9
+ rocket_ilyes_mekhalfa.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ rocket_ilyes_mekhalfa
@@ -0,0 +1 @@
1
+ rocket_ilyes_mekhalfa
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,15 @@
1
+ from setuptools import setup
2
+
3
+ setup(
4
+ name='rocket_ilyes_mekhalfa',
5
+ version='1.0.0',
6
+ author='Ilyes Mekhalfa',
7
+ author_email='ilyesmekalfa@gmail.com',
8
+ packages=['rocket_ilyes_mekhalfa'],
9
+ url='http://pypi.python.org/pypi/rocket_ilyes_mekhalfa/',
10
+ license='LICENSE.txt',
11
+ description='package created in the SEDS lab3 to simluate rocket and shuttle movments',
12
+ long_description=open('README.md').read(),
13
+ long_description_content_type="text/markdown",
14
+ install_requires=['rocket_ilyes_mekhalfa']
15
+ )