Skip to main content

Add your description here

Project description

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())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uvfiles-0.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvfiles-0.1.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file uvfiles-0.1.0.tar.gz.

File metadata

  • Download URL: uvfiles-0.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for uvfiles-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a754692aa4b70f184694fc93ad489e5b39e9d2795acc54f330de27e288f9db16
MD5 707bca563aa7d45e81f093f1979694b5
BLAKE2b-256 6780144b199d7bc4e1c05fa83ffd6f5aa45e5df03b876d8c11ca59e7ff820ccc

See more details on using hashes here.

File details

Details for the file uvfiles-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uvfiles-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for uvfiles-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d844d2cd0dcafeb5c90355a355e616c5c3b35433538a1cceeca43675c2645b6
MD5 5ae7f75a13977962629826001d8284e6
BLAKE2b-256 fed2c93a48c8ee683e97bb52eb588bd86ffbf5790b44118c1932fb3c97149a2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page