Skip to main content

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
--study-name Study name
--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 --study-name "sk up" --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

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

lizaiupload-1.4.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lizaiupload-1.4.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file lizaiupload-1.4.1.tar.gz.

File metadata

  • Download URL: lizaiupload-1.4.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for lizaiupload-1.4.1.tar.gz
Algorithm Hash digest
SHA256 f2fa9ff55e970eeb58ff3ca66372c5ef414c0e18e5f582b2cf5decf389a1f624
MD5 4cdf2c29f4b6cb9a0abf32c8300f9f70
BLAKE2b-256 cf073cfbffc645535140ab7090ac81c95192dc7805f6547a8721768d51010f7d

See more details on using hashes here.

File details

Details for the file lizaiupload-1.4.1-py3-none-any.whl.

File metadata

  • Download URL: lizaiupload-1.4.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for lizaiupload-1.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c226c337236e9d31b68f932942318a6710e9c762c8eb40029a9ac930c481187c
MD5 76e986067091f07737a886e6b8b85c66
BLAKE2b-256 f6f579698c4f0c38d149092603b54f4d64716ec43942ab39ca1137b570a002f2

See more details on using hashes here.

Supported by

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