Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .coverage
Binary file not shown.
Binary file modified .gitignore
Binary file not shown.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ This is a Python stats toolkit for easy and powerful statistical operations.
- Perform hypothesis testing
- Simplify data visualization

[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![PyPI version](https://img.shields.io/pypi/v/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![PyPI downloads](https://img.shields.io/pypi/dm/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![Python 3.9+](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Tests](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/tests.yml/badge.svg)](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/tests.yml)
[![Publish](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/publish.yml/badge.svg)](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/publish.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Linting: flake8](https://img.shields.io/badge/linting-flake8-yellowgreen)](https://flake8.pycqa.org/)
Expand Down
270 changes: 270 additions & 0 deletions py_stats_toolkit.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
Metadata-Version: 2.4
Name: py-stats-toolkit
Version: 1.0.4
Summary: Un toolkit Python pour l'analyse statistique et le traitement des données
Author-email: Phoenix Project <autopublisher.ai@gmail.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/ThePhoenixAgency/py-stats-toolkit
Project-URL: Repository, https://github.com/ThePhoenixAgency/py-stats-toolkit.git
Project-URL: Documentation, https://py-stats-toolkit.readthedocs.io/
Project-URL: Bug Tracker, https://github.com/ThePhoenixAgency/py-stats-toolkit/issues
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Statistics
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.20.0
Requires-Dist: pandas>=1.3.0
Requires-Dist: scipy>=1.7.0
Requires-Dist: matplotlib>=3.4.0
Requires-Dist: seaborn>=0.11.0
Requires-Dist: statsmodels>=0.13.0
Requires-Dist: scikit-learn>=1.0.0
Requires-Dist: networkx>=2.6.0
Requires-Dist: deap>=1.3.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=3.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: isort>=5.0.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: mypy>=0.900; extra == "dev"
Requires-Dist: sphinx>=4.0.0; extra == "dev"
Requires-Dist: sphinx-rtd-theme>=1.0.0; extra == "dev"
Requires-Dist: build>=1.0.0; extra == "dev"
Dynamic: license-file

# Py-Stats-Toolkit

Un toolkit Python complet pour l'analyse statistique et le traitement des données, conçu pour être simple d'utilisation tout en offrant des fonctionnalités avancées.

## 🏆 Qualité du Code

[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![PyPI version](https://img.shields.io/pypi/v/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![PyPI downloads](https://img.shields.io/pypi/dm/py-stats-toolkit.svg)](https://pypi.org/project/py-stats-toolkit/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Tests](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/tests.yml/badge.svg)](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/tests.yml)
[![Publish](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/publish.yml/badge.svg)](https://github.com/ThePhoenixAgency/py-stats-toolkit/actions/workflows/publish.yml)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![Imports: isort](https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336)](https://pycqa.github.io/isort/)
[![Linting: flake8](https://img.shields.io/badge/linting-flake8-yellowgreen)](https://flake8.pycqa.org/)
[![Type checking: mypy](https://img.shields.io/badge/type%20checking-mypy-blue)](https://mypy-lang.org/)
[![Security: bandit](https://img.shields.io/badge/security-bandit-green)](https://bandit.readthedocs.io/)

## 🚀 Installation

### Installation depuis PyPI (recommandé)

```bash
pip install py-stats-toolkit
```

### Installation depuis les sources

```bash
git clone https://github.com/ThePhoenixAgency/py-stats-toolkit.git
cd py-stats-toolkit
pip install -e .
```

## 📦 Fonctionnalités

### Statistiques Descriptives
- Calcul automatique de toutes les statistiques descriptives
- Gestion des valeurs manquantes
- Validation des données

### Régression Linéaire
- Régression linéaire simple et multiple
- Validation des hypothèses
- Diagnostics complets

### Analyse de Corrélation
- Matrices de corrélation
- Tests de significativité
- Visualisations avancées

### Visualisation
- Graphiques statistiques professionnels
- Personnalisation complète
- Export en haute qualité

## 🔧 Utilisation Rapide

```python
from py_stats_toolkit.stats import descriptives, regression, correlation
from py_stats_toolkit.visualization import plots
import pandas as pd

# Charger vos données
data = pd.read_csv('votre_fichier.csv')

# Statistiques descriptives
stats = descriptives.calculate_descriptive_statistics(data)
print(stats)

# Régression linéaire
model = regression.linear_regression(data, 'variable_cible', ['var1', 'var2'])
print(model.summary())

# Visualisation
plots.create_correlation_matrix(data)
```

## 🛠️ Scripts Utilitaires

### Publication Automatisée

Le projet inclut plusieurs scripts pour automatiser la publication :

#### `publish_automated.py` (Recommandé)
Publication PyPI 100% automatisée sans interaction utilisateur :

```bash
# Avec token PyPI
set TWINE_PASSWORD=ton_token_pypi
python publish_automated.py

# Ou avec fichier .pypirc
python publish_automated.py
```

#### `build_and_ready.py`
Prépare le package pour publication manuelle :

```bash
python build_and_ready.py
```

#### `release_and_publish.py`
Publication complète avec release GitHub (nécessite GITHUB_TOKEN) :

```bash
set GITHUB_TOKEN=ton_token_github
set TWINE_PASSWORD=ton_token_pypi
python release_and_publish.py
```

#### `clean_cache.py`
Nettoie tous les fichiers cache et temporaires :

```bash
python clean_cache.py
```

## 🔄 Workflow GitHub Actions

Le projet utilise GitHub Actions pour l'automatisation :

1. **Création d'une release** sur GitHub
2. **Déclenchement automatique** du workflow
3. **Build et tests** automatiques
4. **Publication PyPI** automatique

## 📚 Documentation

- **🌐 [Site officiel](https://phoenixguardiantools.github.io/py-stats-toolkit/)** - Hébergé gratuitement sur GitHub Pages
- [Documentation complète](https://py-stats-toolkit.readthedocs.io/)
- [Exemples d'utilisation](https://github.com/ThePhoenixAgency/py-stats-toolkit/tree/main/examples)
- [Guide de contribution](CONTRIBUTING.md)
- [Guide GitHub Pages](GITHUB_PAGES_GUIDE.md) - Comment avoir un domaine gratuit comme github.io

## 🧪 Tests et Qualité du Code

### Tests

```bash
# Installation des dépendances de développement
pip install -r requirements-dev.txt

# Exécution des tests
python -m pytest tests/

# Avec couverture
python -m pytest tests/ --cov=py_stats_toolkit --cov-report=html
```

### Contrôle de Qualité

Le projet suit les meilleures pratiques Python avec plusieurs outils de qualité :

```bash
# Formatage du code avec Black
black .

# Tri des imports avec isort
isort .

# Linting PEP8 avec flake8
flake8 .

# Vérification des types avec mypy
mypy py_stats_toolkit/

# Analyse de sécurité avec bandit
bandit -r py_stats_toolkit/
```

### Standards de Qualité

- **Black** : Formatage automatique du code selon les standards PEP8
- **isort** : Organisation automatique des imports
- **Flake8** : Détection des erreurs de style et de qualité
- **MyPy** : Vérification statique des types
- **Bandit** : Analyse de sécurité pour détecter les vulnérabilités
- **Pytest** : Framework de tests complet avec couverture

## 📋 Dépendances

### Dépendances principales
- numpy >= 1.20.0
- pandas >= 1.3.0
- scipy >= 1.7.0
- matplotlib >= 3.4.0
- seaborn >= 0.11.0
- statsmodels >= 0.13.0
- scikit-learn >= 1.0.0
- networkx >= 2.6.0
- deap >= 1.3.0

### Dépendances de développement
- pytest >= 7.0.0
- black >= 22.0.0
- isort >= 5.0.0
- flake8 >= 4.0.0
- mypy >= 0.900

## 🤝 Contribution

Les contributions sont les bienvenues ! Consultez notre [guide de contribution](CONTRIBUTING.md) pour plus de détails.

## 📄 Licence

Ce projet est sous licence MIT. Voir le fichier [LICENSE](LICENSE) pour plus de détails.

## 🔗 Liens Utiles

- [PyPI](https://pypi.org/project/py-stats-toolkit/)
- [GitHub](https://github.com/ThePhoenixAgency/py-stats-toolkit)
- [Issues](https://github.com/ThePhoenixAgency/py-stats-toolkit/issues)
- [Releases](https://github.com/ThePhoenixAgency/py-stats-toolkit/releases)

## 📞 Contact

- Email : autopublisher.ai@gmail.com
- GitHub : [ThePhoenixAgency](https://github.com/ThePhoenixAgency)

---

**Version actuelle : 1.0.4** - Badges de qualité et conformité complète
15 changes: 15 additions & 0 deletions py_stats_toolkit.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
LICENSE
README.md
pyproject.toml
py_stats_toolkit/__init__.py
py_stats_toolkit.egg-info/PKG-INFO
py_stats_toolkit.egg-info/SOURCES.txt
py_stats_toolkit.egg-info/dependency_links.txt
py_stats_toolkit.egg-info/requires.txt
py_stats_toolkit.egg-info/top_level.txt
py_stats_toolkit/capsules/BaseCapsule.py
py_stats_toolkit/capsules/__init__.py
tests/test_basic_imports.py
tests/test_correlation.py
tests/test_descriptives.py
tests/test_regression_module.py
1 change: 1 addition & 0 deletions py_stats_toolkit.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

20 changes: 20 additions & 0 deletions py_stats_toolkit.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
numpy>=1.20.0
pandas>=1.3.0
scipy>=1.7.0
matplotlib>=3.4.0
seaborn>=0.11.0
statsmodels>=0.13.0
scikit-learn>=1.0.0
networkx>=2.6.0
deap>=1.3.0

[dev]
pytest>=7.0.0
pytest-cov>=3.0.0
black>=22.0.0
isort>=5.0.0
flake8>=4.0.0
mypy>=0.900
sphinx>=4.0.0
sphinx-rtd-theme>=1.0.0
build>=1.0.0
1 change: 1 addition & 0 deletions py_stats_toolkit.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
py_stats_toolkit
2 changes: 1 addition & 1 deletion py_stats_toolkit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"""

# Version du toolkit
__version__ = "1.0.1"
__version__ = "1.0.4"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok


# Imports des modules principaux
try:
Expand Down
Binary file not shown.
Loading
Loading