Skip to main content

randomread

Read a random subset of a text file in an efficient manner.

use

from randomread import sample

# Read randomly picked 10-word snippet from a large text file
text = sample("large_textfile.txt", 10)
# Read 100 randomly picked 2000-word chunks
text = sample("large_textfile.txt", 200000, chunk_size=2000)

install

pip install randomread

Metadata

Release files for randomread 0.2.0

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

Source distribution (sdist)

Source distribution for randomread 0.2.0
File Size Uploaded Provenance
randomread-0.2.0.tar.gz 1.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for randomread 0.2.0
File Interpreter ABI Platform
randomread-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.3 kB

Release files / randomread-0.2.0.tar.gz

Download URL randomread-0.2.0.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0047321b6699d051959137f3e020c22e4443e2085ddd9b7cc8c6952224845cd
BLAKE2b-256 checksum
How to use checksums
58d7cb61b11b0d1ad155c7ab6c6c9ce83935c56d28e7f20b81fcf56870497912
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/22.3.0

Release files / randomread-0.2.0-py3-none-any.whl

Download URL randomread-0.2.0-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b30656c6fe3354bc4d7275927fb4576ca891067490ea6b52c36a7e61eb4bdfe
BLAKE2b-256 checksum
How to use checksums
d94ed93124b580d2a66708c70c808023c860da73055fb534e68cfc3e7ba1c0d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.13 Darwin/22.3.0

Security for randomread 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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