PyCP is a command-line utility designed to enhance the file copying process by displaying a dynamic progress bar. This tool helps users monitor the progress of copying large files or directories, providing a more interactive and informative experience compared to traditional copy commands.
- Progress Visualization: Real-time progress bar for ongoing copy operations.
- Recursive Copying: Support for copying entire directory structures.
- Overwrite Control: Options to overwrite existing files or skip them.
- Efficiency: Optimized to handle large files and directories with minimal performance overhead.
Before installing PyCP, you need to ensure the following dependencies are installed:
- Python 3
- Rich Library
- Gzip (for handling man pages)
You can install these on Ubuntu with:
sudo apt update
sudo apt install python3 python3-pip gzip
pip3 install rich
To install PyCP, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/pycp.git cd pycp
-
Run the installation script with root privileges:
sudo ./install.sh
This script will install PyCP to /usr/local/bin
and its man page to /usr/local/share/man/man1
, making it accessible from any terminal.
To copy files or directories using PyCP, you can use the following commands:
-
Copy a single file:
pycp /path/to/source/file /path/to/destination/file
-
Copy a directory recursively:
pycp -r /path/to/source/directory /path/to/destination/directory
-
Use the
--overwrite
flag to overwriting all existing files:pycp --overwrite /path/to/source/file /path/to/destination/file
Contributions to PyCP are welcome! Please refer to the CONTRIBUTING.md file for guidelines on how to make contributions.
PyCP is released under the MIT License. See the LICENSE file for more details.
For support, feature requests, or bug reports, please open an issue on the GitHub issues page.
Thank you for using PyCP!