package-creation-tutorial-youssef 0.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.
- package_creation_tutorial_youssef-0.1.0/PKG-INFO +24 -0
- package_creation_tutorial_youssef-0.1.0/README.md +3 -0
- package_creation_tutorial_youssef-0.1.0/pyproject.toml +25 -0
- package_creation_tutorial_youssef-0.1.0/src/package_creation_tutorial/__init__.py +0 -0
- package_creation_tutorial_youssef-0.1.0/src/package_creation_tutorial/string_ops.py +22 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: package-creation-tutorial-youssef
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary:
|
|
5
|
+
Author: youssefboug-tech
|
|
6
|
+
Author-email: youssefbougriba2@gmail.com
|
|
7
|
+
Requires-Python: >=3.11
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: pandas (>=3.0.0,<4.0.0)
|
|
14
|
+
Requires-Dist: pre-commit (>=4.5.1,<5.0.0)
|
|
15
|
+
Requires-Dist: pytest (>=9.0.2,<10.0.0)
|
|
16
|
+
Requires-Dist: pytest-cov (>=7.0.0,<8.0.0)
|
|
17
|
+
Requires-Dist: ruff (>=0.15.0,<0.16.0)
|
|
18
|
+
Requires-Dist: sphinx (<9.0.0)
|
|
19
|
+
Requires-Dist: sphinx-rtd-theme (>=3.1.0,<4.0.0)
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
|
|
22
|
+
# Mon Tutoriel de Création de Paquet
|
|
23
|
+
|
|
24
|
+
Ceci est un paquet de test créé pour apprendre à publier sur PyPI.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "package-creation-tutorial-youssef"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = ""
|
|
5
|
+
authors = [
|
|
6
|
+
{name = "youssefboug-tech",email = "youssefbougriba2@gmail.com"}
|
|
7
|
+
]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
requires-python = ">=3.11"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"pandas (>=3.0.0,<4.0.0)",
|
|
12
|
+
"pytest (>=9.0.2,<10.0.0)",
|
|
13
|
+
"pytest-cov (>=7.0.0,<8.0.0)",
|
|
14
|
+
"ruff (>=0.15.0,<0.16.0)",
|
|
15
|
+
"pre-commit (>=4.5.1,<5.0.0)",
|
|
16
|
+
"sphinx (<9.0.0)",
|
|
17
|
+
"sphinx-rtd-theme (>=3.1.0,<4.0.0)"
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[tool.poetry]
|
|
21
|
+
packages = [{include = "package_creation_tutorial", from = "src"}]
|
|
22
|
+
|
|
23
|
+
[build-system]
|
|
24
|
+
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
|
25
|
+
build-backend = "poetry.core.masonry.api"
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Every function have docstrings and use strong typing
|
|
2
|
+
|
|
3
|
+
def reverse_string(s: str) -> str:
|
|
4
|
+
"""
|
|
5
|
+
Reverse the given string.
|
|
6
|
+
|
|
7
|
+
Args:
|
|
8
|
+
s (str): The input string to be reversed.
|
|
9
|
+
|
|
10
|
+
Returns:
|
|
11
|
+
str: The reversed string.
|
|
12
|
+
"""
|
|
13
|
+
return s[::-1]
|
|
14
|
+
|
|
15
|
+
def count_vowels(s: str) -> int:
|
|
16
|
+
"""Compte le nombre de voyelles dans la chaîne."""
|
|
17
|
+
vowels = 'aeiouAEIOU'
|
|
18
|
+
return sum(1 for char in s if char in vowels)
|
|
19
|
+
|
|
20
|
+
def capitalize_words(s: str) -> str:
|
|
21
|
+
"""Met en majuscule la première lettre de chaque mot."""
|
|
22
|
+
return ' '.join(word.capitalize() for word in s.split())
|