
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
async-fs
is a powerful C++ extension for Python that provides asynchronous file system operations using liburing
for high-performance I/O. This extension allows you to perform read, write, delete, copy, move, and file information retrieval operations asynchronously, making it an ideal choice for applications requiring high efficiency.
Before installing async-fs
, ensure that the liburing
library is installed.
sudo apt install liburing-dev
sudo dnf install liburing-devel
sudo pacman -S liburing
Once liburing
is installed, you can install async-fs
via pip:
pip install async-fs
Here's an example of using async-fs
for asynchronous file reading and writing:
import asyncio
import async_fs
async def main():
# Asynchronous file reading
content = await async_fs.read_file('test.txt', 1024)
print(content)
# Asynchronous file writing
result = await async_fs.write_file('output.txt', 'Hello, async world!')
print(f"Bytes written: {result}")
# Asynchronous file deletion
await async_fs.delete_file('output.txt')
# Asynchronous file copying
await async_fs.copy_file('test.txt', 'copy_test.txt')
# Asynchronous file moving
await async_fs.move_file('copy_test.txt', 'moved_test.txt')
# Asynchronous file information retrieval
info = await async_fs.file_info('moved_test.txt')
print(info)
asyncio.run(main())
We welcome contributions from the community! If you have ideas for improving async-fs
, please create an issue or submit a pull request. We appreciate your suggestions and enhancements.
This project is licensed under the MIT License. See the LICENSE file for details.
I would like to express my gratitude to the following tools and platforms that greatly contributed to the development of this project:
These tools and platforms played an essential role in making this project possible, and I am truly grateful for their contributions.
I also want to extend a big thank you to everyone who supports and contributes to this project. Your help continues to make async-fs
better!
FAQs
Asynchronous file system operations using io_uring
We found that async-fs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.