https://github.com/enthought/codetools
Tools for Python code analysis and execution.
https://github.com/enthought/codetools
Last synced: 8 months ago
JSON representation
Tools for Python code analysis and execution.
- Host: GitHub
- URL: https://github.com/enthought/codetools
- Owner: enthought
- License: other
- Created: 2011-01-28T03:09:01.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T16:15:39.000Z (almost 2 years ago)
- Last Synced: 2025-10-10T00:34:24.482Z (9 months ago)
- Language: Python
- Homepage:
- Size: 1.53 MB
- Stars: 52
- Watchers: 54
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
============================================
codetools: code analysis and execution tools
============================================
The codetools project includes packages that simplify meta-programming
and help the programmer separate data from code in Python. This
library contains classes that allow defining simple snippets, or
"blocks", of Python code, analyze variable dependencies in the code
block, and use these dependencies to construct or restrict an
execution graph. These (restricted) code blocks can then be executed
in any namespace. However, this project also provides a
Traits-event-enhanced namespace, called a "context", which can be used
in place of a vanilla namespace to allow actions to be performed
whenever variables are assigned or retrieved from the namespace. This
project is used as the foundation for the BlockCanvas project.