Un package Python professionnel créé avec Poetry
Project description
Mon Package Python
Un package Python professionnel avec toutes les meilleures pratiques de développement.
🚀 Installation
pip install mon-package-python
Ou pour un environnement de développement :
git clone https://github.com/username/mon-package-python.git
cd mon-package-python
poetry install
📖 Utilisation
from mon_package_python.string_ops import reverse_string, count_vowels
# Inverser une chaîne
result = reverse_string("Hello World")
print(result) # "dlroW olleH"
# Compter les voyelles
vowels = count_vowels("Hello World")
print(vowels) # 3
🛠️ Fonctionnalités
- ✅ Manipulation de chaînes de caractères
- ✅ Opérations mathématiques
- ✅ Utilitaires de données
- ✅ Documentation complète
- ✅ Tests unitaires avec >80% de couverture
📚 Documentation
La documentation complète est disponible sur GitHub Pages.
🧪 Tests
Pour exécuter les tests :
poetry run pytest
Avec couverture de code :
poetry run pytest --cov
🔧 Développement
Pré-requis
- Python 3.10+
- Poetry
Installation de l'environnement de développement
# Installer les dépendances
poetry install
# Activer l'environnement virtuel
poetry shell
# Installer les pre-commit hooks
pre-commit install
Workflow de développement
-
Créer une branche pour votre fonctionnalité
git checkout -b feature/ma-nouvelle-fonctionnalite
-
Faire vos modifications avec des commits atomiques
-
Exécuter les tests
poetry run pytest
-
Vérifier la qualité du code
ruff check --fix .
-
Créer une Pull Request
📦 Structure du Projet
mon-package-python/
├── .github/
│ └── workflows/ # GitHub Actions CI/CD
├── docs/ # Documentation Sphinx
├── src/
│ └── mon_package_python/ # Code source
│ ├── __init__.py
│ ├── string_ops.py
│ └── math_ops.py
├── tests/ # Tests unitaires
│ ├── __init__.py
│ ├── test_string_ops.py
│ └── test_math_ops.py
├── .gitignore
├── .pre-commit-config.yaml
├── pyproject.toml
├── README.md
└── LICENSE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mon_package_python-0.1.0.tar.gz.
File metadata
- Download URL: mon_package_python-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c1aca343f39a53144fc65a8eb894a182e03858c94564816047fa20cf7a507af
|
|
| MD5 |
2f11962c755c5af07675fea7bdb20245
|
|
| BLAKE2b-256 |
f4e712240ecd3369e8556e37f53ea1e232d03e839f852300c0d59e9ce7668134
|
File details
Details for the file mon_package_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mon_package_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec051080787cb09ad0c1369e3cae2bee22a7871b74313a19d01b267970c60aac
|
|
| MD5 |
bc35246fdb0da509075f90216fcfe29e
|
|
| BLAKE2b-256 |
aa82fbe036b321d5af1aaf48b21bf5c9757c1fec044002c87506b313e77ff667
|