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.04.zip (4.0 kB view details)

Uploaded Source

File details

Details for the file randomlineaccess-1.04.zip.

File metadata

  • Download URL: randomlineaccess-1.04.zip
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for randomlineaccess-1.04.zip
Algorithm Hash digest
SHA256 b7c087c430ecb3023999157d6ff436d08b12de6addf4c6483e4f15e352003e10
MD5 74fc87b6e571f11a51312208abbe9af0
BLAKE2b-256 f1576c0b12c370a98ebd613edf13523f80ec89f698f83e2c1edc1f8cc8db321d

See more details on using hashes here.

Supported by

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