Large text file reader.
Project description
Large text file reader.
usage:
from readlargefile.line_reader import LineReader
with LineReader(file_name, max_line, sep) as reader:
# line is <class 'bytes'>
for line in reader:
if line:
print(line)
elif line == b'':
print('empty line.')
else:
# line == None
print('line is too long.')
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
readlargefile-1.0.4.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for readlargefile-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13d4015323a46a166047542dd499a682f8a7abfb3fe0771e1add07c15a3af817 |
|
MD5 | 8e6952c48cf2c63dfdaf7de60cf2d739 |
|
BLAKE2b-256 | e8a1bb501c939dcecef59375ad6f07d6a4f1e251680d30bb9899a141faa2e4a9 |