BSD Ports

devel/py-aiofiles 23.2.1 DragonFly

File support for asyncio

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
23.3 KiB, 134.0 KiB installed

Description

aiofiles is an Apache2 licensed library, written in Python, for handling local disk files in asyncio applications.

Ordinary local file IO is blocking, and cannot easily and portably made asynchronous. This means doing file IO may interfere with asyncio applications, which shouldn't block the executing thread. aiofiles helps with this by introducing asynchronous versions of files that support delegating operations to a separate thread pool.

Features:

  • a file API very similar to Python's standard, blocking API
  • support for buffered and unbuffered binary files, and buffered text files
  • support for async/await (PEP 492) constructs

In the other systems

SystemPortVersion
DragonFlydevel/py-aiofiles23.2.1
FreeBSDdevel/py-aiofiles25.1.0
NetBSDdevel/py-aiofiles25.1.0
MidnightBSDdevel/py-aiofiles23.2.1_1
HardenedBSDdevel/py-aiofiles25.1.0
GhostBSDdevel/py-aiofiles25.1.0

Install

Binary package:

pkg install py311-aiofiles

From DPorts:

cd /usr/dports/devel/py-aiofiles && make install clean

Dependencies

Run dependencies 1