Skip to main content

Uploader files in a folder to Aliyun OSS

Project description

Uploader all files in a folder to Aliyun OSS

Must load OSS_ACCESS_KEY_ID and OSS_ACCESS_KEY_SECRET into environment variables first.

Usage

only executable under if __name__ == "__main__":

if __name__ == "__main__":

    from oss2_uploader import folder_uploader

    folder_uploader(, , 
        folder_path="./test-folder,
        bucket_name="test-bucket",
        oss_endpoint="oss-ap-southeast-1.aliyuncs.com",
        oss_path="pathname",
    )

if oss_path is omitted, will use the folder name as prefix in oss

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

oss2_uploader-0.0.8.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

oss2_uploader-0.0.8-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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