Skip to main content

Simple CLI Stats

Project description

pip install p2s

General Stats

seq 0 100 | p2s

Count

seq 0 100 | p2s.count

Mean

seq 0 100 | p2s.mean

Standard Deviation

seq 0 100 | p2s.std

Quantile (in Percent)

seq 0 100 | p2s.q 25

Map (lambda expression)

Each line is in x

seq 0 100 | p2s.map "int(x) + 1"

Reduce

Accumulator a and current c. Usage p2s.reduce <lambda> <initial_accumulator> seq 0 100 | p2s.reduce "float(a) + float(c)" "0"

Histogram

seq 0 100 | p2s.hist --xlabel "Position" --output "hist.pdf"

Project details


Download files

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

Source Distribution

p2s-0.1.9.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file p2s-0.1.9.tar.gz.

File metadata

  • Download URL: p2s-0.1.9.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for p2s-0.1.9.tar.gz
Algorithm Hash digest
SHA256 defdcb0dc9d41bfd2f99138e55d35a5dcbac69469b25132a2b7abfa1cb1f3ba9
MD5 a5b8f03c77f84b2315b2c518d5dd186d
BLAKE2b-256 abc209ab18ff85a96ad3d12ea6954cf197e44a4127c1930154f2b4e0a2068a2c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page