What's new
This release adds support for passing a string or instance of a `Path` object when uploading files or creating a notebook output table. For example:
py
Before, still supported:
with open("./data.csv", "rb") as f:
upload = table.upload("data.csv").create(f)
New
upload = table.upload("data.csv").create("./data.csv")
Breaking
Previously, there was seldom-used functionality where you could pass a string as the first argument to `Upload.create()`, in order to upload that content as a file. All strings are now interpreted as a file path, in order to upload raw content, pass the argument as raw bytes:
py
table.upload(name="some.csv").create(
note the b' to start the string, signaling that this is binary content.
content=b'a,b\n1,2\n3,"4\n5"',
type="delimited"
)
More info
feat:add support for passing filepath to uploads by imathews in https://github.com/redivis/redivis-python/pull/50
**Full Changelog**: https://github.com/redivis/redivis-python/compare/v0.16.4...v0.17.0