calcul-djomou 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.
- calcul_djomou-1.0/PKG-INFO +34 -0
- calcul_djomou-1.0/README.md +15 -0
- calcul_djomou-1.0/calcul_djomou/__init__.py +1 -0
- calcul_djomou-1.0/calcul_djomou/calcul_djomou.py +29 -0
- calcul_djomou-1.0/calcul_djomou.egg-info/PKG-INFO +34 -0
- calcul_djomou-1.0/calcul_djomou.egg-info/SOURCES.txt +8 -0
- calcul_djomou-1.0/calcul_djomou.egg-info/dependency_links.txt +1 -0
- calcul_djomou-1.0/calcul_djomou.egg-info/top_level.txt +1 -0
- calcul_djomou-1.0/setup.cfg +4 -0
- calcul_djomou-1.0/setup.py +19 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: calcul_djomou
|
|
3
|
+
Version: 1.0
|
|
4
|
+
Summary: Un package de calculs simples
|
|
5
|
+
Author: DJOMOU VERA
|
|
6
|
+
Author-email: verayanneng@gmail.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.6
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: classifier
|
|
15
|
+
Dynamic: description
|
|
16
|
+
Dynamic: description-content-type
|
|
17
|
+
Dynamic: requires-python
|
|
18
|
+
Dynamic: summary
|
|
19
|
+
|
|
20
|
+
# calcul_djomou
|
|
21
|
+
|
|
22
|
+
Un package de calculs simples : addition, soustraction, division,
|
|
23
|
+
multiplication, incrémentation, décrémentation et modulo.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
pip install calcul_djomou
|
|
28
|
+
|
|
29
|
+
## Utilisation
|
|
30
|
+
|
|
31
|
+
from calcul_djomou import calcul_djomou
|
|
32
|
+
|
|
33
|
+
print(calcul_djomou.addition(10, 5)) # 15
|
|
34
|
+
print(calcul_djomou.division(10, 2)) # 5.0
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# calcul_djomou
|
|
2
|
+
|
|
3
|
+
Un package de calculs simples : addition, soustraction, division,
|
|
4
|
+
multiplication, incrémentation, décrémentation et modulo.
|
|
5
|
+
|
|
6
|
+
## Installation
|
|
7
|
+
|
|
8
|
+
pip install calcul_djomou
|
|
9
|
+
|
|
10
|
+
## Utilisation
|
|
11
|
+
|
|
12
|
+
from calcul_djomou import calcul_djomou
|
|
13
|
+
|
|
14
|
+
print(calcul_djomou.addition(10, 5)) # 15
|
|
15
|
+
print(calcul_djomou.division(10, 2)) # 5.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__all__ = ["calcul_djomou"]
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
def addition(a,b):
|
|
2
|
+
"""Cette fonction calcule la somme de deux nombres a et b et retourne a + b"""
|
|
3
|
+
return a + b
|
|
4
|
+
|
|
5
|
+
def soustraction(a,b):
|
|
6
|
+
"""Cette fonction calcule la soustraction de deux nombres a et b et retourne a - b"""
|
|
7
|
+
return a - b
|
|
8
|
+
|
|
9
|
+
def division(a,b):
|
|
10
|
+
"""Cette fonction calcule la division de deux nombres a et b et retourne a / b"""
|
|
11
|
+
if b == 0:
|
|
12
|
+
raise ValueError("Division par zéro non permise")
|
|
13
|
+
return a / b
|
|
14
|
+
|
|
15
|
+
def multiplication(a,b):
|
|
16
|
+
"""Cette fonction calcule le produit de deux nombres a et b et retourne a * b"""
|
|
17
|
+
return a * b
|
|
18
|
+
|
|
19
|
+
def incrementation(a):
|
|
20
|
+
"""Cette fonction sert a incrementer un nombre a et retourne a + 1"""
|
|
21
|
+
return a + 1
|
|
22
|
+
|
|
23
|
+
def decrementation(a):
|
|
24
|
+
"""Cette fonction sert a decrementer un nombre a et retourne a - 1"""
|
|
25
|
+
return a - 1
|
|
26
|
+
|
|
27
|
+
def modulo(a,b):
|
|
28
|
+
"""Cette fonction sert a obtenir le modulo de un deux nombres a et b et retourne a % b"""
|
|
29
|
+
return a % b
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: calcul_djomou
|
|
3
|
+
Version: 1.0
|
|
4
|
+
Summary: Un package de calculs simples
|
|
5
|
+
Author: DJOMOU VERA
|
|
6
|
+
Author-email: verayanneng@gmail.com
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
9
|
+
Classifier: Operating System :: OS Independent
|
|
10
|
+
Requires-Python: >=3.6
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: classifier
|
|
15
|
+
Dynamic: description
|
|
16
|
+
Dynamic: description-content-type
|
|
17
|
+
Dynamic: requires-python
|
|
18
|
+
Dynamic: summary
|
|
19
|
+
|
|
20
|
+
# calcul_djomou
|
|
21
|
+
|
|
22
|
+
Un package de calculs simples : addition, soustraction, division,
|
|
23
|
+
multiplication, incrémentation, décrémentation et modulo.
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
pip install calcul_djomou
|
|
28
|
+
|
|
29
|
+
## Utilisation
|
|
30
|
+
|
|
31
|
+
from calcul_djomou import calcul_djomou
|
|
32
|
+
|
|
33
|
+
print(calcul_djomou.addition(10, 5)) # 15
|
|
34
|
+
print(calcul_djomou.division(10, 2)) # 5.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
calcul_djomou
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='calcul_djomou',
|
|
5
|
+
version='1.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
description='Un package de calculs simples',
|
|
8
|
+
long_description=open('README.md').read(),
|
|
9
|
+
long_description_content_type='text/markdown',
|
|
10
|
+
author='DJOMOU VERA',
|
|
11
|
+
author_email='verayanneng@gmail.com',
|
|
12
|
+
classifiers=[
|
|
13
|
+
'Programming Language :: Python :: 3',
|
|
14
|
+
'License :: OSI Approved :: MIT License',
|
|
15
|
+
'Operating System :: OS Independent',
|
|
16
|
+
],
|
|
17
|
+
python_requires='>=3.6',
|
|
18
|
+
install_requires=[],
|
|
19
|
+
)
|