Skip to main content

Interesting toolset

Project description

Interesting Toolset Script

中文说明文档

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.

Some Project Configurations

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

Download

Download from pip (Recommended)

pip install qin

Clone the Project

git clone git@github.com:Alndaly/qin-cli.git
cd qin-cli
python setup.py sdist
pip install .

Media File Conversion

qin media convert -i /usr/test.flac -o /usr/test.mp3
  • -i Source file
  • -o Converted file

Download Some Media Files

qin media download -u https://www.bilibili.com/video/BV117411J719 -f mp3
  • -u Video URL
  • -f Video format supports mp3/mp4

If the media file is a video, it will be automatically converted to mp3 format.

video to gif

qin media 2gif -i /usr/test.mp4 -o /usr/test.gif
  • -i path of the source video file
  • -o the path to the gif

media cutting

qin media cut -i /usr/test.mp4 -s 10 -e 20 -o /output.mp4
  • -i The path to the file you want to cut
  • -s The start time of the clip (in seconds)
  • -e The end time of the clip (in seconds)
  • -o The path of the cutted file

File Deletion

qin file delete -p path/to/dir -i test -r
  • -p Parent root directory of the files to be deleted
  • -r Whether to recursively delete subfolders
  • -i The character that must be included in the name of the file to be deleted
  • -f Whether to delete files directly (default is False, files will be moved to the trash folder)

Upload Files to Aliyun OSS

qin file upload -p path/to/your/file
  • -p Path of the file to be uploaded

Convert PDF to PNG

qin file pdf2png -p path/to/your/file
  • -p Path to the PDF file to be converted

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

qin-0.1.0.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

qin-0.1.0-py3-none-any.whl (9.0 kB view hashes)

Uploaded Python 3

Supported by

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