//python/api:api.bzl

Public, analysis phase APIs for Python rules.

py_common.get(ctx)

Get the py_common API instance.

NOTE: to use this function, the rule must have added py_common.API_ATTRS to its attributes.

Args:
  • ctx(ctx)

    current rule ctx

Returns:

PyCommonApi