Module for making changes in code during runtime
Project description
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
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dynamic-executor-1.2.5.tar.gz
.
File metadata
- Download URL: dynamic-executor-1.2.5.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb730e05fd97d42616f8fd3ae2475be0aec5eebe0f27d8cbaa053d724ab6b746 |
|
MD5 | 94cd5729ef66015a619c2c186a8e6baa |
|
BLAKE2b-256 | 479e82f47cfd4f0bc5e90b2f9c213d77bbe3f0efd6939664bf17525212192f98 |
File details
Details for the file dynamic_executor-1.2.5-py3-none-any.whl
.
File metadata
- Download URL: dynamic_executor-1.2.5-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3651c67adac5d87581092ca7484aa26a822fe30f3dbe4baa9a273a9ceabc441 |
|
MD5 | d351a18b4d89847c1bdb492c6ffbdd90 |
|
BLAKE2b-256 | 4ba356133948bf96dbde58b79457c62ffa5de3b678757794ae5e926e60c977f3 |