semvec/pypi-packages huggingface dataset:
mpypack 0.1.8
A simple tool to pack up MicroPython code
Requires Python: >=3.6
Keywords: micropython,file transfer,development

# mpypack
A micropython project packing tools.

Can sync folder to mpy board, compiling and packing the whole folder to another output folder.

If the command line tool is not what you need, you can use this as library, and develop your own build/packing python scripts.

# Quick Overview
After place the correct config file, sync files to mpy board:
``` mpypack sync ```

Enter REPL mode: 
``` mpypack repl ```

More Uesage:
```
Usage: mpypack [OPTIONS] COMMAND [ARGS]...

Options:
  -c, --config TEXT   Set config file path. (default .mpypack.conf)
  -p, --port TEXT     Name of serial port for connected board.
  -b, --baud INTEGER  Baud rate for the serial connection (default 115200).
  --version           Show the version and exit.
  --help              Show this message and exit.

Commands:
  build  Pack up source folder.
  get    Retrieve a file from the board.
  repl   Enter repl mode
  sync   Sync local file to mpy board.
```

# Environment
This command line tool also use config file and environment values as parameters.

Avaliable environment values:
```
MPYPACK_CONFIG: The config file path.
MPYPACK_BAUD
MPYPACK_[UPPER_CASE_NAME_IN_CONFIG_FILE]
...
```

# Config File
The default config file is .mpypack.conf in current workspace folder. this can be set by "-c / --config" flag.

Example config file:
```ini
[mpypack_config]
# ----board----

#>>>>----port----<<<<
# port = COM3

#>>>>----baud rate----<<<<
baud = 115200

# ----parameter----

#>>>>----sync local source----<<<<
# local = D:\Code\Micropython\ESP32\Play32

#>>>>----sync remote target----<<<<
remote = /

#>>>>----build source----<<<<
# source = D:\Code\Micropython\ESP32\Play32

#>>>>----build output----<<<<
# output = D:\Code\Micropython\ESP32\Play32\.build

#>>>>----include path RegExp----<<<<
# include = \.py$

#>>>>----exclude path RegExp----<<<<
# exclude = \.pyc$

#>>>>----include hidden file----<<<<
hidden = false

#>>>>----compile .py to .mpy----<<<<
compile = true

#>>>>----compile arch----<<<<
#arch = xtensawin

#>>>>----mpy-cross executable path----<<<<
# mpycross = D:\Code\Micropython\micropython\mpy-cross\mpy-cross.exe
```

# Query Parameter Order

cli > env > conf_file > default
depixelizer 0.0.2
An implementation of the paper Depixelizing Pixel Art by Kopf and Lischinski.
Requires Python: >=3.6

## DEPIXELIZING PIXEL ART

An implementation of the paper *Depixelizing Pixel Art* by Kopf and Lischinski. The implementation is purely in python.

#### INSTALLATION AND USAGE:

Install via pip:
<pre>
    <code>pip install depixelizer</code>
</pre>

Use in code:
<pre><code>
    from depixelizer import Depixelize
    Depixelize(input_image_path, output_dir).run()
</code></pre>

or via command-line:
<pre><code>
    usage: depixelize [-h] [--output_dir OUTPUT_DIR] image_path

    positional arguments:
    image_path            Input Pixel Art Image

    optional arguments:
    -h, --help            show this help message and exit
    --output_dir OUTPUT_DIR
                            Output Dir, defaults to os.cwd()
</code></pre>

#### Requirements
- Python
- `pypng` : https://pypi.python.org/pypi/pypng
- `networkx`: https://pypi.python.org/pypi/networkx/
- `svgwrite` : https://pypi.python.org/pypi/svgwrite/

#### Citations

- https://johanneskopf.de/publications/pixelart/paper/pixel.pdf
- https://github.com/gityou/depixelize
- http://dev.crazyrobot.net/2011/07/12/pixelart-to-vector/
- https://code.launchpad.net/libdepixelize
- http://networkx.lanl.gov/index.html
- https://github.com/jerith/depixel
- https://svgwrite.readthedocs.org/en/latest/
- http://vinipsmaker.wordpress.com/2013/07/21/splines-extraction-on-kopf-lischinski-algorithm-part-1/
- http://vinipsmaker.wordpress.com/2013/08/13/splines-extraction-on-kopf-lischinski-algorithm-part-2/

#### Authors
*Anirudh Vemula, Vamsidhar Yeddu*

Computer Science & Engineering, IIT Bombay