yaocool / async-oss Goto Github PK
View Code? Open in Web Editor NEWAn asynchronous python client SDK for OSS(Aliyun Object Storage Service).
Home Page: https://pypi.org/project/asyncio-oss/
License: MIT License
An asynchronous python client SDK for OSS(Aliyun Object Storage Service).
Home Page: https://pypi.org/project/asyncio-oss/
License: MIT License
bucket = asyncio_oss.Bucket(oss_auth, endpoint, "test_bucket")
await bucket.put_object("test/test.txt", "test")
await bucket.close()
Traceback (most recent call last):
File "/home/lmsh7/financial-report/financial_report/api/module/oss_client.py", line 171, in <module>
loop.run_until_complete(test_async_upload())
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/lmsh7/financial-report/financial_report/api/module/oss_client.py", line 165, in test_async_upload
await bucket.close()
File "/home/lmsh7/.local/lib/python3.10/site-packages/asyncio_oss/api.py", line 281, in close
await self.session.close()
AttributeError: 'Session' object has no attribute 'close'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fb353743f40>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fb35376f400>, 2329107.492301855)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fb353743e80>
asyncio_oss.ObjectIterator 的父类 _BaseIterator 实现了 aiter 方法。
aiter 是否应该删除def 前的 async ,当有 async 时 会触发
TypeError: 'async for' received an object from aiter that does not implement anext: coroutine
add test cases
put_object_tagging 会返回 asyncio_oss.exceptions.SignatureDoesNotMatch,但是我不知道该如何解决,麻烦看一下,多谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.