
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.