Skip to main content

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())

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)

Source distribution for asyncoss 0.0.4
File Size Uploaded
asyncoss-0.0.4.tar.gz 23.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for asyncoss 0.0.4
File Interpreter ABI Platform
asyncoss-0.0.4-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page