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

Support OData Edm.Stream

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

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
30/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
api

调研方向

从 OData 流规范以及 pyodata/v2/service.py 中第 142 行附近引用的部分开始。查看 PR #145 和 issue 的讨论,以了解针对小文件提出的修复方案,以及为什么需要更广泛的支持。完成的内容应包括针对 Edm.Stream 属性(包括大文件)的明确定义且经过测试的方案。

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

描述

enhancement

Metadata can expose some property as stream. Imagine PDF file, images or even video files. Python core 'io' module seems like good place to start, especially when working with service returning large files.

odata spec:
https://www.odata.org/blog/enhancing-odata-support-for-streams/

code reference point:
https://github.com/SAP/python-pyodata/blob/3975ed5365b55936872d8e6722545fdf2c481e80/pyodata/v2/service.py#L142

Quick fix for small files seems to be the PR #145 (sample metadata or network log was not provided, so just guessing). But when tried to write the test by myself for this PR and investigated possible usage scenario, found that the problem is bigger.

主要语言
Python
星标
269
派生
100
平均合并
3 天 3 小时
30 天内合并 PR
4

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

SAP/python-pyodata 的其他 Issue

查看 SAP/python-pyodata 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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