Skip to content

Write up an __all__ for all * imports in openest/generate/stdlib.py #65

@brews

Description

@brews

We're grabbing bloated namespaces from the import *s in openest/generate/stdlib.py.

Would be helpful for a clean API if we could clean up the polluted namespace in stdlib.py. Memory profiling by module namespaces is a messy beast right now because there is so much imported at different levels.

I recommend writing up a global __all__ at the top of the modules, outlining exactly what is exported. This is needed in:

  • openest/generate/base.py
  • openest/generate/daily.py
  • openest/generate/irregular.py
  • openest/generate/yearly.py
  • openest/generate/funcitons.py
  • openest/generate/shortterm.py
  • Also mask the numpy import in stdlib.py by importing it as _np

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions