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` | |
_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
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
Built Distribution
Close
Hashes for fastread-0.1.0.macosx-10.12-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47ba05028d3f184ebd8fb8b319ea8e6c613341cf9a9affe759c1591a26c26e4 |
|
MD5 | 1e39e11c1d732a362e6f49db8cc738aa |
|
BLAKE2b-256 | bf7950e15ba687d560fd8dc1b48a40cc5e357ecea2e7dc510dc391de409fb598 |