Skip to content

Make Archive.get_entry_by_id public and deprecate _get_entry_by_id - #274

Merged
benoit74 merged 1 commit into
openzim:mainfrom
Sriram-Nambiar:make-get-entry-by-id-public
Oct 25, 2026
Merged

benoit74 merged 1 commit into
openzim:mainfrom
Sriram-Nambiar:make-get-entry-by-id-public

Conversation

@Sriram-Nambiar

@Sriram-Nambiar Sriram-Nambiar commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #225.

  • Exposes public Archive.get_entry_by_id(entry_id).
  • Removes private Archive._get_entry_by_id(entry_id).
  • Updates type hints in libzim/reader.pyi.
  • Updates tests in tests/test_libzim_reader.py.

@benoit74

Copy link
Copy Markdown
Contributor

@Sriram-Nambiar please rebase on main and force push with lease, so that we have tests running on this PR

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.33%. Comparing base (0b95279) to head (7a2bd7b).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #274   +/-   ##
=======================================
  Coverage   94.33%   94.33%           
=======================================
  Files           1        1           
  Lines         600      600           
=======================================
  Hits          566      566           
  Misses         34       34           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@benoit74

Copy link
Copy Markdown
Contributor

@Sriram-Nambiar please immediately remove _get_entry_by_id since this will land in a major release, no need to deprecate now and remove later ; should fix the linting issue ^^

@Sriram-Nambiar
Sriram-Nambiar force-pushed the make-get-entry-by-id-public branch from 81f7dce to 27a87ec Compare October 22, 2026 13:38

@benoit74 benoit74 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix your first PR comment and the CHANGELOG below

Comment thread CHANGELOG.md Resolved
@Sriram-Nambiar
Sriram-Nambiar force-pushed the make-get-entry-by-id-public branch from 27a87ec to b6dad96 Compare October 22, 2026 14:14
@benoit74

Copy link
Copy Markdown
Contributor

Is this ready for a new review?

@benoit74
benoit74 force-pushed the make-get-entry-by-id-public branch from b6dad96 to 7a2bd7b Compare October 25, 2026 17:35
@benoit74
benoit74 self-requested a review October 25, 2026 17:36

@benoit74 benoit74 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@benoit74
benoit74 merged commit 2ccf1fc into openzim:main Oct 25, 2026
69 of 70 checks passed
@Sriram-Nambiar

Copy link
Copy Markdown
Contributor Author

Happy to help

pawank925 pushed a commit to pawank925/python-libzim that referenced this pull request Oct 28, 2026
…id-public

Make Archive.get_entry_by_id public and deprecate _get_entry_by_id
pawank925 added a commit to pawank925/python-libzim that referenced this pull request Oct 28, 2026
…id-public

Make Archive.get_entry_by_id public and deprecate _get_entry_by_id
pawank925 added a commit to pawank925/python-libzim that referenced this pull request Oct 28, 2026
…id-public

Make Archive.get_entry_by_id public and deprecate _get_entry_by_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove private prefix of Archive._get_entry_by_id

2 participants