A tool to upload folders with multipart upload.
Project description
Uploader Service
A tool to upload folders / File with multipart upload.
Installation
pip install lizaiupload
Usage Command
usage:
lizaiupload folder_path [--parent-folder-name PARENT_FOLDER_NAME] [--thread THREAD] [--retry-delay RETRY_DELAY] [--env ENV] [--skip-extension SKIP_EXTENSIONS] [--include-folder]
positional arguments:
folder_path Path to the folder to upload
options:
-h, --help show this help message and exit
| Parameter | Description |
|---|---|
| --include-folder | Include folder path in key |
| --parent-folder-name PARENT_FOLDER_NAME | Parent folder name to include in key |
| --thread THREAD | Number of threads upload |
| --retry-delay RETRY_DELAY | Time delay (in seconds) before retrying |
| --skip-extension SKIP_EXTENSIONS | Comma-separated list of file extensions to skip |
| --env ENV | Path file ENV |
You can also include the folder name in the key:
lizaiupload /path/to/your/folder --include-folder
Or specify a parent folder name:
lizaiupload /path/to/your/folder --parent-folder-name parent_folder
Upload all in current path use: folder_path = .
Example:
lizaiupload foldertest --env ./config --thread 10 --retry-delay 30 --skip-extension .mp3,.3gp --include-folder
Create .env file in folder config data config
API_URL=https://example
TOKEN=token_string
Usage function
from lizaiupload.config import Config from lizaiupload.upload import upload_folder
conf = Config(api_url, token, number_threads, retry_delay_second)
| Parameter | Required | Description |
|---|---|---|
| api_url | True | String API URL |
| token | True | String Token |
| number_threads | False | Number of threads upload (Default: 5) |
| retry_delay_second | False | Time delay (in seconds) before retrying (Default: 5) |
upload_folder(config: Config, folder_path: str, include_folder: bool = False, parent_folder_name: str = None, skip_extensions: list[str] = ['.log'])
| Parameter | Required | Description |
|---|---|---|
| config | True | Config setting |
| folder_path | True | Path to the folder to upload |
| include_folder | False | Include folder path in key |
| parent_folder_name | False | Parent folder name to include in key |
| skip_extensions | False | Comma-separated list of file extensions to skip |
| MIT License |
Copyright (c) 2018, Uwe Schmitt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lizaiupload-1.3.1.tar.gz.
File metadata
- Download URL: lizaiupload-1.3.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f21fe0803c2c4e3f23c16f23f8d0f84e47d9f082c735ab8d29b20322e8c9401
|
|
| MD5 |
d082245b8606e7f8f7d9a80079ecba48
|
|
| BLAKE2b-256 |
d86a6405c9f42f4c4e308fd3c06e4c233c928cf4c8f54b100f6656649176c2e9
|
File details
Details for the file lizaiupload-1.3.1-py3-none-any.whl.
File metadata
- Download URL: lizaiupload-1.3.1-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d374e23a1705c13e6e6c92d1c40c9c803ede660eed859a12c9292521c1541f
|
|
| MD5 |
21df21c82f05631fa0dd8a6f8ffb8559
|
|
| BLAKE2b-256 |
bab3bd40b6659f0d801a041c77f0d9771cff7d3941350c0662cb2c8d9f9dc692
|