TabFilePy is a Python library that provides file path auto-completion functionality using shell scripts. It allows users to easily select file paths from the command line with tab completion.
- Cross-platform support: Works on Windows/CMD (
.cmdscript) and Linux/Bash (.shscript) environments. - Dynamic script location handling: Finds and runs the appropriate script from the package directory.
- Easy integration: Simple API for retrieving file paths with tab completion.
- Python 3.9 or higher
- Bash or Command Prompt (depending on OS)
- Install the library
pip install tabfilepy
- Import and initialize the handler
# Example code
import tabfilepy
# Run tab completion and retrieve the selected file
filename = tabfilepy.get_filename()
print(f"Selected file: {filename}")