Given the frequent need for various small tools, I plan to create a script library. Currently, it only supports CLI.
Warning
Since I use a Mac, this project is currently only usable on Mac. Other platforms have not been tested yet. If you encounter any issues, please submit an issue.
Note
This project relies on ffmpeg. Please ensure ffmpeg is installed locally.
- The default configuration file is
~/.qin/config.json. - The default temporary trash folder is
~/.qin/trash.
If you need the image upload function of this project, please make sure to configure the oss related fields in the config.json file.
pip install qingit clone git@github.com:Alndaly/qin-cli.git
cd qin-cli
python setup.py sdist
pip install .qin media convert -i /usr/test.flac -o /usr/test.mp3-iSource file-oConverted file
qin media download -u https://www.bilibili.com/video/BV117411J719 -f mp3-uVideo URL-fVideo format supports mp3/mp4
If the media file is a video, it will be automatically converted to mp3 format.
qin media 2gif -i /usr/test.mp4 -o /usr/test.gif-ipath of the source video file-othe path to the gif
qin media cut -i /usr/test.mp4 -s 10 -e 20 -o /output.mp4-iThe path to the file you want to cut-sThe start time of the clip (in seconds)-eThe end time of the clip (in seconds)-oThe path of the cutted file
qin file delete -p path/to/dir -i test -r-pParent root directory of the files to be deleted-rWhether to recursively delete subfolders-iThe character that must be included in the name of the file to be deleted-fWhether to delete files directly (default is False, files will be moved to the trash folder)
qin file upload -p path/to/your/file-pPath of the file to be uploaded
qin file pdf2png -p path/to/your/file-pPath to the PDF file to be converted
qin ai model -p path/to/your/file-p: The path to the file for which you want to retrieve information
qin ai hash -p path/to/your/file-p: The path to the file for which you want to retrieve the hash
Get preview images of all model files in the current directory and save them by name in the current directory
qin ai preview -p path/to/the/dir -r-pThe path to the folder from which you want to get preview images-rWhether to recursively include subfolders
qin git pull -p path/to/the/dir -r-pThe root directory of the git repositories to be updated (if-p path/to/the/diris not specified, the default is the current directory)-rWhether to recursively update subfolders, default isFalse