Vertopal CLI v2.2.0 Release Notes
Release Date: 2025-11-27 // 7 months ago-
✨ Added
- 🆕 New API exceptions (
TooManyRequestsError,FreeAppLimitedError,DisabledForFreeAppError,WrongFormatStructureError,InvalidFormatError). - ⚡️ Public
Configclass with support for in-memory runtime overrides (update,clear_overrides,get). - Masking of sensitive values (e.g., API tokens) in string representations.
- 🔦 Exposed
Configat the top-level package for external usage.
🛠 🐛 Fixed
- Improved
_ChunkedFileWrapperto rewind file streams before upload, preventingEMPTY_FILEerrors and truncated uploads. Added__len__,__iter__, and__next__methods for better streaming client compatibility and chunk iteration. - Improved JSON response detection in
vertopal.api.interface._Interface.send_request
to correctly handleContent-Typeheaders with parameters (e.g.application/json; charset=utf-8).
Full Changelog:
v2.1.0...v2.2.0 - 🆕 New API exceptions (
Previous changes from v2.1.0
-
✨ Added
- 👌 Support for configurable upload and download chunk sizes:
- New settings:
stream_upload_chunk_sizeandstream_download_chunk_size(fall back tostream_chunk_sizeif unset). - New
_ChunkedFileWrapperinternal utility to enforce fixed chunk sizes during streaming. - New
_Interface.upload_chunk_sizeand_Interface.download_chunk_sizeproperties to resolve effective chunk sizes. API.upload_filenow accepts an optionalchunk_sizeparameter, defaulting to configuration values.
- New settings:
🛠 🐛 Fixed
- 🛠 Fixed
_ChunkedFileWrapper.read(-1)to return the full file instead of a single chunk, preventing truncated uploads for binary files. - Corrected
send_requestJSON validation logic to check theContent-Typeheader instead of endpoint path, preventing errors when handling binary responses (e.g., file downloads). - Explicitly use
.valueforInterfaceStrategyModeandInterfaceSublistModeto ensure consistent string output across Python versions (avoiding f-string differences introduced after Python 3.10).
🛠 Changed
- 🔨 Refactored type hints to use built-in generics (
list,dict, andtuple) instead oftyping.List,typing.Dict, andtyping.Tuple. - ⚡️ Updated README installer instructions to use a unified endpoint for macOS and Linux (
https://run.vertopal.com/cli/unix).
Full Changelog:
v2.0.3...v2.1.0 - 👌 Support for configurable upload and download chunk sizes: