Skip to main content

LineCache caches the line position of a file in the memory. Everytime it access a line, it will seek to the related postion and readline(). Noticing that it may cost some time when you first cache lines of a file.

Usage:

from linecache_light import LineCache

linecache = LineCache(‘a.txt’, cache_suffix=’.cache’)

num_lines = len(linecache)

line_0 = linecache[0]

line_100 = linecache[100]

line_indexing= linecache[[2,3,4,5]]

line_indexing = linecache[-1]

Metadata

Release files for linecache-light 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linecache-light 0.1.3
File Size Uploaded Provenance Actions
linecache-light-0.1.3.tar.gz 1.8 kB Without provenance Details for linecache-light-0.1.3.tar.gz

Release files / linecache-light-0.1.3.tar.gz

Download URL linecache-light-0.1.3.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ecb9708f7d67db442464ef0b3f37be2c9152dde2bb6474ac1660b3ae691c23f
BLAKE2b-256 checksum
How to use checksums
385bec41f422fd558c7aa9962391f1f644fea2625798c39a79c8b4afafbc7a19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for linecache-light 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page