Coder Social home page Coder Social logo

pycp's Introduction

PyCP

Overview

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.

alt text

Features

  • 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.

Installation

Prerequisites

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

Using the Installation Script

To install PyCP, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/pycp.git
    cd pycp
  2. 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.

Usage

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
    

Contributing

Contributions to PyCP are welcome! Please refer to the CONTRIBUTING.md file for guidelines on how to make contributions.

License

PyCP is released under the MIT License. See the LICENSE file for more details.

Support

For support, feature requests, or bug reports, please open an issue on the GitHub issues page.

Thank you for using PyCP!

pycp's People

Contributors

ehsanrs2 avatar

Stargazers

Dante avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.