Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A convenience list-like object that allows random access tolines of a text file.

Project Description

Copyright (c) 2016 Luís Gomes

indexedlines implements a list-like immutable view over lines of text files. In other words, it allows access to any line given it’s zero-based index. Thus, if you have a big text file and you want to get line number 100001, you don’t have to read the first 100000 sentences before getting that one.

Of course there are no free lunches, and this module needs to compute a list of sentence offsets beforehand (which is saved to disk when a indexedlines object is created for the first time).

Release History

Release History

This version
History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
indexedlines-0.1.1.tar.gz (2.4 kB) Copy SHA256 Checksum SHA256 Source Dec 22, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting