python-pyodata
python-pyodata copied to clipboard
Support OData Edm.Stream
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.
Is there currently a workaround such that it is possible to load only the parts of the schema that does not include Edm.Stream
?