Module pluginconf.flit
monkeypatches flint to use pluginconf sources for packaging
+monkeypatches flit to use pluginconf sources for packaging with a
+pyproject.toml
like:
[build-system]
+requires = ["pluginconf", "flit"]
+build-backend = "pluginconf.flit"
+
+[project]
+name = "foobar"
+
+Can be invoked per flit-pluginconf build
or python -m build
.
Package pluginconf
Plugin meta extraction and module lookup
+-
+
- Main function
plugin_meta(filename=…)
unpacks +meta fields +into dictionaries.
+ - Other utility code is about module location, but requires +some initialization. +
Sub-modules
-
@@ -32,11 +39,12 @@
-
Dependency validation and consistency checker for updates
pluginconf.flit
-
-+
monkeypatches flint to use pluginconf sources for packaging …
monkeypatches flit to use pluginconf sources for packaging with a +
pyproject.toml
like: … pluginconf.gui
-
PySimpleGUI window to populate config dict via plugin options …
@@ -67,10 +75,23 @@
meta
:dict
- input plugin meta data (invoke once per plugin)
module
:str
- basename of meta: blocks plugin file
+def all_plugin_meta()
+
This is a trivial wrapper to assemble a complete dictionary +of available/installed plugins. It associates each plugin name +with a its meta{} fields.
+Returns
+-
+
dict
:names to meta data dict
+- +
def get_data(filename, decode=False, gzip=False, file_base=None)
Extract plugin meta data block from different sources:
Parameters
filename
:str
-- read literal files, or .pyz contents +
- Read literal files, or .pyz contents.
src
:str
-- from already uncovered script code +
- From already uncovered script code.
module
:str
-- lookup per pkgutil, from plugin_base or top-level modules +
- Lookup per pkgutil, from plugin_base or top-level modules.
frame
:int
-- extract comment header of caller (default) +
- Extract comment header of caller (default).
extra_base
:list
-- additional search directories +
- Additional search directories.
max_length
:list
-- maximum size to read from files +
- Maximum size to read from files.
Returns
-
-
dict
:key-value pairs
ofcomment fields, config: preparsed
+dict
:Extracted comment fields, with config: preparsed
Classes
+-
+
+class PluginMeta +(*args, **kwargs) +
+-
++
Plugin meta data, as dictionary with alternative .property access. +Returned for each
plugin_meta()
result, and config: options. +Non-existent .fieldnames just resolve to""
.Ancestors
+-
+
- builtins.dict +
+