core module handles application initialization, component management, and lifecycle operations.
Core Class
TheCore class is the central component manager that initializes and coordinates all other modules.
Attributes
Manages shared files and folders
Handles user management and status tracking
Controls user banning and IP filtering
Manages search functionality
Handles file downloads
Manages file uploads
Controls chat room functionality
Manages private messages
Methods
init_components()
Set of component names to enable. If None, all components are enabled.
Whether to run in isolated mode (no network features)
Available components include:
"error_handler", "signal_handler", "cli", "portmapper", "network_thread", "shares", "users", "search", "downloads", "uploads", "chatrooms", "privatechat", and more.start()
start event to all components.
connect()
disconnect()
quit()
Signal type if quit was triggered by a system signal
send_message_to_server()
The message object to send
send_message_to_peer()
Target peer’s username
The message object to send
UpdateChecker Class
Handles checking for application updates.Methods
check()
Global Instance
core instance is available for import and provides access to all application components.