Skip to main content

No project description provided

Project description

# Fastread
_Fastread is a library for read big files_

## How to install and update

Install latest stable version or update current from pip.

pip install -U fastread

## Basic Usage

Here's a simple example.

import timeit

from fastread import Fastread

def main():
ff = Fastread('big.txt')
lines = ff.lines()

total = 0

for x in lines:
total += 1

return total

if __name__ == "__main__":
total = main()
timer = timeit.timeit("main()",
setup="from __main__ import main",
print('Read time: ', timer, '| Total lines: ', total)

# Read time: 0.029999009988387115 | Total lines: 128457

## Reference

| Setup | Command | Notes |
| ------- | ---------------------- | ----- |
| install | `pip install fastread` | |

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

fastread-0.1.0.macosx-10.12-x86_64.tar.gz (4.1 kB view hashes)

Uploaded source

Built Distribution

fastread-0.1.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page