Skip to content

Provide sample code for a very basic client #17

@pfmoore

Description

@pfmoore

I'm finding it hard to understand how the library would be used in practice. In the longer term, this will be covered by the documentation. But for early adopters, having an example of the intended use would be really helpful.

Could an examples directory be added with a very basic client that takes a wheel file and extracts it? I'd go for:

  1. Wheel filename given on the command line
  2. Options for destinations to unpack to (I'd specifically like the example to not use sysconfig or anything that hides the question of "what locations do I need to support" behind what a given Python installation provides).

Including notes about what isn't supported, compared to something like pip (hash checking? script wrappers?) with a brief note describing how clients would typically implement these, would give a much better feel for the scope of the library, as well.

(My personal concern here is that writing script wrappers is out of scope, but it will be hard for clients to implement without assistance to identify what scripts need writing. I'd like to have sample code that offers a concrete example of how that would play out in reality).

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: taskSomething that needs to be done that is not a bug or feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions