gitea_admin
  • Joined on 2025-09-24

simple-calculator (0.1.1)

Published 2025-10-11 01:54:58 +00:00 by gitea_admin

Installation

pip install --index-url  simple-calculator

About this package

一个简单的Python计算器库,提供基本的数学运算功能

Simple Calculator

A simple Python calculator library that provides basic mathematical operations.

Features

  • Addition operations
  • Subtraction operations
  • Multiplication operations
  • Division operations
  • Power operations
  • Square root operations

Installation

pip install simple-calculator

Usage Examples

from simple_calculator import Calculator

# Create calculator instance
calc = Calculator()

# Basic operations
print(calc.add(10, 5))      # Output: 15
print(calc.subtract(10, 5)) # Output: 5
print(calc.multiply(10, 5)) # Output: 50
print(calc.divide(10, 5))   # Output: 2.0
print(calc.power(10, 5))    # Output: 100000
print(calc.sqrt(100))       # Output: 10.0

Development

Use uv for development:

# Install dependencies
uv sync

# Run program
uv run main.py

# Build package
uv build

License

MIT License

Requirements

Requires Python: >=3.8
Details
PyPI
2025-10-11 01:54:58 +00:00
0
MIT
4.5 KiB
Assets (1)
Versions (8) View all
0.3.1 2025-10-11
0.1.6 2025-10-11
0.1.5 2025-10-11
0.1.4 2025-10-11
0.1.3 2025-10-11