Skip to content
Python Random File Access for Humans
Branch: master
Clone or download
Latest commit e7784e9 Jul 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
easyfile Improve CsvFile Jul 18, 2019
tests Update test cases for CsvFile Jul 18, 2019
.flake8 Add .flake8 Jun 24, 2019
.gitignore Initial commit Jun 17, 2019
.travis.yml Fix bug in .travis.yml Jun 27, 2019
LICENSE Initial commit Jun 17, 2019
Makefile Add Makefile Jun 24, 2019
Pipfile Add minmum codes Jun 19, 2019
Pipfile.lock Update Pipfile.lock Jun 26, 2019
README.md Update README.md Jul 18, 2019
setup.py Fix bug in setup.py Jun 27, 2019
tox.ini Add tox.ini Jun 24, 2019

README.md

Easyfile: Random File Access for Humans

Build Status codecov

Easyfile allows you to access an arbitrary line of a text file.

If your interest is in using Easyfile for Deep Learning, please check Lineflow.

Installation

To install Easyfile:

pip install easyfile

Usage

import easyfile

data = easyfile.TextFile('/path/to/text')

data[0] # Access the first line of your text
data[-1] # Access the last line of your text
data[10:100] # Access the 10th line to the 100 the line of your text
You can’t perform that action at this time.