Skip to main content
# 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`

# License
MIT licensed.

Metadata

Release files for os-rotatefile 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os-rotatefile 0.2.0
File Size Uploaded Provenance
os-rotatefile-0.2.0.tar.gz 4.9 kB Without provenance Details

Release files / os-rotatefile-0.2.0.tar.gz

Download URL os-rotatefile-0.2.0.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e75987c0270088a1858e1b6db308dafb6c1a07a347ace826bf15f04b9c81d263
BLAKE2b-256 checksum
How to use checksums
e610441a5aef644e821c12e259bc143f07173530be730542e185d42a9c61fdbc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for os-rotatefile 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page