Epdlib

Latest version: v0.6.5.1

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

Scan your dependencies

Page 1 of 3

0.6.5.0

**Block**

* Update logic for placing right aligned text to resolve [I65](https://github.com/txoof/epdlib/issues/65#issuecomment-2004589703). Right aligned text now appears both right aligned and visually aligned with right side of text block.

0.6.3.0

**Development Environment**

* switch from pipenv to plain `requirements.txt`
* update dependencies to follow waveshare repo:
- `gpiozero`
- `lgpio`
- `spidev`
* add `init_devel_environment.sh` to create virtual environment, install requirements, and optionally add jupyter kernel.

**Screen**

* add `module_cleanup` method for final shutdown of screen
* this method needs to be called prior to final exit
* see [I315 for more details](https://github.com/waveshareteam/e-Paper/issues/315)]

0.6.2.0

**Block**

* explicitly remove all mutables from default value assignments in methods
- no changes to public/private methods

**Layout**

* explicitly remove all mutables from default value assignments in methods
* deepcopy the user supplied layout into new property: `_master_layout`
- resolves [issue 51](https://github.com/txoof/epdlib/issues/51#issuecomment-1722217690)
- `_layout` contains the calculated layout with all of the areas and absolute coordinates
- `_master_layout` contains the user-supplied raw layout with relative positions
* small internal changes to `resolution` method

0.6.1.2

**requirements**

* remove unneeded requests requirement

0.6.1.0

**Documentation**

* Rewrite and reformat documentation
* Split modules into independent documents

**Block**

* Add `pillow_palette` argument; True: map color names to RGB standard HTML color values, False (default) map color names to WaveShare values.
- WaveShare 7 color panels use different "ORANGE" and "GREEN" values from the standard HTML color values.
* Blocks now default to `fill='BLACK` and `bkground='WHITE'` instead of `fill=0` and `bkground=255`
* Fill and bkground colors appropriately map to match the block color mode
* Resetting font size for `TextBlock` objects now update the font size without redefining the font path

**Screen**

* `colors2palette` uses WaveShare R, O, Y, B, G, Blk, W values by default

**Layout**

* Improve logic for determining block color mode

0.6.0.0

**Screen**

* Add "RGB" as valid value for `mode` property
- This is auto-detected for all 7 Color Screens
* Add method `reduce_palette` to reduce all of the colors in an image to a set palette

* Add method `colors2palette` to produce a palette that can be used with the `reduce_palette` method
- The default is a 7-color palette of w3 colors: 'RED', 'ORANGE', 'YELLOW', 'GREEN', 'BLUE', 'WHITE', 'BLACK'
* Update `list_compatible_modules` module function to show supported mode

**Layout**

* Add `mode` property to `__init__`
- Supports "1", "RGB", "L"
* Mode property validates value against `constants.MODES` and throws `AttributeError`
* API Change in `Layout` class: add public method `set_block` to create or update a single block
* API Change in `Layout` class: add public method `update_block_props` to allow changing the layout settings for a block
- the block must be updated using `update_contents` after the properties are changed
* API Change in `Layout` class: all `Layout.layout` dictionaries must now contain the key `type` that indicates the block type: (`TextBlock`, `ImageBlock`, `DrawBlock`). Failure to include this key will raise a `KeyError`.

**Block**

* `Block` superclass for all block classes now supports "RGB" mode
* All classes support the following for `fill`, `bkground` and `outline`
- RGB tuples: `(128, 128, 128)`
- hex `0x808080`
- integers: `8421504`
- colormap colors: `"gray"`- (see `ImageColor.getcolor`)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.