Skip to main content

A simple Python toolkit for basic statistics and unit conversions

Project description

hasstatkit

A simple Python toolkit for basic statistics and unit conversions.

Installation

pip install hasstatkit

Modules

1. statistics_tools

  • mean(numbers) — calculates the average
  • median(numbers) — calculates the middle value
  • variance(numbers) — calculates the spread of data
  • std_dev(numbers) — calculates the standard deviation

2. conversions

  • celsius_to_fahrenheit(c) — converts Celsius to Fahrenheit
  • fahrenheit_to_celsius(f) — converts Fahrenheit to Celsius
  • km_to_miles(km) — converts kilometers to miles
  • miles_to_km(miles) — converts miles to kilometers

Usage

import hasstatkit

print(hasstatkit.mean([2, 4, 6]))                  # 4.0
print(hasstatkit.median([1, 2, 3, 4]))              # 2.5
print(hasstatkit.celsius_to_fahrenheit(100))        # 212.0
print(hasstatkit.km_to_miles(10))                   # 6.21371

License

MIT License

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

hasstatkit-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hasstatkit-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file hasstatkit-0.1.0.tar.gz.

File metadata

  • Download URL: hasstatkit-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for hasstatkit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a0ca18e082ede2c4461963c00f270ab815a638a09f63d0d8326841ce170ffa6
MD5 edeb615b6fcbcfc64ebf9faad7c00bc6
BLAKE2b-256 f013dccb782a9da8c8ed2bf6569cdcd511312cf97f3de32e506ced8f531520e5

See more details on using hashes here.

File details

Details for the file hasstatkit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hasstatkit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for hasstatkit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6be5962aadf01f6ebba02af5859702042d7b378a209b87001ef633860d683567
MD5 9a10194e3cfee8b1d0ffc982a24cf27c
BLAKE2b-256 076da4989f52867a154e9d3821ea1468df50241493b202d53704a7faf33c0d47

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