Epdlib

Latest version: v0.6.5.1

Safety actively analyzes 638466 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.5.2.1

* add option to mirror screen: `Screen(mirror=True)`
* Screen() now handles kwargs on init and maps them to properties

0.5.1.1

**TextBlock**

* add option to stop text wrapping (textwrap=False)
* changed test string used for calculating maximum characters per line to include digits: 9QqMm
- this results in all calculated font sizes being slightly smaller, but fitting better in most cases

0.5.1.0

**ImageBlock**

* add static method `remove_transparency(im, bg_colour=(255, 255, 255))` to `ImageBlock`
- removes alpha/transparency chanels from PNG and similar images and replaces with bg_color
* add propery `remove_alpha=True` to remove transparency/alpha on PNG images by default

0.5.0.4

**Screen**

* when SPI is not enabled, `writeEPD` returns `FileNotFoundError` instead of `ScreenError`
- this makes it easier to provide useful feedback to users when SPI is not setup

0.5.0.3

* handle exeptions when writing to EPD

0.5.0.0

Add new Block type "DrawBlock" and Layout support

**Block**

* add class "DrawBlock" for drawing `ImageDraw` basic shapes
- DrawBlock blocks are useful for creating horizontal and vertical rules in Layout displays
- supported shapes: `ellipse`, `rounded_rectangle`, `rectangle`
- DrawBlock shapes can be horizontally (center, left, right) and vertically (center, top, bottom) aligned
- all formatting paramaters can be used when drawing supported shapes
* add option to add a border around each block type
- `Block` objects accept the kwarg `border_config` to add borders around the top, bottom, left and right sides
- see

* update docstrings
* add dummy `update()` method to `Block` parent class for completness

**Layout**

* Layouts now support ImageBlock, TextBlock and DrawBlock objects
- DrawBlock objects are included similar to Text and Image blocks, but **MUST** include the key "type"
* 'type': 'DrawBlock'
- As of epdlib v0.6, all layout sections **MUST** include the key "type"
* Layout v0.5 attempts to guess the appropriate block type; this will be removed in v0.6
* Small changes in logging output to decrease verbosity and make verbose output easier to follow

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.