pynsive:微型 Python 反射和插件库

时间:2021-06-15 13:16:20
【文件属性】:
文件名称:pynsive:微型 Python 反射和插件库
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-15 13:16:20
Python Pynsive 发音为“沉思” 这是一个简单的插件库,它使用sys.meta_path列表以及自定义查找器和加载器定义来挂钩 Python 导入过程。 有关导入过程挂钩的更多信息,请参阅: 文档 例子 创建和使用插件上下文 import pynsive plugin_manager = pynsive . PluginManager () plugin_manager . plug_into ( '/some/path' ) try : import myplugins . module . plugin_a as plugin print ( 'Imported plugin module: {1}' , plugin ) finally : plugin_manager . destroy () 发现 Python 模块 Pynsive 允许您在
【文件预览】:
pynsive-master
----MANIFEST.in(66B)
----README.rst(887B)
----docs()
--------conf.py(8KB)
--------usage.rst(3KB)
--------changelog.rst(982B)
--------pynsive.rst(570B)
--------pynsive.plugin.rst(444B)
--------Makefile(7KB)
--------index.rst(1KB)
----tools()
--------dev-requires(0B)
--------install-requires(0B)
--------doc-requires(7B)
--------test-requires(38B)
----tests()
--------manager_test.py(506B)
--------__init__.py(0B)
--------plugin_test.py(6KB)
----tox.ini(208B)
----pynsive()
--------common.py(348B)
--------reflection.py(8KB)
--------__init__.py(82B)
--------plugin()
----LICENSE(1KB)
----VERSION(6B)
----setup.py(1KB)
----.gitignore(130B)
----README.md(4KB)

网友评论