https://github.com/tsnoblesoftware/minimize
CLI utility to reduce the size of MicroPython projects
https://github.com/tsnoblesoftware/minimize
Last synced: about 2 months ago
JSON representation
CLI utility to reduce the size of MicroPython projects
- Host: GitHub
- URL: https://github.com/tsnoblesoftware/minimize
- Owner: TSNobleSoftware
- License: apache-2.0
- Created: 2021-04-13T18:09:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-17T11:46:32.000Z (about 5 years ago)
- Last Synced: 2025-03-11T05:46:47.444Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Minimize
Minimize is a command line utility for optimizing the size of MicroPython projects, allowing you to write clean and
readable code occupying minimal memory when deployed to micro-controller
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install minimize.
```bash
pip install python-minimize
```
## Usage
Minimize provides a simple command-line utility which runs size reduction recursively over all files under the working directory
```bash
minimize
```
The command also accepts an arbitrary number of glob patterns, enabling fine-grained control over which files are minimized
```bash
minimize big-files/**.py huge-files/**.py
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
A full [contribution guide](CONTRIBUTING.md) and [code of conduct](CODE_OF_CONDUCT.md) are supplied with the repository. In essence, update the unit tests and changelog, and treat fellow users with respect!
## License
[Apache Software License 2.0](https://www.apache.org/licenses/LICENSE-2.0)