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.0

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.0
File Size Uploaded Provenance Actions
make_py_project-1.0.0.tar.gz 3.7 kB Without provenance Details for make_py_project-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / make_py_project-1.0.0.tar.gz

Download URL make_py_project-1.0.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
88c91f84340877b765306acb5ed447eea0ca709fc61f178bdc6adc32e6e6df9b
BLAKE2b-256 checksum
How to use checksums
83d0da88e70e23bfbc8a463d92ca7b64a5e512dda3695953bbe4ae2c12587b23
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.0-py3-none-any.whl

Download URL make_py_project-1.0.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cecca07f9e6940a786fd81743f44566723ac9c9ab6d7c0e1890fef6a3240e19
BLAKE2b-256 checksum
How to use checksums
5f3eed731d0cb477bc7c50413b9b2b9a239838b6ab89b224e3b71a073e6bc645
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.0

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.0 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