rope.base.pycore
Classes
Functions
|
Module Contents
- class rope.base.pycore.PyCore(project)
- project
- cache_observers = []
- module_cache
- extension_cache
- object_info
- property automatic_soa
- is_python_file(resource)
- get_module(name, folder=None)
Returns a PyObject if the module was found.
- builtin_module(name)
- get_relative_module(name, folder, level)
- get_string_module(code, resource=None, force_errors=False)
Returns a PyObject object for the given code
If force_errors is True, exceptions.ModuleSyntaxError is raised if module has syntax errors. This overrides
ignore_syntax_errorsproject config.
- get_string_scope(code, resource=None)
Returns a Scope object for the given code
- get_python_path_folders()
- find_module(modname, folder=None)
Returns a resource corresponding to the given module
returns None if it can not be found
- find_relative_module(modname, folder, level)
- get_source_folders()
Returns project source folders
- resource_to_pyobject(resource, force_errors=False) rope.base.pyobjectsdef.PyPackage | rope.base.pyobjectsdef.PyModule
- get_python_files()
Returns all python files available in the project
- run_module(resource, args=None, stdin=None, stdout=None)
Run resource module
Returns a rope.base.oi.doa.PythonFileRunner object for controlling the process.
- analyze_module(resource, should_analyze=lambda py: ..., search_subscopes=lambda py: ..., followed_calls=None)
Analyze resource module for static object inference
This function forces rope to analyze this module to collect information about function calls. should_analyze is a function that is called with a PyDefinedObject argument. If it returns True the element is analyzed. If it is None or returns False the element is not analyzed.
search_subscopes is like should_analyze; The difference is that if it returns False the sub-scopes are all ignored. That is it is assumed that should_analyze returns False for all of its subscopes.
followed_calls override the value of
soa_followed_callsproject config.
- get_classes(task_handle=taskhandle.DEFAULT_TASK_HANDLE)
- modname(resource)
- property extension_modules
- rope.base.pycore.perform_soa_on_changed_scopes(project, resource, old_contents)