No project description provided
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
randomread-0.2.0.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for randomread-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b30656c6fe3354bc4d7275927fb4576ca891067490ea6b52c36a7e61eb4bdfe |
|
MD5 | 49a7527c7e70a632b938d5169038fdbb |
|
BLAKE2b-256 | d94ed93124b580d2a66708c70c808023c860da73055fb534e68cfc3e7ba1c0d5 |