frictionlessdata / datapackage-py

A Python library for working with Data Packages.
https://frictionlessdata.io
MIT License
189 stars 44 forks source link

Support file objects as a `resource.path`? #194

Closed lyschoening closed 3 years ago

lyschoening commented 6 years ago

I would like to generate data packages on the fly in memory while including CSV files in the ZIP file generated by Package.save(). Unfortunately, that doesn't seem possible right now because the Resource descriptor requires a "path" string. Would it be possible to support providing a file-like object instead of only a "path" here?

roll commented 6 years ago

@lyschoening It's something to think about because it will be a non-standard extension for the specs on the implementation level.

vincentchevrier commented 5 years ago

Also looking for this functionality.

roll commented 3 years ago

In Frictionless Framework it's possible to provide any data source acceptable by Table to resource.data. Please try it :+1: