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.

Install

pip install oss2-uploader

Usage

only executable under if __name__ == "__main__":

if __name__ == "__main__":

    from oss2_uploader import folder_uploader_sync

    folder_uploader_sync(
        os.path.join(os.path.expanduser("~"), "Documents"),
        "bucket_name",
        "oss-ap-southeast-1.aliyuncs.com",
    )

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.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

oss2_uploader-0.1.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file oss2_uploader-0.1.0.tar.gz.

File metadata

  • Download URL: oss2_uploader-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.0

File hashes

Hashes for oss2_uploader-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ea2a12974d3decac7d032ee930c09a08d8b033a45eb5cd9bca10f6cad6b2c8ee
MD5 97d6fa75ecc9602d184459ea93dd75b0
BLAKE2b-256 54d2096c75cae275f363968f507232c76efa8f27f59635db24299205d26429b5

See more details on using hashes here.

File details

Details for the file oss2_uploader-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for oss2_uploader-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a466d6d125400d96fe2fee5ab49cb02fa28b4b66ebbc073ae7630fe04312dae5
MD5 b8b2cf71415cecf17d5a4411387c91b4
BLAKE2b-256 918a088f35ec56bf5355389f2c36d4dc8d4b1e504ad55ac44fd2d54caf588d96

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