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 გამართული მაგალითით — help() პირდაპირ
ტერმინალში მუშაობს, ინტერნეტის გარეშე.
Every function carries a bilingual docstring with a worked example, so help()
works right in the terminal, offline.
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.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kapo_mathtools-0.4.0.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kapo_mathtools-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.2 kB
Release files / kapo_mathtools-0.4.0.tar.gz
| Download URL | kapo_mathtools-0.4.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5410bd1117e06bade3f5bbb7bf60d464d08717a38bcf9a15ed87adf725fa2034
|
|
BLAKE2b-256 checksum How to use checksums |
9632a7108419637e8f0ca328da73ee1c53a70b6672448403d48a0e3501498726
|
| 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 logRelease files / kapo_mathtools-0.4.0-py3-none-any.whl
| Download URL | kapo_mathtools-0.4.0-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d8b1f4b62d6807ef464d88cf5247557aa67cba66ed09f52fea760f843082ab7
|
|
BLAKE2b-256 checksum How to use checksums |
6e2e5f125443087a824068f113cda46395be29b29f4193d43c6b6caacd445135
|
| 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