Borb

Latest version: v2.1.22

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

Scan your dependencies

Page 1 of 12

2.1.22

:mega: borb release notes

This release is more of an aesthetic release.
- The imports have been reviewed,
- a lot of code comments have been reviewed (adding parameters where needed)

A new feature (related to redaction) was added.
- `FaceDetectionEventListener` runs through a `Document` and triggers `_face_occurred` whenever a face is detected (in an image)
- `FaceEraserEventListener` (based on `FaceDetectionEventListener`) adds the typical (pixelated) blur to any detected face

2.1.21

:mega: borb release notes

- Added `A4PortraitInvoiceTemplate`
- Added tests for `A4PortraitInvoiceTemplate`
- Bugfix in `HeterogeneousParagraph`
- Refactor `UsageStatistics`

2.1.20

:mega: borb release notes

- Added support for (some) password-protected PDF documents
- Added test to check whether all imports are fully qualified
- Added test to check whether all imports are in the requirements
- Added test to check whether all imports are single line
- Added `CodeBlockWithSyntaxHighlighting` `LayoutElement`
- Ran `black`
- Ran `optimize imports`
- Removed dependency on `lxml`, which is only needed for `HTMLToPDF`

2.1.19

:mega: borb release notes

- Added pretty much all the `LayoutElement` implementations to the easy imports.
- Added a `LayoutElement` called `Map` with implementations `MapOfEurope`, `MapOfTheUnitedStates` and `MapOfTheWorld`. These `LayoutElement` instances draw a map of their respective territories, and allow you to mark one or multiple components with a different `fill_color`, `stroke_color` and `line_width`.
- Fixed tests related to unsplash API.
- Added tests for `A4PortraitTemplate`.
- Added tests for `A42ColumnPortraitTemplate`.
- Added tests for `SlideTemplate`.
- Added `TestCreateFullSlideTemplate`. Check out this `TestCase` if you want a concrete example of how to use `SlideTemplate` to produce a beautiful slideshow in PDF.

2.1.18

:mega: borb release notes

- Added some utility methods in `LayoutElement`
- `get_golden_ratio_landscape_box`
- `get_golden_ratio_portrait_box`
- `get_largest_landscape_box`
- `get_smallest_landscape_box`
- Removed `_calculate_min_and_max_layout_box` from `TableCell`
- Added tests for `get_golden_ratio_landscape_box`
- Added tests for `get_golden_ratio_portrait_box`
- Added utility class `A4PortraitTemplate`
- This class represents an `A4_PORTRAIT` `Document`
- It contains methods that allow you to directly add content to it
- All the content-adding methods have sensible defaults (`font`, `font_size`, `font_color`, etc)
- This class has a utility method to immediately `save` the `Document`
- Added tests for `A4PortraitTemplate`
- Fixed small bug in `add_outline` in `Document`

2.1.17

:mega: borb release notes

- fixed bug in `SingleColumnLayoutWithOverflow`
- replaced `list += []` by `list.append()` for performance reasons

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.