Skip to main content

uvfiles

uvfiles is an asynchronous file I/O library built on top of libuv, with an API designed to feel close to aiofiles. Its goal is to provide libuv's cross-platform portability and, on Linux, leverage io_uring (when available) for truly asynchronous file access.

Installation

Install dependencies with uv in the project directory:

uv sync

Simple Example

uvfiles requires a uvloop event loop.

import asyncio
import uvloop
from uvfiles import async_open

asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())


async def main() -> None:
    async_file = await async_open("example.txt", "w")
    await async_file.write("hello uvfiles\n")
    await async_file.close()

    async_file = await async_open("example.txt", "r")
    content = await async_file.read()
    await async_file.close()

    print(content)


asyncio.run(main())

Metadata

Release files for uvfiles 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uvfiles 0.1.0
File Size Uploaded
uvfiles-0.1.0.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uvfiles 0.1.0
File Interpreter ABI Platform
uvfiles-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / uvfiles-0.1.0.tar.gz

Download URL uvfiles-0.1.0.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a754692aa4b70f184694fc93ad489e5b39e9d2795acc54f330de27e288f9db16
BLAKE2b-256 checksum
How to use checksums
6780144b199d7bc4e1c05fa83ffd6f5aa45e5df03b876d8c11ca59e7ff820ccc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / uvfiles-0.1.0-py3-none-any.whl

Download URL uvfiles-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d844d2cd0dcafeb5c90355a355e616c5c3b35433538a1cceeca43675c2645b6
BLAKE2b-256 checksum
How to use checksums
fed2c93a48c8ee683e97bb52eb588bd86ffbf5790b44118c1932fb3c97149a2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page