Skip to main content

Un package Python professionnel créé avec Poetry

Project description

Mon Package Python

Tests Documentation PyPI version Python 3.10+

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

  1. Créer une branche pour votre fonctionnalité

    git checkout -b feature/ma-nouvelle-fonctionnalite
    
  2. Faire vos modifications avec des commits atomiques

  3. Exécuter les tests

    poetry run pytest
    
  4. Vérifier la qualité du code

    ruff check --fix .
    
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mon_package_python-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mon_package_python-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for mon_package_python-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7c1aca343f39a53144fc65a8eb894a182e03858c94564816047fa20cf7a507af
MD5 2f11962c755c5af07675fea7bdb20245
BLAKE2b-256 f4e712240ecd3369e8556e37f53ea1e232d03e839f852300c0d59e9ce7668134

See more details on using hashes here.

File details

Details for the file mon_package_python-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mon_package_python-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec051080787cb09ad0c1369e3cae2bee22a7871b74313a19d01b267970c60aac
MD5 bc35246fdb0da509075f90216fcfe29e
BLAKE2b-256 aa82fbe036b321d5af1aaf48b21bf5c9757c1fec044002c87506b313e77ff667

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page