Async Alibaba Cloud OSS SDK
Based on aiohttp and oss2, Require python3.6+
Installing
pip install asyncoss
Getting started
import asyncoss
import asyncio
endpoint = 'http://oss-cn-beijing.aliyuncs.com'
auth = asyncoss.Auth('<Your AccessKeyID>', '<Your AccessKeySecret>')
async def main():
# The object key in the bucket is story.txt
async with asyncoss.Bucket(auth, endpoint, '<your bucket name>') as bucket:
key = 'story.txt'
# Upload
await bucket.put_object(key, 'Ali Baba is a happy youth.')
# Download
result = await bucket.get_object(key)
await result.resp.read()
# Delete
await bucket.delete_object(key)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Metadata
Release files for asyncoss 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| asyncoss-0.0.4.tar.gz | 23.0 kB | Without provenance | Details for asyncoss-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| asyncoss-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for asyncoss-0.0.4-py3-none-any.whl |
Total release size: 48.5 kB
Release files / asyncoss-0.0.4.tar.gz
| Download URL | asyncoss-0.0.4.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d45e9d19c456e0f42c56359967918b3890f6f6ac9a7fde071cb0b80c949135a5
|
|
BLAKE2b-256 checksum How to use checksums |
e5c1684106aecd4d6d3258dae9b57e10d459c53826d931201664af01a31e7575
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Release files / asyncoss-0.0.4-py3-none-any.whl
| Download URL | asyncoss-0.0.4-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c26f0ba0f04d6544ad8ccd616967d5a7cf2279a435416accbbf6ab5a8709e702
|
|
BLAKE2b-256 checksum How to use checksums |
d013d1947140a690dd73060e314f2fee80695b984250dff72f1297594b7a08c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200106 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
|
Security for asyncoss 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.