Skip to content

API: Allow dir(astropy) to list all subpackage names #17589

Description

@pllim

What is the problem this feature will solve?

When one is offline and unable to check online docs, one wishes to use dir(astropy) to list all available subpackages for discovery.

Describe the desired outcome

dir(astropy) to list things like "stats".

As of astropy 7.1.dev, it only listed the following:

['__bibtex__',
 '__builtins__',
 '__cached__',
 '__citation__',
 '__dir_inc__',
 '__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '__version__',
 'astronomical_constants',
 'conf',
 'config',
 'extern',
 'find_api_page',
 'log',
 'logger',
 'online_docs_root',
 'online_help',
 'physical_constants',
 'system_info',
 'test',
 'tests',
 'utils',
 'version']

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions