Skip to content

yasufumy/arrayfiles

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ArrayFiles: Array-like File Access in Python

Build Status Build Status Language grade: Python Codacy Badge Codacy Badge codecov

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