aiopen-0.5.4
توضیحات
Async file io
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiopen-0.5.4 |
| نام | aiopen |
| نسخه کتابخانه | 0.5.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | jesse |
| ایمیل نویسنده | jesse@dgi.com |
| آدرس صفحه اصلی | https://github.com/dynamic-graphics-inc/dgpy-libs/tree/main/libs/aiopen |
| آدرس اینترنتی | https://pypi.org/project/aiopen/ |
| مجوز | MIT |
<a href="https://github.com/dynamic-graphics-inc/dgpy-libs">
<img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/>
</a>
# aiopen
[](https://img.shields.io/pypi/wheel/aiopen.svg)
[](https://img.shields.io/pypi/v/aiopen.svg)
[](https://img.shields.io/pypi/pyversions/aiopen.svg)
[](https://github.com/psf/black)
**Install:** `pip install aiopen`
Async-open
**Why not use aiofiles?**
- Wanted more type annotations
- aiofiles uses ye ole `@coroutine` decorator -- aiopen uses python3.6+ `async/await`
- aiopen is a callable module, so you can do:
- `import aiopen`
- `async with aiopen('afile.txt', 'w') as f: await f.write('some text!')`
- `async with aiopen('afile.txt', 'r') as f: content = await f.read()`
(Big shouts out to the aiofiles people, aiopen is entirely based off of aiofiles)
## Usage:
Just import it! The module is also callable!
```python
import aiopen
async with aiopen('afile.txt', 'w') as f:
await f.write('some text!')
async with aiopen('afile.txt', 'r') as f:
content = await f.read()
print(content)
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.4.0,<0.5.0 | funkify |
| >=0.5.0 | xtyping |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl aiopen-0.5.4:
pip install aiopen-0.5.4.whl
نصب پکیج tar.gz aiopen-0.5.4:
pip install aiopen-0.5.4.tar.gz