Skip to main content

Make Py Project

make_py_project est un générateur interactif de structure pour démarrer un package Python. Sa commande py-init ou mpp demande les informations du projet, puis crée les fichiers de base nécessaires à sa construction et à sa documentation.

Installation globale

Il est conseiller une installation globale.

pip install Make_Py_Project

Redémarrez ensuite le terminal si nécessaire.

Pour mettre à jour l'installation locale après avoir modifié le code :

pip install --force .

Utilisation

Placez-vous dans le dossier où vous souhaitez créer le nouveau projet, puis lancez :

py-init

La commande demande le nom du projet, sa version, sa description, le nom de l'auteur et son adresse e-mail. Les valeurs affichées entre parenthèses sont des suggestions ; renseignez notamment le nom et l'e-mail de l'auteur pour les inscrire dans les métadonnées du package.

Le nom du projet est utilisé pour créer le dossier du module sous src/ ; il est converti en minuscules et les espaces sont remplacés par des underscores.

Exemple de structure générée

mon_projet/
├── README.md
├── pyproject.toml
└── src/
    └── mon_projet/
        ├── __init__.py
        └── py.typed

Le fichier pyproject.toml contient les métadonnées du package et sa configuration de build avec setuptools. Un fichier marqueur py.typed est également créé dans le module.

Attention : la commande écrit ou remplace README.md, pyproject.toml, src/<nom_du_module>/__init__.py et src/<nom_du_module>/py.typed dans le dossier courant. Lancez-la dans un dossier adapté et sauvegardez tout fichier que vous souhaitez conserver.

Construire le package généré

Dans le dossier du nouveau projet, construisez les distributions avec build :

python -m pip install build
python -m build

Les fichiers de distribution sont créés dans dist/.

Metadata

Release files for Make-Py-Project 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Make-Py-Project 1.0.1
File Size Uploaded Provenance Actions
make_py_project-1.0.1.tar.gz 3.7 kB Without provenance Details for make_py_project-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Make-Py-Project 1.0.1
File Interpreter ABI Platform Actions
make_py_project-1.0.1-py3-none-any.whl Python 3 none any Details for make_py_project-1.0.1-py3-none-any.whl

Total release size: 9.1 kB

Release files / make_py_project-1.0.1.tar.gz

Download URL make_py_project-1.0.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
99dbfc2d9e94408860d5a25d5dcb3c01c7ec420ee3c6b4166fad95f53232d9a6
BLAKE2b-256 checksum
How to use checksums
7ff3ab6a7cda1db7764319021f4b4d6216e64751be459bdec5b0e4805ee1396d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / make_py_project-1.0.1-py3-none-any.whl

Download URL make_py_project-1.0.1-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
705c7b7569e06009b26fa84fbfd28b34de856b45c38b81891d21a9be4632a846
BLAKE2b-256 checksum
How to use checksums
f589b300fd98c853d73d77080d4f526fb06134da91abb100a51786a7b11329a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for Make-Py-Project 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page