
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
python-project-minify
Advanced tools
A quick way to compile your Python project into it's most compact form. Built on the great python-minify package.
Compile your python project into the most compact version it can be. This package internally uses the great Python Minifier package.
pip install python-project-minify
Note the pip
refers to the Python 3 package manager. In environment where Python 2 is also available the correct command may be pip3
.
Run the minify-project
command in the terminal. It takes two arguments src
and dst
.
minify-project path/to/src path/to/dst
Import python_project_minify:
import python_project_minify
It's simple, just provide a source and destination path:
python_project_minify.directory('path/to/src', 'path/to/dst')
If you are providing paths with backslashes instead of forwardslashes like the example above, make sure to pass it with the r
prefix. This way it will be treated as a raw string and won't throw an error.
python_project_minify.directory(r'path\to\src', r'path\to\dst')
Create a file called .ppmignore
in the root of your project.
## Ignore file in root
file.txt
## Ignore specific file
folder/subfolder/file.txt
## Wildcard ignore file
*file.txt
## Ignore folder in root
/folder
## Ignore specific folder
/folder/subfolder
## Wildcard ignore folder
*/folder
## If for some reason it's necessary to keep the .ppmignore file in the destination folder
PRESERVE_PPMIGNORE
If you found a problem with the software, please create an issue on GitHub.
This project is maintained by Wibo Kuipers.
Your contributions are highly appreciated. Please create a pull request on GitHub. Bigger changes need to be discussed with the development team via the issues section at GitHub first.
FAQs
A quick way to compile your Python project into it's most compact form. Built on the great python-minify package.
We found that python-project-minify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.