Skip to main content

kapo-mathtools

მარტივი მათემატიკური ხელსაწყოები Python-ისთვის. სასწავლო ბიბლიოთეკა ქართული დოკუმენტაციით, გარე დამოკიდებულების გარეშე.

Simple math tools for Python. A small teaching library with bilingual documentation and zero dependencies.

pip install kapo-mathtools
from kapo_mathtools import statistics, geometry, text_tools, converters

statistics.mean([85, 90, 78, 92])      # 86.25
geometry.circle_area(5)                # 78.53981633974483
text_tools.is_palindrome("radar")      # True
converters.celsius_to_fahrenheit(25)   # 77.0

მოითხოვს Python 3.9+ · Requires Python 3.9+


statistics — სტატისტიკა / Statistics

ფუნქცია / Function აღწერა Description
mean(numbers) საშუალო არითმეტიკული Arithmetic mean
median(numbers) მედიანა Median
variance(numbers) დისპერსია Variance
std_dev(numbers) სტანდარტული გადახრა Standard deviation
from kapo_mathtools import statistics

scores = [85, 90, 78, 92, 88]
statistics.mean(scores)      # 86.6
statistics.median(scores)    # 88
statistics.std_dev(scores)   # 4.882622246293481

ცარიელ სიაზე ისვრის ValueError-ს. variance და std_dev გენერალურ ერთობლიობას ითვლის (გაყოფა n-ზე, არა n-1-ზე).

Raises ValueError on an empty list. variance and std_dev compute the population statistics (divide by n, not n-1).

geometry — გეომეტრია / Geometry

ფუნქცია / Function აღწერა Description
circle_area(radius) წრის ფართობი Area of a circle
circle_circumference(radius) წრეწირის სიგრძე Circumference of a circle
rectangle_area(length, width) მართკუთხედის ფართობი Area of a rectangle
rectangle_perimeter(length, width) მართკუთხედის პერიმეტრი Perimeter of a rectangle
triangle_area(base, height) სამკუთხედის ფართობი Area of a triangle
from kapo_mathtools import geometry

geometry.circle_area(5)             # 78.53981633974483
geometry.rectangle_area(4, 6)       # 24
geometry.triangle_area(10, 5)       # 25.0

უარყოფით რადიუსზე ისვრის ValueError-ს. · Raises ValueError for a negative radius.

text_tools — ტექსტი / Text

ფუნქცია / Function აღწერა Description
count_words(text) სიტყვების რაოდენობა Word count
count_chars(text, include_spaces=False) სიმბოლოების რაოდენობა Character count
reverse_text(text) ტექსტის შებრუნება Reverse the text
is_palindrome(text) პალინდრომია? Is it a palindrome?
capitalize_words(text) ყოველი სიტყვის პირველი ასო დიდი Title-case the text
count_vowels(text) ხმოვნების რაოდენობა Vowel count
from kapo_mathtools import text_tools

text_tools.count_words("გამარჯობა მსოფლიო")               # 2
text_tools.is_palindrome("A man a plan a canal Panama")   # True
text_tools.reverse_text("Python")                         # 'nohtyP'

is_palindrome უგულებელყოფს ჰარეებს და რეგისტრს, პუნქტუაციას — არა. count_vowels ითვლის მხოლოდ ინგლისურ ხმოვნებს (aeiou).

is_palindrome ignores spaces and letter case, but not punctuation. count_vowels counts English vowels only (aeiou).

converters — ერთეულების კონვერტაცია / Unit conversion

ფუნქცია / Function აღწერა Description
celsius_to_fahrenheit(c) · fahrenheit_to_celsius(f) ტემპერატურა Temperature
kilometers_to_miles(km) · miles_to_kilometers(mi) მანძილი Distance
kilograms_to_pounds(kg) · pounds_to_kilograms(lb) წონა Weight
meters_to_feet(m) · feet_to_meters(ft) სიგრძე Length
from kapo_mathtools import converters

converters.celsius_to_fahrenheit(25)   # 77.0
converters.kilometers_to_miles(10)     # 6.21371
converters.kilograms_to_pounds(70)     # 154.3234

დახმარება / Built-in help

ყველა ფუნქციას აქვს ქართული docstring მაგალითით. Every function carries a docstring with a worked example.

from kapo_mathtools import statistics

help(statistics.mean)
print(statistics.median.__doc__)

ლიცენზია / License

MIT — see LICENSE.

ბიბლიოთეკა შექმნილია სასწავლო კურსისთვის პროგრამირების საწყისები (Python).

Built for the open course Programming Essentials (Python) — source in the library/ folder of the course repository.

Metadata

Release files for kapo-mathtools 0.3.1

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

Source distribution (sdist)

Source distribution for kapo-mathtools 0.3.1
File Size Uploaded
kapo_mathtools-0.3.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kapo-mathtools 0.3.1
File Interpreter ABI Platform
kapo_mathtools-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / kapo_mathtools-0.3.1.tar.gz

Download URL kapo_mathtools-0.3.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f6e0b2c0061ea17180be066206edc08343d4024275b80066b1f8a055fd2528d3
BLAKE2b-256 checksum
How to use checksums
1c54d45eda0ea0cf7e60ab6a03af3e86df5a3d56ff3832afc164cea704cb16bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / kapo_mathtools-0.3.1-py3-none-any.whl

Download URL kapo_mathtools-0.3.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06632c89cc083aa46681565736f938c16840aed4c37c6bb1672d1e9b4528845f
BLAKE2b-256 checksum
How to use checksums
3401bc89e985c06888fdc11342b022632fc69b2953110b40e273fb5f4064cacc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

0.4.0

2 release files

This release

0.3.1 This release

2 release files

0.3.0

2 release files

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