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.

```python
pip install -U fastread
```

## Basic Usage

Here's a simple example.

```python
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",
number=1)
print('Read time: ', timer, '| Total lines: ', total)

#RESULT
# 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 Python 3

Supported by

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