os-rotatefile 0.2.0

Last updated:

0 purchases

os-rotatefile 0.2.0 Image
os-rotatefile 0.2.0 Images
Add to Cart

Description:

osrotatefile 0.2.0

# os-rotatefile[![Build Status](https://www.travis-ci.org/cfhamlet/os-rotatefile.svg?branch=master)](https://www.travis-ci.org/cfhamlet/os-rotatefile)[![codecov](https://codecov.io/gh/cfhamlet/os-rotatefile/branch/master/graph/badge.svg)](https://codecov.io/gh/cfhamlet/os-rotatefile)[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/os-rotatefile.svg)](https://pypi.python.org/pypi/os-rotatefile)[![PyPI](https://img.shields.io/pypi/v/os-rotatefile.svg)](https://pypi.python.org/pypi/os-rotatefile)Read and write size rotate file.# Install `pip install os-rotatefile`# Usage * Write ``` from os_roatefile import open_file f = open_file('file', 'w', roll_size='1G') f.write('Your data') f.close() ``` * Read ``` from os_roatefile import open_file f = open_file('file', 'r', buffer_size='128K') f.readline() f.read(100) if not f.read(): f.close() ```# Unit Tests `$ tox`# LicenseMIT licensed.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.