rocket-moo7 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) [year] [fullname]
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,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocket_moo7
3
+ Version: 1.0.0
4
+ Summary: A package simulating rockets, space shuttles, and circle rockets with physics and geometry calculations.
5
+ Home-page: https://github.com/your-username/rocket
6
+ Author: Mohamed Belghait
7
+ Author-email: your.email@example.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
+ # 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
+
49
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,30 @@
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
+
30
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1 @@
1
+ import rocket_moo7
@@ -0,0 +1,55 @@
1
+ from math import pi, 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 __eq__(self, other):
25
+ if isinstance(other, self.__class__):
26
+ return self.__dict__ == other.__dict__ #self.x == other.x and self.y == other.y
27
+ return False
28
+
29
+ def __str__(self):
30
+ return f"A Rocket positioned at ({self.x},{self.y})"
31
+
32
+ def __repr__(self):
33
+ return f"Rocket({self.x},{self.y})"
34
+
35
+ class Shuttle(Rocket):
36
+ # Shuttle simulates a space shuttle, which is really
37
+ # just a reusable rocket.
38
+
39
+ def __init__(self, x=0, y=0, flights_completed=0):
40
+ super().__init__(x, y)
41
+ self.flights_completed = flights_completed
42
+
43
+
44
+ class circleRocket(Rocket):
45
+
46
+ def __init__(self, x=0, y=0, r=1):
47
+ super().__init__(x, y)
48
+ self.r = r
49
+
50
+ def get_area(self):
51
+ return pi * (self.r ** 2)
52
+
53
+ def get_circumference(self):
54
+ return 2 * pi * self.r
55
+
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: rocket_moo7
3
+ Version: 1.0.0
4
+ Summary: A package simulating rockets, space shuttles, and circle rockets with physics and geometry calculations.
5
+ Home-page: https://github.com/your-username/rocket
6
+ Author: Mohamed Belghait
7
+ Author-email: your.email@example.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
+ # 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
+
49
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,9 @@
1
+ LICENSE.txt
2
+ README.md
3
+ setup.py
4
+ rocket_moo7/__init__.py
5
+ rocket_moo7/rocket_moo7.py
6
+ rocket_moo7.egg-info/PKG-INFO
7
+ rocket_moo7.egg-info/SOURCES.txt
8
+ rocket_moo7.egg-info/dependency_links.txt
9
+ rocket_moo7.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ rocket_moo7
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,16 @@
1
+ from setuptools import setup
2
+
3
+ setup(
4
+ name='rocket_moo7',
5
+ version='1.0.0',
6
+ author='Mohamed Belghait',
7
+ author_email='your.email@example.com',
8
+ packages=['rocket_moo7'],
9
+ url='https://github.com/your-username/rocket',
10
+ license='LICENSE.txt',
11
+ description='A package simulating rockets, space shuttles, and circle rockets with physics and geometry calculations.',
12
+ long_description=open('README.md').read(),
13
+ long_description_content_type="text/markdown",
14
+ install_requires=[]
15
+ )
16
+