Skip to content

limoiie/flexio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlexIO

FlexIO unit tests

A flexible IO object that wraps path, file or fd.

Get started

Install from source

Open a terminal, and run:

python -m pip install git+https://github.com/limoiie/flexio.git@master

Introduction

FlexIO can wrap either path, or file, or io, or fd into an io object:

from flexio import FlexTextIO

with FlexTextIO('/path/to/file', mode='w+') as file_io:
    file_io.write('some logs to file')

with FlexTextIO() as in_mem_io:
    in_mem_io.write('some logs to memory')

with FlexTextIO(in_mem_io) as io:
    io.read()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages