Skip to content

File objects for Python dump/load #657

Closed

Description

@jeromekelleher

#599 added support for dumping and loading from streams in the C code. We want to add this functionality to the Python api also. This can largely follow the example set in the kastore code.

Activity

  1. added
    enhancement
    on Jun 1, 2020
  2. added this to the Python 0.3.1 milestone on Jun 1, 2020
  3. jeromekelleher commented on Sep 29, 2020

    @jeromekelleher
    MemberAuthor

    This is a good one to do in combination with #14.

  4. added
    Python API
    on Sep 29, 2020
  5. jeromekelleher commented on Sep 29, 2020

    @jeromekelleher
    MemberAuthor

    Notes from #609:

    Semantics should follow what we've done in kastore, where the Python C interface is adapted to use a fileno. This would mean that we should be able to work with any kind of fileobj other than a BytesIO.

    There's a choice to be made in whether we rename the parameter from path to file (we could keep path as a deprecated alias keyword only arg).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Python APIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions