Skip to main content

Async foundation for finesql and fynor.

Project description

FineIO

FineIO — async foundation library for finesql and fynor.
It provides helpers that work in both sync and async code, making it easy to adopt async gradually.

Installation

pip install fineio

Quick Start

Hello Example

from fineio import hello

# ✅ Sync usage
print(hello())  # -> "fineio is alive!"

# ✅ Async usage
import asyncio

async def main():
    print(await hello())  # -> "fineio is alive!"

asyncio.run(main())

How It Works

The same function hello() works in both contexts:

  • If called outside an event loop → it runs async code with asyncio.run() and returns the result directly.
  • If called inside an event loop → it returns a coroutine, so you can await it.

This dual-mode design makes it possible to:

  • Start with synchronous code.
  • Move to async gradually without changing APIs.

Roadmap

  • hello() demo function with dual sync/async support.
  • 🚧 Core utilities for running coroutines from sync code.
  • 🚧 Async helpers for finesql (database operations).
  • 🚧 Integration with fynor (web framework).

License

This project is licensed under the MIT License.

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

fineio-0.0.1a1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

fineio-0.0.1a1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file fineio-0.0.1a1.tar.gz.

File metadata

  • Download URL: fineio-0.0.1a1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fineio-0.0.1a1.tar.gz
Algorithm Hash digest
SHA256 254db27e70391489dbe4561d119206d9313c97c4c5179afc7f88858f17efb2d8
MD5 1d23887485917cb1f304a7e0898ad2b0
BLAKE2b-256 950b94c139fd8dd5db3521201138f5a9ad7083428ae57bf1eb7bc435d0e3782e

See more details on using hashes here.

File details

Details for the file fineio-0.0.1a1-py3-none-any.whl.

File metadata

  • Download URL: fineio-0.0.1a1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for fineio-0.0.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 2e693375a4455302266c4f92b048001c611282d15470a786e1a24499003a9534
MD5 083ad061ec53891c6eb509fa43e6c23a
BLAKE2b-256 0a65d05f2903f4d4ef14724ab509c9895e2258ac9717809e8edeaf27775b5c20

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