Zimscraperlib

Latest version: v4.0.0

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

Scan your dependencies

Page 4 of 7

1.4.3

Not secure
- `zim.Archive.counters` wont fail on missing `Counter` metadata

1.4.2

Not secure
- Fixed leak in `zim.Archive`'s `.counters`
- New `.get_text_metadata()` method on `zim.Archive` to save UTF-8 decoding

1.4.1

Not secure
- New `Counter` metadata based properties for Archive:
- `.counters`: parsed dict of the Counter metadata
- `.article_counter`: libkiwix's calculation for nb or article
- `.media_counter`: libkiwix's calculation for nb or media
- Fixed `i18n.find_language_names()` failing on some languages
- Added `uri` module with `rebuild_uri()`

1.4.0

Not secure
- Using new python-libzim based on libzim v7
- New Creator API
- Removed all namespace references
- Renamed `url` mentions to `path`
- Removed all links rewriting
- Removed Article/CSS/Binary seggreation
- Kept zimwriterfs mode (except it doesn't rewrite for namespaces)
- New `html` module for HTML document manipulations
- New callback system on `add_item_for()` and `add_item()`
- New Archive API with easier search/suggestions and content access
- Changed download log level to DEBUG (was INFO)
- `filesystem.get_file_mimetype` now passes bytes to libmagic instead of filename due to release issue in libmagic
- safer `inputs.handle_user_provided_file` regarding input as str instead of Path
- `image.presets` and `video.presets` now all includes `ext` and `mimetype` properties
- Video convert log now DEBUG instead of INFO
- Fixed `image.save_image()` saving to disk even when using a bytes stream
- Fixed `image.transformation.resize_image()` when resizing a byte stream without a dst

1.3.6

Not secure
Intermediate release using unreleased libzim to support development of libzim7.
Don't use it.

- requesting newer libzim version (not released ATM)
- New ZIM API for non-namespace libzim (v7)
- updated all requirements
- Fixed download test inconsistency
- fix_ogvjs mostly useless: only allows webm types
- exposing retry_adapter for refactoring
- Changed download log level to DEBUG (was INFO)
- guess more-defined mime from filename if magic says it's text
- get_file_mimetype now passes bytes to libmagic
- safer regarding input as str instead of Path
- fixed static item for empty content
- ext and mimetype properties for all presets
- Video convert log now DEBUG instead of INFO
- Added delete_fpath to add_item_for() and fixed StaticItem's auto remove
- Updated badges for new repo name

1.3.5

Not secure
- add `stream_file()` to stream content from a URL into a file or a `BytesIO` object
- deprecated `save_file()`
- fixed `add_binary` when used without an fpath (69)
- deprecated `make_grayscale` option in image optimization
- Added support for in-memory optimization for PNG, JPEG, and WebP images
- allows enabling debug logs via ZIMSCRAPERLIB_DEBUG environ

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.