Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Reading and writing size rotate file.

Project Description

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

Reading and writing 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`

# License
MIT licensed.

Release History

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
os-rotatefile-0.1.2.tar.gz
(4.7 kB) Copy SHA256 Hash SHA256
Source Dec 14, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting