obscurepy package¶
Subpackages¶
- obscurepy.handlers package
- Submodules
- obscurepy.handlers.arg_handler module
- obscurepy.handlers.assign_handler module
- obscurepy.handlers.attribute_handler module
- obscurepy.handlers.call_handler module
- obscurepy.handlers.classdef_handler module
- obscurepy.handlers.constant_handler module
- obscurepy.handlers.functiondef_handler module
- obscurepy.handlers.handler module
- obscurepy.handlers.name_handler module
- Module contents
- obscurepy.scripts package
- obscurepy.utils package
Submodules¶
obscurepy.obfuscator module¶
- class obscurepy.obfuscator.Obfuscator(filepath=None, plugins=False, project_directory=None, output_directory='.', log=False, verbose=False)[source]¶
Bases:
object
Main obfuscator class for managing files, handlers and other processes
- Attributes:
filepath (str): Single file to be obscured
plugins (bool): Boolean representing whether or not load custom handlers
project_directory (str): The directory of the project to be obscured
output_directory (str): The directory to output the obscured code
filepaths (list): List of filenames to be obscured
chain (:obj: `Handler`): A single handler which is the first in the chain of handlers
tree (:obj: `ast.Module`): Reference to the ast tree created from text attribute
- Args:
filepath (str): Single file to be obscured
plugins (bool): Boolean representing whether or not load custom handlers
project_directory (str): The directory of the project to be obscured
output_directory (str): The directory to output the obscured code
- build_output_directories()[source]¶
Recreates the project directory structure in the output directory
- get_project_filepaths()[source]¶
Sets the filepaths property to a list of filepaths found in the project directory