Skip to main content

A little commandline tool to copy and paste multiple files and directories to single directory with use of configuration

Project description

copy-to

A little python script i use in conjunction with git so you can easily copy config files from anywhere in an instant to do whatever with!

Depends on argcomplete

Install it with:

pip3 install argcomplete
python3 -m pip install --user copy-to

open your shell and run

activate-global-python-argcomplete

for installing pythoncompletions globally.

Then add it to path in ~/.bashrc using default python package base

export PATH=$PATH:$(python -m site --user-base)/bin/

List configured paths and files with copy-to list myname or just copy-to list

Add a config with copy-to add myname destination_folder sourcefile1 (sourcefolder1 sourcefile2 sourcefile3 sourcefolder2/*) ...

Copy the files by running copy-to run myname1 (myname2)

Delete conf name with copy-to delete myname1 (myname2)

Add sources with copy-to add_source myname folder1 file1

Reset source and destination folders copy-to reset_source myname and copy-to reset_destination myname

Groups are based on names. For copying to multiple directories in one go. Takes up 'group' as config namespace.

Add groupname copy-to add_group mygroupname myname1 myname2

Delete groupname copy-to delete_group mygroupname

Configuration files at ~/.config/copy-to/confs.json for Linux

Windows and mac not tested

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

copy-to-1.0.12.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

copy_to-1.0.12-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file copy-to-1.0.12.tar.gz.

File metadata

  • Download URL: copy-to-1.0.12.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for copy-to-1.0.12.tar.gz
Algorithm Hash digest
SHA256 7d61aef704280847b2eb044e8d8ab7fc239f2e87809baa5ef2189d80b1c69583
MD5 94752448c7e74419664d66e470647290
BLAKE2b-256 f32e7fabe56d5091c630d5375386cc71627ab31bab65ba1e9a56f07e9d151a74

See more details on using hashes here.

File details

Details for the file copy_to-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: copy_to-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for copy_to-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 bc548b8fe592f928b7fce035d6a5c6eaa16a93081b791933d409ff25244559d0
MD5 672aa075253c6cfeaa875c3d1d28f4ae
BLAKE2b-256 0ca6de31bbc8cbf9a747f780f60c6943f442d6527ea968ec34aaec214a8cee17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page