Skip to content

Tesla2000/dynamic-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic-executor library for changing python code during runtime

Remember this moment when your test ran and after a few minutes failed on some seemingly obvious error so you had to fix it, than restart it just to see it fail only a few lines of code further? If not greate, but if yes be sure to check dynamic executor which gracefully resolves such problems.

Dynamic python is ment to be used in test development for creating and updating tests or wherever the need arises to change the code during runtime and have results visible instantaneously without restarting. The main functionality is provided by DynamicModeExecutor().execute generator that reloads all project-root modules (neither builtin not venv modules are reloaded).

Documentation

Check out documentation.

Installation

You can install the dynamic-executor package using pip:

pip install dynamic-executor

Or by cloning the repository directly:

git clone git@github.com:Tesla2000/dynamic_executor.git

Access

PyPi

GitHub

Usage

You can go through video tutorial to check utilities of Dynamic Executor tutorial.

from dynamic_executor import DynamicModeExecutor
for error_message in DynamicModeExecutor().execute(
        locals(), globals()
    ):
    pass

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages