NiklasRosenstein / python-docspec

Docspec is a JSON object specification for representing API documentation of programming languages.
https://niklasrosenstein.github.io/python-docspec/
Other
16 stars 6 forks source link

Support PEP 420 namespace packages when loading all modules in a package #54

Closed NiklasRosenstein closed 2 years ago

NiklasRosenstein commented 2 years ago

Is your feature request related to a problem? Please describe.

docspec-python does not currently load the contents of implicit namespace packages as it relies on a folder having an __init__.py file to recognize it as a package.

Describe the solution you'd like

Do not test for __init__.py, just load all .py files in a directory and assume an implicit namespace package if at least one module or another package, eventually also implicit, exists inside.

NiklasRosenstein commented 2 years ago

Closed by #62