Summary

This import hook makes export a soft keyword, so that it automatically adds to __all__ the relevant names in the following cases:

export class ClassName ...

export def function_name ...

export identifier ... = ...

In a sense, it complements the pep_843 import hook.

Source code

Export as a soft keyword

More to come.

Warning

Do not use continuation characters. The current transformation might not handle them correctly.

Warning

A line that startswith an export statement may not contain a triple quoted string that spans multiple lines.