Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add iter()/aiter() for filter-based lazy iteration

未关闭
#489 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

@Aryan-Pardeshi 已经在做这个了。

开始于 2026年8月9日。

  • #682 来自 @Aryan-Pardeshi —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
52/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python, redis
领域
databases

调研方向

先阅读现有的 paginate() 和 scan_by_pattern() 实现及其集成测试,然后跟踪同步和异步 API 的索引过滤表达式路径。完成的标准是:选择性表达式和通配符表达式能够延迟流式传输完整且确定性的键覆盖范围,而无需将完整结果物化,并且集成测试验证两个迭代器。

由索引模型根据 Issue 内容生成。

描述

enhancement

Summary

Add lazy filter-based ID/key iteration APIs for index maintenance and agent pipelines.

Level: Intermediate

Current State

  • paginate() yields full document records, not IDs/keys only.
  • scan_by_pattern() works on raw Redis key patterns and returns a materialized list.
  • No index filter-expression based generator for IDs/keys.

Proposed Change

  • Add lazy iterators over keys included in an index in Redis optionally applying some filtering:
    • iter(filter_expression...)
    • aiter(filter_expression,...)
  • Yield as a generator of said keys?

Definition of Done

  • Iteration is lazy (streaming batches, no full list required).
  • Works for selective and wildcard filter expressions.
  • Integration tests verify complete and deterministic coverage.

Out of Scope

  • Arbitrary cursor checkpoints or resumable iterators.
主要语言
Python
星标
432
派生
116
平均合并
5 天 22 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

redis/redis-vl-python 的其他 Issue

查看 redis/redis-vl-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。