Skip to content

Releases

4.1.0

Choose a tag to compare

@benoit74 benoit74 released this 05 Nov 12:02
cf35f8a

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 for iter_efficient()), Archive.find_by_path() and Archive.find_by_title() to iterate over entries without get_entry_by_id() (#94, #294)

Changed

  • Split libzim into reader and writer parts so builds can target libzim compiled without writer support; libzim.writer is only importable when the build includes writer support (#287)
  • Relax setuptools/wheel/cython build dependency pins to >=floor,<next major> ranges instead of exact versions, easing downstream packaging; delocate stays exactly pinned (#288)
  • Upgrade ruff, mypy, pytest, coverage and ipython, and pin the previously-unpinned types-setuptools (#295)

4.0.0

Choose a tag to compare

@benoit74 benoit74 released this 29 Oct 08:12
6fe35f3

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.illustration module with the IllustrationInfo value 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 SearchResult object with archive, path, title, and snippet (#226)

Changed

  • Breaking: SearchResultSet now yields SearchResult objects instead of entry path strings (#226)
  • Breaking: Creator.config_nbworkers() param nbWorkers renamed nb_workers (#200)
  • Breaking: Creator.set_mainpath() param mainPath renamed main_path (#200)
  • Breaking: Creator.add_redirection() param targetPath renamed target_path (#200)
  • Breaking: Creator.add_alias() param targetPath renamed target_path (#200)
  • Breaking: Search.getEstimatedMatches() renamed Search.get_estimated_matches() (#200)
  • Breaking: Search.getResults() renamed Search.get_results() (#200)
  • Breaking: SuggestionSearch.getEstimatedMatches() renamed SuggestionSearch.get_estimated_matches() (#200)
  • Breaking: SuggestionSearch.getResults() renamed SuggestionSearch.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.pyx to use PEP 604/585 syntax (e.g. str | bytes, dict[...]) instead of typing.Union/typing.Dict/etc. (#281)

Removed

  • Breaking: Drop support for Python 3.10 (#281)
  • Breaking: Creator.add_metadata no longer auto-converts a Date metadata value passed as datetime.date/datetime.datetime; pass pre-formatted str/bytes instead (#188)
  • Breaking: Archive._get_entry_by_id() removed in favor of Archive.get_entry_by_id() (#225)

Fixed

  • Fix documentation build broken by mkdocstrings-python import/load_external_modules config changes and a stale CI badge URL (#279)
  • get_illustration_sizes() deprecation warning now points to the existing get_illustrations_info() method (#272)
  • Creator.add_metadata type stub no longer advertises datetime values (#285)
  • libzim.suggestion now exports SuggestionSearch and SuggestionResultSet at runtime, as declared in type stubs (#286)
  • Fix type stubs drifting from the compiled module: set_cluster_cache_max_size parameter name, IllustrationInfo extra_attributes default, enum members, Creator.config_*() return type (#286)
  • Submodules are no longer also registered in sys.modules under their last member name (e.g. sys.modules["Searcher"]) (#286)

3.13.1

Choose a tag to compare

@benoit74 benoit74 released this 05 Oct 10:17

Changed

  • Upgrade to libzim 9.8.2-1 and upgrade other Python dependencies (#269)

3.13.0

Choose a tag to compare

@benoit74 benoit74 released this 07 Sep 13:44
5936837

Changed

  • Upgrade to libzim 9.8.2 and upgrade other Python dependencies, especially Cython 3.3.0 (#265)

3.12.0

Choose a tag to compare

@benoit74 benoit74 released this 20 Jul 07:43
7701b9c

Changed

  • Upgrade to libzim 9.8.1 and upgrade other Python dependencies, especially Cython 3.2.8 (#261)
  • Drop support for free-threaded CPython 3.13t (#261)

3.11.0

Choose a tag to compare

@benoit74 benoit74 released this 09 Jul 05:04
910002d

Changed

  • Upgrade to libzim 9.8.0 (#259)

3.10.0

Choose a tag to compare

@benoit74 benoit74 released this 19 May 11:21
5c2d51b

Changed

  • Upgrade to libzim 9.7.0 (#254)

3.9.0

Choose a tag to compare

@benoit74 benoit74 released this 24 Mar 10:55
c1ce280

Added

  • Added Changelog to docs (#227)

Changed

  • Upgrade to libzim 9.5.1 and upgrade other Python dependencies, especially Cython 3.2.4 (#250)

Fixed

  • Fixed broken links in docs (#246)

3.8.0

Choose a tag to compare

@benoit74 benoit74 released this 14 Nov 06:14
5e7c58a
  • 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_size and Archive.cluster_cache_current_size to methods outside of Archive object: 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()

3.7.0

Choose a tag to compare

@benoit74 benoit74 released this 18 Apr 09:38
b9182a2

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_size
    • Archive.cluster_cache_current_size
    • Archive.dirent_cache_max_size
    • Archive.dirent_cache_current_size
    • Archive.dirent_lookup_cache_max_size

Changed

  • Using C++ libzim 9.3.0-1