Skip to main content

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


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

Uploaded Source

Built Distribution

readlargefile-1.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file readlargefile-1.0.4.tar.gz.

File metadata

  • Download URL: readlargefile-1.0.4.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for readlargefile-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ff0febd5ac35d86506fd52407e66f8fe0dbaccbc399bc8c6f5a3f451ebe291a8
MD5 405b60a691f5547034884a7de6807b8a
BLAKE2b-256 23bc0648bb70d7e98a12902e9528174bd40abf660a69d58246fd0d6e44cff894

See more details on using hashes here.

File details

Details for the file readlargefile-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: readlargefile-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for readlargefile-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13d4015323a46a166047542dd499a682f8a7abfb3fe0771e1add07c15a3af817
MD5 8e6952c48cf2c63dfdaf7de60cf2d739
BLAKE2b-256 e8a1bb501c939dcecef59375ad6f07d6a4f1e251680d30bb9899a141faa2e4a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page