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
File details
Details for the file fastread-0.1.0.macosx-10.12-x86_64.tar.gz
.
File metadata
- Download URL: fastread-0.1.0.macosx-10.12-x86_64.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47ba05028d3f184ebd8fb8b319ea8e6c613341cf9a9affe759c1591a26c26e4 |
|
MD5 | 1e39e11c1d732a362e6f49db8cc738aa |
|
BLAKE2b-256 | bf7950e15ba687d560fd8dc1b48a40cc5e357ecea2e7dc510dc391de409fb598 |
File details
Details for the file fastread-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: fastread-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d7f0509529aa508cc5fdd8a44056c1c495f012917bded385c4d0c164adf2fa |
|
MD5 | 6e6da7a4466abfaffdb621badc5e840f |
|
BLAKE2b-256 | db35c2c1b49d2b3e51a82154856834a3609d8d88cae3b609b4a59db68a3f97d9 |