Skip to main content

A portable command-line tool for copying and moving files and directories with progress indication.

Project description

⚡ am-okay CLI

A portable command-line tool for copying and moving files and directories with progress indication.
Supports slot operations, default operations, cut & copy, progress bar, and JSON persistence.


📚 Summary

✨ General features

  • Prepare and execute copy and cut operations.
  • Store operations in slots or use a default operation.
  • Execute multiple operations at once.
  • Reset or delete prepared operations.
  • Provides a progress bar during file transfers.
  • Persist prepared operations in JSON for later use.
  • Fully portable CLI tool.
  • Display detailed filesystem information (size, permissions, dates, ...etc) for files and directories.

💾 Installation

✅ Install via pip (recommended)

am-okay is published on PyPI and can be installed using the official Python package manager:

pip install am-okay

🛠️ Install from source via pip (quick development/test)

git clone https://github.com/baldeuniversel/am-okay.git
cd am-okay
pip install -r requirements.txt

🛠️ Install from source using Poetry (full development / contribution)

git clone https://github.com/baldeuniversel/am-okay.git
cd am-okay
poetry install
poetry run am-okay --help

🎯 Use cases

🔢 Use cases (slot operations)

Prepare a copy operation for the slot 0

am-okay --slot 0 --copy file1.txt file2.txt dirA

Prepare a cut operation for the slot 1

am-okay --slot 1 --cut dirB file3.txt

Print the prepared operation stored in the slot 0

am-okay --slot 0 --stat

Print prepared operations for slot indices from 0 to 1 (inclusive)

am-okay --slot 0-1 --stat

Print the prepared operations stored in slots 0 and 1

am-okay --slot 0,1 --stat

Print all the prepared operations stored in slots

am-okay --slot all --stat

Execute the prepared operation for the slot 0 (copy)

am-okay --slot 0 --paste dest/

Execute the prepared operation for the slot 1 (cut)

am-okay --slot 1 --paste dest/

Execute the prepared operations for slot indices from 0 to 1 (inclusive)

am-okay --slot 0-1 --paste dest/

Execute the prepared operations stored in slots 0 and 1

am-okay --slot 0,1 --paste dest/

Reset/delete the prepared operation for the slot 0

am-okay --slot 0 --reset

Reset/delete the prepared operations for slot indices from 0 to 1 (inclusive)

am-okay --slot 0-1 --reset

Reset/delete the prepared operations stored in slots 0 and 1

am-okay --slot 0,1 --reset

Reset/delete all prepared operations stored in the slots

am-okay --slot all --reset

🏷️ Use cases (default operations)

Prepare a copy operation

am-okay --copy file1.txt dirA

Prepare a cut operation

am-okay --copy file2.txt dirB

Execute the prepared default operation

am-okay --paste dest/

Print the prepared default operation

am-okay --stat

Reset/delete the prepared default operation

am-okay --reset

Immediate preparation and execution (copy)

am-okay --copy file3.txt dirC --paste dest/

Immediate preparation and execution (cut)

am-okay --cut file4.txt dirD --paste dest/

📁 Use cases (filesystem information)

Display information about a file

am-okay --info file5.txt

Display information about a directory

am-okay --info dirE

Display information about multiple files or directories

am-okay --info file6.txt dirF file7.txt dirG

👤 About the Author

Amadou Baldé
Developer/Programmer ... | Open Source Contributor

Connect with me:

Feel free to reach out if you'd like to collaborate on a project or discuss Python development !


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🔝 Back to top

Project details


Download files

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

Source Distribution

am_okay-1.1.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

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

am_okay-1.1.0-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file am_okay-1.1.0.tar.gz.

File metadata

  • Download URL: am_okay-1.1.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for am_okay-1.1.0.tar.gz
Algorithm Hash digest
SHA256 20c2d9a9cfda41a934a6612f7b8297edfccd92a3ca84c7b2138dbaec0f3e49b1
MD5 6bb58256724fd64f1ae5ee89a0bd6fc3
BLAKE2b-256 5eec97d07b477ad8bdc1592a403149602344187bd2bafca6ed5ab5171b32e490

See more details on using hashes here.

File details

Details for the file am_okay-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: am_okay-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.17.0-14-generic

File hashes

Hashes for am_okay-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97816d64943e891327354444713f3ac2b751c938f68edeaadf473e7406bc7184
MD5 3f10c856f87bcca1847a9e5bacf9d52a
BLAKE2b-256 3e7c47102a0658fe98a473fb04689224de6dab0571eed7dc37b64fc02fd7d5d1

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