Skip to main content

Simple and safe file operations for Python

Project description

safeio 📂

A tiny Python library to simplify file I/O with features like appending, backups, and log rotation.

Install

pip install safeio

Usage

from safeio import File

file = File("example.txt")
file.write("Hello").append("World").backup().rotate_if_large(max_mb=1)

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

safeiofile-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

safeiofile-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file safeiofile-0.1.0.tar.gz.

File metadata

  • Download URL: safeiofile-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for safeiofile-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4863ed534ab50f55cdb7021d68a1f65a65d9a84d3873b61797bca6ab0b4ba744
MD5 836ca1c34ec9cdd5b9af8b2eb2d73cef
BLAKE2b-256 7e2297d6fa015f418eaa8b53a4dfba8647280feb20d0b3dea3fe7bdd1c3ce65a

See more details on using hashes here.

File details

Details for the file safeiofile-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: safeiofile-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for safeiofile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5cd16cc8e299f7607c1c9a3778f23e66c53eae4df38528449d207457cabc7c3
MD5 151b0460907fa42dee25f32fdec376fa
BLAKE2b-256 ae1dfcfcc707c0f1bfbfc5a53c7728e3d036c40f869fe55d40118b8c1fe1efeb

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