Skip to main content

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.03.zip (4.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page