fastread-0.1.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | fastread-0.1.0 |
| نام | fastread |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Stanislav Filin (stasfilin) |
| ایمیل نویسنده | stasfilinmusic@gmail.com |
| آدرس صفحه اصلی | https://github.com/stasfilin/fastread |
| آدرس اینترنتی | https://pypi.org/project/fastread/ |
| مجوز | Apache Software License |
# 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` | |
نحوه نصب
نصب پکیج whl fastread-0.1.0:
pip install fastread-0.1.0.whl
نصب پکیج tar.gz fastread-0.1.0:
pip install fastread-0.1.0.tar.gz