GynTree Configuration Guide¶
This guide covers the various configuration options available in GynTree, allowing you to customize the tool to your specific needs.
Table of Contents¶
- General Settings
- Analysis Configuration
- Exclusion Rules
- Visualization Options
- Performance Tuning
- Advanced Configuration
General Settings¶
Application Preferences¶
Location: config/preferences.json
language
: Set the interface language (e.g., "en" for English)theme
: Choose between "light" and "dark" themesauto_save
: Enable/disable automatic saving of projects (true/false)
Example:
Analysis Configuration¶
Scan Depth¶
Location: config/analysis_settings.json
max_depth
: Set the maximum directory depth for analysis (-1 for unlimited)follow_symlinks
: Choose whether to follow symbolic links (true/false)
Example:
Exclusion Rules¶
Global Exclusions¶
Location: config/global_exclusions.json
Define patterns for files and directories to be excluded globally:
Project-Specific Exclusions¶
These are managed through the GUI and stored in individual project files.
Visualization Options¶
Tree View Settings¶
Location: config/visualization_settings.json
default_expanded_levels
: Number of levels to expand by defaultnode_spacing
: Adjust the spacing between tree nodes
Example:
Performance Tuning¶
Analysis Optimization¶
Location: config/performance_settings.json
chunk_size
: Adjust the number of items processed in each batchuse_multiprocessing
: Enable/disable multiprocessing for large directories
Example:
Advanced Configuration¶
Custom Exclusion Services¶
To add support for new file types or specialized exclusion rules:
- Create a new Python file in
src/services/auto_exclude/
- Implement a class that inherits from
ExclusionService
- Add the new service to
ExclusionServiceFactory
insrc/services/ExclusionServiceFactory.py
Example:
from services.ExclusionService import ExclusionService
class CustomExclusionService(ExclusionService):
def get_exclusions(self):
# Implement custom exclusion logic here
pass
# Add to ExclusionServiceFactory
service_map['custom'] = CustomExclusionService
Logging Configuration¶
Location: config/logging_config.json
Adjust logging levels and output formats:
{
"version": 1,
"disable_existing_loggers": false,
"handlers": {
"file": {
"class": "logging.FileHandler",
"filename": "gyntree.log",
"level": "DEBUG",
"formatter": "detailed"
}
},
"root": {
"level": "INFO",
"handlers": ["file"]
}
}
For more information on using these configurations, refer to the User Guide. If you encounter any issues, check our FAQ or open an issue on GitHub.