Skip to main content

Interesting Toolset Script

中文说明文档

Given the frequent need for various small tools, I plan to create a script library. Currently, it only supports CLI.

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

pip install qin

Method2: 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

Get Model Information from Model File (CivitAI)

qin ai model -p path/to/your/file
  • -p: The path to the file for which you want to retrieve information

Get Hash of Model File

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
  • -p The path to the folder from which you want to get preview images
  • -r Whether to recursively include subfolders

Update all git repositories in a directory

qin git pull -p path/to/the/dir -r
  • -p The root directory of the git repositories to be updated (if -p path/to/the/dir is not specified, the default is the current directory)
  • -r Whether to recursively update subfolders, default is False

Metadata

Release files for qin 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qin 0.1.3
File Size Uploaded Provenance Actions
qin-0.1.3.tar.gz 10.6 kB Without provenance Details for qin-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qin 0.1.3
File Interpreter ABI Platform Actions
qin-0.1.3-py3-none-any.whl Python 3 none any Details for qin-0.1.3-py3-none-any.whl

Total release size: 22.1 kB

Release files / qin-0.1.3.tar.gz

Download URL qin-0.1.3.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a06d0d3cf8f0fdd563cb79e657ddd5ea666bb65ea97b623a87b676988f9003c9
BLAKE2b-256 checksum
How to use checksums
5698aae0ecb64529b0922b679e9accc22763b108dceba88c88ffe5426993f6ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Release files / qin-0.1.3-py3-none-any.whl

Download URL qin-0.1.3-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
168e08c93d59fb57f9e0afd28e059d9ed0e88e97611326c05966919140c87433
BLAKE2b-256 checksum
How to use checksums
04ad0b2f3229af3f118b86323483de754ac8ab941f58bf368c660daf006bf0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.19

Security for qin 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page