module-instalable 1.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.
- module_instalable-1.0/PKG-INFO +9 -0
- module_instalable-1.0/README.md +13 -0
- module_instalable-1.0/module_instalable/__init__.py +3 -0
- module_instalable-1.0/module_instalable/math_utils.py +33 -0
- module_instalable-1.0/module_instalable.egg-info/PKG-INFO +9 -0
- module_instalable-1.0/module_instalable.egg-info/SOURCES.txt +8 -0
- module_instalable-1.0/module_instalable.egg-info/dependency_links.txt +1 -0
- module_instalable-1.0/module_instalable.egg-info/top_level.txt +1 -0
- module_instalable-1.0/setup.cfg +4 -0
- module_instalable-1.0/setup.py +11 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# mon_module
|
|
2
|
+
|
|
3
|
+
Un package de mathématiques simples.
|
|
4
|
+
|
|
5
|
+
## Fonctionnalités
|
|
6
|
+
- Fonctions mathématiques de base via `math_utils`.
|
|
7
|
+
|
|
8
|
+
## Exemple d'utilisation
|
|
9
|
+
```python
|
|
10
|
+
from mon_module import math_utils
|
|
11
|
+
|
|
12
|
+
resultat = math_utils.addition(10, 5)
|
|
13
|
+
print(resultat)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
def addition(a, b):
|
|
3
|
+
"""
|
|
4
|
+
Ajoute deux nombres.
|
|
5
|
+
:param a: Le premier nombre.
|
|
6
|
+
:param b: Le second nombre.
|
|
7
|
+
:return: La somme de a et b.
|
|
8
|
+
return a + b """
|
|
9
|
+
return a + b
|
|
10
|
+
def soustraction(a, b):
|
|
11
|
+
"""
|
|
12
|
+
Ajoute deux nombres.
|
|
13
|
+
:param a: Le premier nombre.
|
|
14
|
+
:param b: Le second nombre.
|
|
15
|
+
:return: La difference de a et b.
|
|
16
|
+
return a - b """
|
|
17
|
+
return a - b
|
|
18
|
+
def multiplication(a, b):
|
|
19
|
+
"""
|
|
20
|
+
Ajoute deux nombres.
|
|
21
|
+
:param a: Le premier nombre.
|
|
22
|
+
:param b: Le second nombre.
|
|
23
|
+
:return: a * b """
|
|
24
|
+
return a * b
|
|
25
|
+
def division(a, b):
|
|
26
|
+
"""
|
|
27
|
+
Ajoute deux nombres.
|
|
28
|
+
:param a: Le premier nombre.
|
|
29
|
+
:param b: Le second nombre.
|
|
30
|
+
:return: a / b """
|
|
31
|
+
if b == 0:
|
|
32
|
+
raise ValueError("Division par zéro non permise")
|
|
33
|
+
return a / b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module_instalable
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Code source du fichier setup.py
|
|
2
|
+
from setuptools import setup, find_packages
|
|
3
|
+
setup(
|
|
4
|
+
name='module_instalable',
|
|
5
|
+
version='1.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
description='Un package de mathématiques simples',
|
|
8
|
+
author='Gueguim Raidel',
|
|
9
|
+
author_email='gueguimtiotsiaraidel@gmail.com',
|
|
10
|
+
install_requires=[],
|
|
11
|
+
)
|