Python Code Masking Tool
Mask and anonymize class names, function names, variable names, and values in the browser while preserving the structure of your Python code.
Font size
About this tool
Before sharing your Python code, you can replace project-specific identifiers and values with alternative values while preserving indentation and syntax.
Features
- Python 3 general syntax, type hints, and decorators
- Masking/anonymization of classes, functions, variables, strings, numbers, and comments
How to use
- Paste the Python code into the input field.
- Select what to mask and how to handle comments.
- Check and copy the masking results.
- You can remove masking individually by right-clicking on the target area of the masking result, and reapply by right-clicking again.
Limitations
- It does not guarantee complete parsing equivalent to the Python execution environment.
- Visually check dynamically generated names and structure within strings.
Privacy: The input contents and processing results are processed within the browser and are not sent to or saved on the Develop Tools server.