Fast access to text files by line number.
Project description
Quickly access arbitrary line numbers in a text file. A well tested library for Python 3.
For example:
- with IndexedOpen(‘big_text_file.txt’) as f:
print(f[35234:35300]) # happens fast
Does this by creating index files on demand of the locations of lines in a file. The first call to a file is slow but subsequent calls are very quick.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randomlineaccess-1.01.zip
(4.0 kB
view hashes)