A utility library for working with DSV (Delimited String Values) files
Project description
splurge-safe-io
A small, secure, and deterministic text file I/O helper library.
Key features
- Deterministic newline normalization (LF) for text reads/writes.
- Secure path validation utilities to avoid traversal and dangerous characters.
- Streaming reader with incremental decoding and a safe fallback for tricky encodings.
- Clear, small exception hierarchy for stable error handling.
Quick start
from splurge_safe_io.safe_text_file_reader import SafeTextFileReader
from splurge_safe_io.safe_text_file_writer import open_safe_text_writer
# Read lines
reader = SafeTextFileReader('data.csv')
rows = reader.read()
# Write via context manager
with open_safe_text_writer('out.txt') as buf:
buf.write('\n'.join(['one','two','three']))
See docs/README-DETAILS.md for a complete guide and usage examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
splurge_safe_io-2025.0.2.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file splurge_safe_io-2025.0.2.tar.gz.
File metadata
- Download URL: splurge_safe_io-2025.0.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5b9378d910543a279332fd8ec982b4cb7874f62847f1aea30caa6469df0f641
|
|
| MD5 |
d2166b5ba8b44a9613a08a4e79c7314c
|
|
| BLAKE2b-256 |
d0ec4d786b4ca98b4e84ed723d0393ce9b27a3bb57317e4caf4eea9cf7583123
|
File details
Details for the file splurge_safe_io-2025.0.2-py3-none-any.whl.
File metadata
- Download URL: splurge_safe_io-2025.0.2-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23e826eaa0ab0bea4fbcb47374ac5662c153a227e8f6025a8d00ce83e11865b6
|
|
| MD5 |
ed1753c67bb82bb03853777d5258452e
|
|
| BLAKE2b-256 |
fb7a89c513f4b97f348867408f2a7a8f14c87bfe49ef94d0f13764ffbc288d1e
|