bigsort
sort or shuffle big file/stream
usage
pip install bigsort
shell
bigsort -i readme.md -o sorted.txt # default sort in increase
cat readme.md | bigsort --sortType=d --unique=1 > sorted.txt # sort pipe, order in descend, unique
bigsort -i sorted.txt -c ">" # check order
bigsort -i readme.md --unique=1 | bigsort --sortType=R > sorted.txt # unique and shufle
head -c 100000000 /dev/urandom | python bigsort.py -C=1000 -m=0.999 --sortType=R -T="./" > sorted.txt
wc -l *.py | bigsort -k 1n,2 -b 1 -t " " # sort by key
bigsort -i readme.md -s R -g 10 # get first 10 lines
python
import os
from bigsort import bigsort, sortFile, check
# sort in file
sortFile("cat readme.md","sorted.txt")
check(open("sorted.txt"),"<=")
# sort in pipe
bigsort(os.popen("cat readme.md"),open("sorted.txt",'w'),unique=1,sortType="d")
check(open("sorted.txt"),">")
Attention
cat Get-Content)in PowerShell injects UTF-8 BOM (Unicode 65279, U+FEFF).
updates
- 0.2.3 find and solve encoding case, UTF-8 BOM in PowerShell
custom sort
Metadata
Release files for bigsort 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bigsort-0.2.3.tar.gz | 4.7 kB | Without provenance | Details for bigsort-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bigsort-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for bigsort-0.2.3-py3-none-any.whl |
Total release size: 9.6 kB
Release files / bigsort-0.2.3.tar.gz
| Download URL | bigsort-0.2.3.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee21e315f5968be5f73b3b19b76986267a490381af35a563fe6a66c9a237940c
|
|
BLAKE2b-256 checksum How to use checksums |
87624ba1375f3fa0190e3dbdc78ffc52429a969b7e661188806163b98f6e816f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / bigsort-0.2.3-py3-none-any.whl
| Download URL | bigsort-0.2.3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1626b0e5ae769f1ecf0383f61b23303ed448a4e1b31a1a895cfa12656bebd49b
|
|
BLAKE2b-256 checksum How to use checksums |
0c78bbd9947f521614beab845a41dc0093e7112e0469cb2926d19a34882c2a3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for bigsort 0.2.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.