Skip to main content

Quickly generating unique url of a picture for markdown files.

Project description

https://img.shields.io/pypi/l/qu.svg https://img.shields.io/pypi/v/qu.svg https://img.shields.io/pypi/pyversions/qu.svg https://travis-ci.org/cls1991/qu.svg?branch=master

Quickly generating unique url of a picture for markdown files.

☤ Quickstart

Upload an image file to qiniu:

$ qu up /somewhere/1.png
$ qu up /somewhere/1.png 2.png

Set configuration of qiniu:

$ qu wc --access_key=AK --secret_key=SK --bucket_name=BN --domain_name=DN

List local configuration of qiniu:

$ qu sc
$ qu sc --format-type json

☤ Installation

You can install “qu” via pip from PyPI:

$ pip install qu

☤ Usage

$ qu --help
Usage: qu [OPTIONS] COMMAND [ARGS]...

  Quickly generating unique url of a picture for markdown files.

Options:
  --help  Show this message and exit.

Commands:
  dc      Clear configuration of qiniu.
  sc      Show configuration of qiniu.
  up      Upload an image to qiniu.
  wc      Set configuration of qiniu.


$ qu wc --help
Usage: qu wc [OPTIONS]

  Set configuration of qiniu.

Options:
  -ak, --access_key TEXT   qiniu access_key.
  -sk, --secret_key TEXT   qiniu secret_key.
  -bn, --bucket_name TEXT  qiniu bucket_name.
  -dm, --domain_name TEXT  qiniu domain_name.
  --help                   Show this message and exit.


$ qu sc --help
Usage: qu sc [OPTIONS]

  Show configuration of qiniu.

Options:
  --format-type [json|xml]  output format type.
  --help                    Show this message and exit.

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

qu-1.2.5.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file qu-1.2.5.tar.gz.

File metadata

  • Download URL: qu-1.2.5.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for qu-1.2.5.tar.gz
Algorithm Hash digest
SHA256 09ef1dd416ddffda742c57a7e53ba62290e9ba85e7aa4cc301e3d658a342ae26
MD5 df010025d1e78244b66ed856d1c05bcc
BLAKE2b-256 192a9d57734c544c33d240a42776719eb1ef7d6961720e3ec12b7b47c8e1f04e

See more details on using hashes here.

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