Skip to main content

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynamic-executor-1.2.6.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

dynamic_executor-1.2.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file dynamic-executor-1.2.6.tar.gz.

File metadata

  • Download URL: dynamic-executor-1.2.6.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

Hashes for dynamic-executor-1.2.6.tar.gz
Algorithm Hash digest
SHA256 4a540c3b475ef93820f59cbb1457152b84440cbadda38573ca837cb29eff57ca
MD5 9c206f5e68a2ba3c69fcbe34274e52fa
BLAKE2b-256 a1be14d60c458757189b84e0faf41d1073c8d16d03c190add2a85eec3086612c

See more details on using hashes here.

File details

Details for the file dynamic_executor-1.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamic_executor-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 bbde73cbaaad8ae33fb91f4a67e27477c3f0259db27fb26f6095d5f93b16633e
MD5 0aa9399a227fc5c052ab523ff515ff74
BLAKE2b-256 303aec24c89dd2c63dacc7b6cf585d40d05b46a3616c06a5d8b5dd49e7fcd67c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page