API Reference¶
Note
Comprehensive API documentation will be added in a future release. The public API is still stabilizing.
Module Overview¶
The SpecSync package consists of the following primary modules:
Core Modules¶
specsync.cli- Command-line interface and command handlersspecsync.config- Configuration management and validationspecsync.sync- Core synchronization logic for push/pull operationsspecsync.models- Data models and type definitions
Supporting Modules¶
specsync.frontmatter- YAML frontmatter parsing and manipulationspecsync.selector- File selection and filtering logicspecsync.fs- File system operations and Git integrationspecsync.prompt- Interactive user prompts for conflict resolutionspecsync.logging- Logging utilitiesspecsync.exceptions- Custom exception types
Command-Line Interface¶
The primary entry point is through the command-line:
from specsync.cli import main
# Run with custom arguments
main(["push", "--dry-run"])
Configuration API¶
from specsync.config import load_config
# Load configuration with defaults
config = load_config(args=None, command="push")
Future Development¶
The following enhancements are planned:
Stable public Python API for programmatic use
Plugin system for custom filters and transformations
Webhook support for automated synchronization
REST API for integration with other tools
For the latest updates, see the project repository.