Skip to content

jbjd/Python-Minifier

Repository files navigation

Personal Python Minifier

This is a project related to minifying Python code. It will parse python to output a much smaller output with optionally excluded sections of code. It also includes wrappers for calling autoflake.

This project is an extension of the builtin ast module.

Goals

The main reason I am making this is a compilation tool for another project I am working on. I wanted to be able to exclude code that goes into the final compiled solution, and this wanted to be able to remove classes/functions/etc from python by listing them and haaving a parser do all the checking. This project is built with that goal in mind; as is, it does not aim for perfectly minified python code, but extensibility and options around what gets excluded.

In the future I will aim to increase the accuracy of minification, but currently the focus remains on being able to exclude sections of code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages