Skip to content

Support iterators #94

Closed

Description

@rgaudin

Archive needs support for a few iterators:

  • Archive.iterByPath()
  • Archive.iterByTitle()
  • Archive.iterEfficient() (arguable)
  • Archive.findByPath(path)
  • Archive.findByTitle(title)

Activity

  1. added
    enhancement
    on Jan 21, 2021
  2. rgaudin commented on Jan 21, 2021

    @rgaudin
    MemberAuthor

    Awaiting this to remove Archive.get_entry_by_id(), Entry.index and Item.index as it's the only way to loop over the zim content at the moment and we use it in tests.

  3. mgautierfr commented on Jan 21, 2021

    @mgautierfr
    Contributor

    It would be nice to have a "default" iterator (iterEfficient?) on Archive itself.

    This way we could iterate over archive with :

    archive = Archive("foo.zim")
    for entry in archive:
        print(entry.title)
  4. rgaudin commented on Jan 21, 2021

    @rgaudin
    MemberAuthor

    absolutely 👍

  5. added this to the 1.0 milestone on Jan 26, 2021
  6. pinned this issue on Jan 26, 2021
  7. removed this from the 1.0 milestone on Feb 3, 2021
  8. added this to the 1.1.0 milestone on Aug 12, 2021
  9. stale commented on Dec 9, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  10. stale commented on Mar 2, 2022

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

  11. added
    stale
    on Mar 2, 2022
  12. modified the milestones: 1.2.0, 1.3.0 on May 7, 2022
  13. removed
    stale
    on May 7, 2022
  14. 41 remaining items

  15. modified the milestones: 3.9.0, 3.10.0 on Mar 24, 2026
  16. modified the milestones: 3.10.0, 3.11.0 on May 19, 2026
  17. modified the milestones: 3.11.0, backlog on Jul 9, 2026
  18. removed
    enhancement
    on Oct 1, 2026
  19. modified the milestones: backlog, 4.1.0 on Oct 29, 2026
  20. added 4 commits that reference this issue on Oct 29, 2026
    c050d39
    89a94bb
    2b33df1
    0078565
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions