Skip to content
Python Random File Access for Humans
Python Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
easyfile
tests
.flake8
.gitignore
.travis.yml
LICENSE
Makefile
Pipfile
Pipfile.lock
README.md
setup.py
tox.ini

README.md

Easyfile: Random File Access for Humans

Build Status Build Status Language grade: Python Codacy Badge Codacy Badge 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.