pex.post.method

Module Contents

class pex.post.method.Method

Bases: NamedTuple

name: str
platform: pex.platform.types.Platform
handler: pex.platform.types.Any
pex.post.method.select_method(methods: list, platform: pex.platform.types.Platform | str, method: str = '') Method | None

Select appropriate method for platform or check if method compatible.

Parameters:
  • methods (list) – list of methods

  • platform (Union[Platform, str]) – platform to check compatibility with

  • method (str) – method to check if presented

Return Method:

method