My Python Project
Description
A simple tool to create a project with Python, an executable and an installer. It was inspired from fbs.
For now, 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
Start a project easily
$ mpp setup
What is your project name? [default] Project
What is your author name? [username] Name
Do you want to display the console (y/n)? [y]
The project version is 0.0.0
The project's icon is 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.
Environment
default/
installer/
resources/
images/
icon.ico
src/
target/
.mpp_config
main.py
Description
- installer/: contains the files needed to freeze and create an installer;
- resources/: contains your project's files;
- src/: contains the sources of your project;
- target: contains the created executable and installer;
- .mpp_config: stores yout project's settings;
- main.py: main python file.
Show your configuration
$ mpp config --list
-→ name = Project
-→ author = Name
-→ version = 0.0.0
-→ console = True
-→ icon = resources/images/icon.ico
-→ 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
Freeze your project with PyInstaller
If PyInstaller is not installed, mpp asks if it can do it for you.
$ 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
If ShellExecAsUSer.dll is not in the installer folder, mpp asks if it can download it for you
$ 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
Release files for mpp 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mpp-0.0.3.tar.gz | 53.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mpp-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.6 kB
Release files / mpp-0.0.3.tar.gz
| Download URL | mpp-0.0.3.tar.gz |
|---|---|
| Size | 53.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0e7c4681eb068566c576435e7f2af1737dc2f0cea030b2262892534bca65063
|
|
BLAKE2b-256 checksum How to use checksums |
d2ed1b1ad802abf9b394925f6135e75243374aa485592f4115d3bcecb05e67d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|
Release files / mpp-0.0.3-py3-none-any.whl
| Download URL | mpp-0.0.3-py3-none-any.whl |
|---|---|
| Size | 63.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02ed51d7cbcc5b5546527567f7df43f656815c5446f3d82f700d725e7a8ba073
|
|
BLAKE2b-256 checksum How to use checksums |
be5d2b4c4e053c506733c405ade5d6c9a5c5a5fc6c58e9e0236c51c796d2c3ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5
|