Skip to content

passing array=pyexcel.Sheet to pyexcel.save_as is an un-intended use #22

@chfw

Description

@chfw

Hi all,

I just realize that passing array=pyexcel.Sheet is an un-intended use. And these code changes are against the interface between pyexcel-io and pyexcel is a dictionary of two dimensional array. I am sorry that this interface is not documented publicly. The reason for such an interface is to break the tight coupling between pyexcel and pyexcel-io.

https://github.com/pyexcel/pyexcel-text/blob/master/pyexcel_text/__init__.py#L125
https://github.com/pyexcel/pyexcel-text/blob/master/pyexcel_text/__init__.py#L185

I guess this line has played a mis-leading role in it:

https://github.com/pyexcel/pyexcel-text/blob/master/tests/test_io.py#L208

With that said, pyexcel-text is an exception among the pyexcel-io plugins because it also serves as a presentation plugin to pyexcel, in other words, pyexcel-text is a tightly coupled with pyexcel.

So, I will need to find a way to in-corporate the new use cases, either making this un-intended use as intended or implementing them within the interface set out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions