Repository navigation
Releases
Releases · openzim/python-libzim
4.1.0
Added
- Add Android wheels support via cibuildwheel for arm64_v8a and x86_64 with CPython 3.13+; these wheels are reader-only since libzim is compiled without writer support on Android (#167)
- Add
Archive.iter_by_path(),Archive.iter_by_title(),Archive.iter_efficient(),Archive.__iter__()(alias foriter_efficient()),Archive.find_by_path()andArchive.find_by_title()to iterate over entries withoutget_entry_by_id()(#94, #294)
Changed
- Split
libziminto reader and writer parts so builds can target libzim compiled without writer support;libzim.writeris only importable when the build includes writer support (#287) - Relax
setuptools/wheel/cythonbuild dependency pins to>=floor,<next major>ranges instead of exact versions, easing downstream packaging;delocatestays exactly pinned (#288) - Upgrade ruff, mypy, pytest, coverage and ipython, and pin the previously-unpinned
types-setuptools(#295)
4.0.0
Added
- Add support for Python 3.15 (#281)
- Build wheels against the stable ABI (abi3) so a single wheel per platform covers all supported CPython versions (#264)
- Add
libzim.illustrationmodule with theIllustrationInfovalue object, and width/height/scale-aware illustration APIs:Creator.add_illustration()/add_illustration_info(),Archive.get_illustration_item()/get_illustration_item_info(),Archive.get_illustrations_info()(#232) - Support multi-archive searching via
Searcher.add_archive()(#230) - Add
SearchResultobject witharchive,path,title, andsnippet(#226)
Changed
- Breaking:
SearchResultSetnow yieldsSearchResultobjects instead of entry path strings (#226) - Breaking:
Creator.config_nbworkers()paramnbWorkersrenamednb_workers(#200) - Breaking:
Creator.set_mainpath()parammainPathrenamedmain_path(#200) - Breaking:
Creator.add_redirection()paramtargetPathrenamedtarget_path(#200) - Breaking:
Creator.add_alias()paramtargetPathrenamedtarget_path(#200) - Breaking:
Search.getEstimatedMatches()renamedSearch.get_estimated_matches()(#200) - Breaking:
Search.getResults()renamedSearch.get_results()(#200) - Breaking:
SuggestionSearch.getEstimatedMatches()renamedSuggestionSearch.get_estimated_matches()(#200) - Breaking:
SuggestionSearch.getResults()renamedSuggestionSearch.get_results()(#200) - Declare the extension free-threading compatible so that importing it on a free-threaded CPython no longer forces the GIL back on (#240)
- Modernize type hints in
libzim.pyxto use PEP 604/585 syntax (e.g.str | bytes,dict[...]) instead oftyping.Union/typing.Dict/etc. (#281)
Removed
- Breaking: Drop support for Python 3.10 (#281)
- Breaking:
Creator.add_metadatano longer auto-converts aDatemetadata value passed asdatetime.date/datetime.datetime; pass pre-formattedstr/bytesinstead (#188) - Breaking:
Archive._get_entry_by_id()removed in favor ofArchive.get_entry_by_id()(#225)
Fixed
- Fix documentation build broken by mkdocstrings-python
import/load_external_modulesconfig changes and a stale CI badge URL (#279) get_illustration_sizes()deprecation warning now points to the existingget_illustrations_info()method (#272)Creator.add_metadatatype stub no longer advertisesdatetimevalues (#285)libzim.suggestionnow exportsSuggestionSearchandSuggestionResultSetat runtime, as declared in type stubs (#286)- Fix type stubs drifting from the compiled module:
set_cluster_cache_max_sizeparameter name,IllustrationInfoextra_attributesdefault, enum members,Creator.config_*()return type (#286) - Submodules are no longer also registered in
sys.modulesunder their last member name (e.g.sys.modules["Searcher"]) (#286)
3.13.1
3.13.0
3.12.0
3.11.0
3.10.0
3.9.0
3.8.0
- Maintenance upgrades (#237):
- Drop support of Python 3.9
- Add support for Python 3.14
- Upgrade dependencies, especially Cython 3.1.6
- Upgrade supported macOS to 14.0+ (instead of 13.0+)
- Add support for free-threaded CPython (3.13 and 3.14)
- Upgrade Github CI Actions
- Run tests on minimum supported platforms + more recent stable ones
- Fix various Cython warning and deprecation notices (#239)
- libzim 9.4.0 Cache Control API
- remove
Archive.dirent_lookup_cache_max_size, does not exists anymore in libzim - move
Archive.cluster_cache_max_sizeandArchive.cluster_cache_current_sizeto methods outside ofArchiveobject:get_cluster_cache_max_size,set_cluster_cache_max_size,get_cluster_cache_current_size(size is now in bytes) - deprecate usage of
get_illustration_sizes()
- remove
3.7.0
Added
- Set up documentation using
mkdocs, published on readthedocs.com (#186) Archive.get_random_entry()- libzim 9.3.0 Cache Control API:
Archive.cluster_cache_max_sizeArchive.cluster_cache_current_sizeArchive.dirent_cache_max_sizeArchive.dirent_cache_current_sizeArchive.dirent_lookup_cache_max_size
Changed
- Using C++ libzim 9.3.0-1