Skip to main content

My Python Project: a command-line tool to create a Python project

Project description

PyPI version

My Python Project

Description

A simple tool to create a project with Python, an executable and an installer.

It's only for Windows, but future versions will make it independent of the operating system.

Installation

mpp can be installed using the pip package manager:

$ pip install mpp

Usage

We will see the main commands here. For more information, check the Wiki!

Let's create a project together:

$ mkdir mpp_tuto
$ cd mpp_tuto

Setup your project easily

Just answer the questions, where the default values are between square brackets:

$ mpp setup
What is your project name? [mpp_tuto] mpp Tuto
What is your author name? [username] Name

The project's version is 0.0.0.
The project's icon can be found here: resources/images/icon.ico.
The `main.py` file can now be edited.

Use `mpp --help` to display all possible commands.
Use `mpp <command> -h` to display the help for a command.
Use `mpp config --list` to show your project settings.

Show your configuration

$ mpp config --list
 -→ name = MPP Tuto
 -→ author = Name
 -→ version = 0.0.0
 -→ resources = ['resources', '.mpp_config']
 -→ icon = resources/images/icon.ico
 -→ console = True
 -→ hidden-imports = []

Edit your configuration

$ mpp config author version
What is your author name? [Name] John
What is the new version? [0.0.0] 0.0.1

Are you sure of your modifications (y/n)? y

Process your project version

Show your project version:

$ mpp version
Project 0.0.0

Increment the version:

$ mpp version +
Project 0.0.1

$ mpp version ++
Project 0.1.0

$ mpp version +++
Project 1.0.0

Freeze your project with PyInstaller

$ mpp freeze
It seems that PyInstaller is not installed.
Please, consider using `pip install PyInstaller`.
Current pip is path/to/pip.
Do you want to install it now (y/n)? [y]
[pip output]

[PyInstaller outpout]

Executable can be found here: target/Project/Project.exe

Create an installer for your project with NSIS

$ mpp installer
NSIS needs "ShellExecAsUser" in order to create the installer.
Do you want to download it (y/n)? [y]

Downloading... Done
[NSIS output]

Installer can be found here: target/Project_setup.exe

Credits

This project was originally inspired from fbs.

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

mpp-0.1.9.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

mpp-0.1.9-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file mpp-0.1.9.tar.gz.

File metadata

  • Download URL: mpp-0.1.9.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for mpp-0.1.9.tar.gz
Algorithm Hash digest
SHA256 83e020092f08ea8d1eb45a8fc345972e9dff66d00f4fa48a6ce1c640b0724fce
MD5 aced80cc23591b0c5f98414cbbf89e02
BLAKE2b-256 c50c7301c68052543436f72bbdaafd38241e8c465694e2c63e85a99aeeff22be

See more details on using hashes here.

File details

Details for the file mpp-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: mpp-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for mpp-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 88ecab4cd0982c6a7ce03a06b20b74bca5bdfa72f8308ec23cbec4069735278f
MD5 1413a4c854c7380ee258d761c88bb551
BLAKE2b-256 d5115db51de278f48fc02e7ce2475667872b8cfcf0cc4731aaebd748275d6322

See more details on using hashes here.

Supported by

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