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",
)
Release files for oss2-uploader 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| oss2_uploader-0.1.0.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oss2_uploader-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / oss2_uploader-0.1.0.tar.gz
| Download URL | oss2_uploader-0.1.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea2a12974d3decac7d032ee930c09a08d8b033a45eb5cd9bca10f6cad6b2c8ee
|
|
BLAKE2b-256 checksum How to use checksums |
54d2096c75cae275f363968f507232c76efa8f27f59635db24299205d26429b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|
Release files / oss2_uploader-0.1.0-py3-none-any.whl
| Download URL | oss2_uploader-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a466d6d125400d96fe2fee5ab49cb02fa28b4b66ebbc073ae7630fe04312dae5
|
|
BLAKE2b-256 checksum How to use checksums |
918a088f35ec56bf5355389f2c36d4dc8d4b1e504ad55ac44fd2d54caf588d96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.0
|