Now creates a new list of modules from sys.modules after the import of the modules, rather than reuse of the list from pydoc and objects from importlib. This increases the size of the module list as sub-modules are included. The include_modules_fullname list in settings has less items now as those items will be in the new module list. This should also benefit the inspection of site-packages as every module imported will be in the list.
My URLs added to gen_python_3_api.py similar to how you placed it in v1.2.
v1.3 summary highlight:
Added write comment header of generator details in write_properties(). This saves you from manually adding the details to the generated python3_keywords.properties file.
I added Platform as you appear to use win32 for your api files, as modules for linux or other platforms are absent i.e. module CDROM. So, non win32 users know to generate their own api files for their platform.
History:
v1.4
Fix if callable in inspect_members_more as was always True.
Change inspect_members_more from yielding to instead return a list.
Moved import code into _import_modules() and use sys.modules to get module names and objects.
Update from v1.2 to v1.4.
v1.4 summary highlight:
Now creates a new list of modules from
sys.modules
after the import of the modules, rather than reuse of the list frompydoc
and objects fromimportlib
. This increases the size of the module list as sub-modules are included. Theinclude_modules_fullname
list in settings has less items now as those items will be in the new module list. This should also benefit the inspection of site-packages as every module imported will be in the list.My URLs added to
gen_python_3_api.py
similar to how you placed it in v1.2.v1.3 summary highlight:
Added write comment header of generator details in
write_properties()
. This saves you from manually adding the details to the generatedpython3_keywords.properties
file.Example:
I added
Platform
as you appear to usewin32
for your api files, as modules forlinux
or other platforms are absent i.e. moduleCDROM
. So, nonwin32
users know to generate their own api files for their platform.History:
v1.4
Fix if callable in inspect_members_more as was always True.
Change inspect_members_more from yielding to instead return a list.
Moved import code into _import_modules() and use sys.modules to get module names and objects.
Added setting exclude_modules_startswith_underscore.
Generate stats added which counts modules, api and keywordclasses.
Added 2 modules to exclude_modules_fullname list.
Removed multiple modules from include_modules_fullname as sys.modules includes them.
Updated _get_doc() and _filter_doc() with doc fixes and adjustments.
v1.3
Maintenance. Tidied code. Sorted data in lists.
Removed unused variable name in _get_signatures().
Removed deprecated module names from exclude_modules_fullname list and added pydoc_data module.
Added 4 modules to include_modules_fullname list and added a related entry to custom_signatures.
Added condition to skip use of dir() in _filter_doc().
Added write comment header of generator details in write_properties().
Set signatures to empty list instead of empty string in write_autocomplete_xml() which removed a boolean check.
Reduce common keywords False, None and True between keywordclass0 and keywordclass1.
Check at my Github or my Home page for further information.