load plugins from env variable#5524
Conversation
There was a problem hiding this comment.
PR Summary
Added support for loading Reflex plugins through environment variables, enabling runtime plugin configuration via REFLEX_PLUGINS environment variable.
- New
interpret_plugin_envfunction inreflex/environment.pyallows loading plugins using dot-notation format (e.g.,package.module.PluginName) - Added validation for plugin class inheritance and import paths with descriptive error messages
- Implements dynamic plugin instantiation based on environment variable string parsing
1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile
CodSpeed Performance ReportMerging #5524 will not alter performanceComparing Summary
|
masenf
left a comment
There was a problem hiding this comment.
Working for me with 2 local plugins separated by colon
A test case would be nice though, I think we already have some test cases for interpreting other env types in test_config.py (probably should move those to test_environment.py)
|
This should give us some impetus to expand the plugin API to allow for more interesting integrations, like |
masenf
left a comment
There was a problem hiding this comment.
redundant tests can probably be removed from test_config.py now
REFLEX_PLUGINS=reflex.plugins.tailwind_v3.TailwindV3Plugin