# weblaze
<p align="center">
<img src="https://github.com/cybershang/weblaze/blob/93de39f2c842a900a7b31046724b30459f59314e/docs/media/weblaze.gif" width="360"/>
</p>
<p align="center">
<a href="https://pypi.org/project/weblaze/"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/weblaze"></a>
<a href="https://pypistats.org/packages/weblaze"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dw/weblaze"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
</p>
**Usage**:
```console
$ weblaze [OPTIONS] COMMAND [ARGS]...
```
**Options**:
- `--install-completion`: Install completion for the current shell.
- `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
- `--help`: Show this message and exit.
**Commands**:
- `edit`: Edit the configuration file in the...
- `init`: Initialize and generate a configuration...
- `run`: main function
## Configuration
```yaml
backblaze:
application_key_id: ***
application_key: ***
bucket_name: ***
local:
compressor: ***\cwebp.exe
```
## Commands
### `edit`
Edit the configuration file in the system's default editor.
**Usage**:
```console
$ edit [OPTIONS]
```
**Options**:
- `--help`: Show this message and exit.
### `init`
Initialize and generate a configuration file in the user's .config directory.
**Usage**:
```console
$ init [OPTIONS]
```
**Options**:
- `--help`: Show this message and exit.
### `run`
main function
**Usage**:
```console
$ run [OPTIONS]
```
**Options**:
- `-i, --local-directory TEXT`: Path to the local directory where images are stored [default: ./]
- `--compress-max INTEGER`: max workers to compress [default: 3]
- `--upload-max INTEGER`: max workers to upload [default: 3]
- `--help`: Show this message and exit.
```mermaid
flowchart TD
w(weblaze) --> 1.jpg --> cwebp1(cwebp 1)
w --> 2.jpg --> cwebp2(cwebp 2)
w --> 3.jpg --> cwebp3(cwebp 3)
cwebp1 --> |compress| 1.webp
cwebp2 --> |compress| 2.webp
cwebp3 --> |compress| 3.webp
1.webp --> |upload| b1[B2_uploader_1] --> B2(Backblaze)
2.webp --> |upload| b2[B2_uploader_2] --> B2
3.webp --> |upload| b3[B2_uploader_3] --> B2
```
Raw data
{
"_id": null,
"home_page": "https://github.com/cybershang/weblaze",
"name": "weblaze",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.12,<4.0",
"maintainer_email": "",
"keywords": "backblaze,webp,cli",
"author": "Yingjie",
"author_email": "dev@yingjie.space",
"download_url": "https://files.pythonhosted.org/packages/a5/7f/bd18300cb3480a44a5ecf3361ad1ad211065863993c7dca680087ce05e89/weblaze-0.1.2.tar.gz",
"platform": null,
"description": "# weblaze\n\n<p align=\"center\">\n<img src=\"https://github.com/cybershang/weblaze/blob/93de39f2c842a900a7b31046724b30459f59314e/docs/media/weblaze.gif\" width=\"360\"/>\n</p>\n\n<p align=\"center\">\n<a href=\"https://pypi.org/project/weblaze/\"><img alt=\"PyPI - Version\" src=\"https://img.shields.io/pypi/v/weblaze\"></a>\n<a href=\"https://pypistats.org/packages/weblaze\"><img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dw/weblaze\"></a>\n<a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\"></a>\n</p>\n\n\n**Usage**:\n\n```console\n$ weblaze [OPTIONS] COMMAND [ARGS]...\n```\n\n**Options**:\n\n- `--install-completion`: Install completion for the current shell.\n- `--show-completion`: Show completion for the current shell, to copy it or customize the installation.\n- `--help`: Show this message and exit.\n\n**Commands**:\n\n- `edit`: Edit the configuration file in the...\n\n- `init`: Initialize and generate a configuration...\n\n- `run`: main function\n\n## Configuration\n\n ```yaml\n backblaze:\n application_key_id: ***\n application_key: ***\n bucket_name: ***\n local:\n compressor: ***\\cwebp.exe\n ```\n\n## Commands\n\n\n\n### `edit`\n\nEdit the configuration file in the system's default editor.\n\n**Usage**:\n\n```console\n$ edit [OPTIONS]\n```\n\n**Options**:\n\n- `--help`: Show this message and exit.\n\n### `init`\n\nInitialize and generate a configuration file in the user's .config directory.\n\n**Usage**:\n\n```console\n$ init [OPTIONS]\n```\n\n**Options**:\n\n- `--help`: Show this message and exit.\n\n### `run`\n\nmain function\n\n**Usage**:\n\n```console\n$ run [OPTIONS]\n```\n\n**Options**:\n\n- `-i, --local-directory TEXT`: Path to the local directory where images are stored [default: ./]\n- `--compress-max INTEGER`: max workers to compress [default: 3]\n- `--upload-max INTEGER`: max workers to upload [default: 3]\n- `--help`: Show this message and exit.\n\n```mermaid\nflowchart TD\n w(weblaze) --> 1.jpg --> cwebp1(cwebp 1)\n w --> 2.jpg --> cwebp2(cwebp 2)\n w --> 3.jpg --> cwebp3(cwebp 3)\n cwebp1 --> |compress| 1.webp\n cwebp2 --> |compress| 2.webp\n cwebp3 --> |compress| 3.webp\n 1.webp --> |upload| b1[B2_uploader_1] --> B2(Backblaze)\n 2.webp --> |upload| b2[B2_uploader_2] --> B2\n 3.webp --> |upload| b3[B2_uploader_3] --> B2\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.1.2",
"project_urls": {
"Homepage": "https://github.com/cybershang/weblaze",
"Repository": "https://github.com/shangcode/weblaze"
},
"split_keywords": [
"backblaze",
"webp",
"cli"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c7cee9b3beb119ea593b7069fac2ca2d70cb4919a6fbf78dc192a04309726f4e",
"md5": "6b794a78b6bcec95c8d62b9359dd15ad",
"sha256": "9e55a893ee0900c51924fe1aaa0660a8881aaf1c76271285a28b715eb38d96fc"
},
"downloads": -1,
"filename": "weblaze-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6b794a78b6bcec95c8d62b9359dd15ad",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12,<4.0",
"size": 5946,
"upload_time": "2024-02-28T10:26:50",
"upload_time_iso_8601": "2024-02-28T10:26:50.844572Z",
"url": "https://files.pythonhosted.org/packages/c7/ce/e9b3beb119ea593b7069fac2ca2d70cb4919a6fbf78dc192a04309726f4e/weblaze-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a57fbd18300cb3480a44a5ecf3361ad1ad211065863993c7dca680087ce05e89",
"md5": "2cac2757ca0a2bf57c987bae32285669",
"sha256": "46cc2cdc0e63c2d2620fa22998d4e7684be1826cfb6e05f74c2b3b3472c1472b"
},
"downloads": -1,
"filename": "weblaze-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "2cac2757ca0a2bf57c987bae32285669",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12,<4.0",
"size": 4779,
"upload_time": "2024-02-28T10:26:51",
"upload_time_iso_8601": "2024-02-28T10:26:51.696237Z",
"url": "https://files.pythonhosted.org/packages/a5/7f/bd18300cb3480a44a5ecf3361ad1ad211065863993c7dca680087ce05e89/weblaze-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-28 10:26:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cybershang",
"github_project": "weblaze",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "weblaze"
}