arrayfiles
arrayfiles copied to clipboard
Array-like File Access in Python
ArrayFiles: Array-like File Access in Python
ArrayFiles allows you to access an arbitrary line of a text file.
If your interest is in using arrayfiles for Deep Learning, please check LineFlow.
Installation
To install arrayfiles:
pip install arrayfiles
Usage
import arrayfiles
data = arrayfiles.read_text('/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