User Guide
Advanced Usage
Recursive Processing
To process all Python files in a directory and its subdirectories:
segmented-docstring split path/to/directory -r
Custom Output Directory
Specify a custom output directory:
segmented-docstring split path/to/your_file.py -o path/to/output
Dry Run
Perform a dry run to see what would happen without making any changes:
segmented-docstring split path/to/your_file.py --dry-run
Configuration
Segmented Docstring can be configured using a .segmentedrc
file in your project root. Here's an example configuration:
[segmented_docstring]
source_folder = "src"
output_folder = "output"
barecode_extension = ".code.py"
docstring_extension = ".docs.py"
recursion = true
dry_run = false
Best Practices
- Version Control: Always commit your changes before splitting or combining files.
- Consistent Usage: Use Segmented Docstring consistently across your project for best results.
- Documentation: Keep your docstrings up-to-date and in sync with your code.
- Backup: Regularly backup your project, especially when using tools that modify your files.
Troubleshooting
If you encounter any issues:
- Ensure you're using the latest version of Segmented Docstring.
- Check your configuration file for any errors.
- Use the
--verbose
flag for more detailed output. - If the problem persists, please open an issue on our GitHub repository.
For more detailed information about the API, please refer to our API Reference.