Skip to main content

A comprehensive calculator suite with GUI and API support

Project description

๐Ÿงฎ Corally Calculator Suite

PyPI version Python 3.8+ License: MIT

A comprehensive Python calculator suite with modern GUI, CLI tools, and API servers. Features live currency conversion, interest calculations, and automatic operation logging.

โœจ Features

  • ๐Ÿงฎ Basic Calculator - Four operations with automatic CSV logging
  • ๐Ÿ’ฑ Currency Converter - Static rates + live API integration (150+ currencies)
  • ๐Ÿ“ˆ Interest Calculator - Multiple methods (30/360, act/360, act/365, act/act)
  • ๐ŸŽจ Modern GUI - Dark theme with tabbed interface
  • ๐ŸŒ Live API - Free & paid currency APIs with caching
  • ๐Ÿ“Š Auto Logging - All operations saved to CSV files
  • ๐Ÿ–ฅ๏ธ Multiple Interfaces - GUI, CLI, and API access

๐Ÿš€ Quick Start

Installation from PyPI

pip install corally

Command Line Usage

# Main calculator suite
corally

# Individual tools
corally-calc      # Basic calculator
corally-currency  # Currency converter
corally-gui       # Launch GUI interface

Python Package Usage

from corally import CalculatorCore, CurrencyConverter, InterestCalculator

# Basic calculator
calc = CalculatorCore()
result = calc.add(10, 5)  # Returns 15.0

# Currency conversion (static rates)
converter = CurrencyConverter()
usd_amount = converter.eur_to_usd(100)

# Interest calculation
interest_calc = InterestCalculator()
interest = interest_calc.calculate_interest(
    principal=1000,
    rate=5.0,
    days=30,
    method="30/360"
)

๐Ÿ“ Project Structure

Calculator Suite/
โ”œโ”€โ”€ ๐Ÿ“ฑ Core Applications
โ”‚   โ”œโ”€โ”€ calculator_core.py      # Unified core library
โ”‚   โ”œโ”€โ”€ calculator_gui.py       # Modern GUI application
โ”‚   โ”œโ”€โ”€ gui_launcher.py         # GUI launcher
โ”‚   โ”œโ”€โ”€ Hauptprogramm.py        # Console menu
โ”‚   โ”œโ”€โ”€ Rechner.py             # Console calculator
โ”‚   โ”œโ”€โ”€ Waerungsrechner.py     # Console currency converter
โ”‚   โ”œโ”€โ”€ api.py                 # Paid API server
โ”‚   โ”œโ”€โ”€ api_free.py            # Free API server
โ”‚   โ”œโ”€โ”€ manage_api_server.py   # API management
โ”‚   โ””โ”€โ”€ requirements.txt       # Dependencies
โ”‚
โ”œโ”€โ”€ ๐Ÿ“Š data/                   # Generated data files
โ”‚   โ”œโ”€โ”€ rechner_log.csv        # Calculator operation logs
โ”‚   โ”œโ”€โ”€ cache.csv              # API response cache
โ”‚   โ””โ”€โ”€ api.log                # Server logs
โ”‚
โ”œโ”€โ”€ ๐Ÿ“š docs/                   # Documentation
โ”‚   โ”œโ”€โ”€ README.md              # Full documentation
โ”‚   โ””โ”€โ”€ QUICK_START_GUIDE.md   # Quick setup guide
โ”‚
โ”œโ”€โ”€ ๐Ÿงช tests/                  # Test files
โ”‚   โ”œโ”€โ”€ test_api.py
โ”‚   โ”œโ”€โ”€ test_gui.py
โ”‚   โ””โ”€โ”€ test_*.py
โ”‚
โ”œโ”€โ”€ ๐Ÿ”ง debug/                  # Debug & development tools
โ”‚   โ”œโ”€โ”€ debug_*.py
โ”‚   โ””โ”€โ”€ fix_*.py
โ”‚
โ””โ”€โ”€ ๐Ÿ“ misc_files/             # Miscellaneous files
    โ”œโ”€โ”€ launch_calculator.bat
    โ”œโ”€โ”€ RockYourBody.py
    โ””โ”€โ”€ *.pptx

โœจ Features

  • ๐Ÿงฎ Basic Calculator - Four operations with automatic logging
  • ๐Ÿ’ฑ Currency Converter - Static + live rates (150+ currencies)
  • ๐Ÿ“ˆ Interest Calculator - Multiple calculation methods
  • ๐ŸŽจ Modern GUI - Dark theme with tabbed interface
  • ๐ŸŒ Live API - Free & paid currency conversion
  • ๐Ÿ“Š Auto Logging - All operations saved to CSV

๐Ÿ“ฆ Installation

pip install -r requirements.txt

๐Ÿ”ง Configuration

For live currency conversion, create .env file:

API_KEY=your_api_key_here

๐Ÿ“– Documentation

  • Full Documentation: docs/README.md
  • Quick Start Guide: docs/QUICK_START_GUIDE.md

๐Ÿงช Testing

Run tests from the tests/ directory:

python tests/test_gui.py
python tests/test_api.py

๐Ÿ› ๏ธ Development

Debug tools are available in the debug/ directory for troubleshooting and development.


Version: 2.0 | Python: 3.8+ | License: Educational Use

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

corally-1.0.2.tar.gz (37.1 kB view details)

Uploaded Source

Built Distribution

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

corally-1.0.2-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file corally-1.0.2.tar.gz.

File metadata

  • Download URL: corally-1.0.2.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for corally-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5d898d98fdbf3789fb71e9d56f0d124b5eee8a368ecb80cd3531ab05f050154f
MD5 4b3aa478d3bbf380426dd327ca046575
BLAKE2b-256 8cdf519ef981f342317ea5125116b93052781478f717822bd6bf17f3d77e780d

See more details on using hashes here.

File details

Details for the file corally-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: corally-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.5

File hashes

Hashes for corally-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 428a1c2730ec88e33b8f3ee5ca35f350ebdb818918c935461dd48ef4fd2d3b7d
MD5 7ad3c613b47e78adb5970f693183d58f
BLAKE2b-256 ee67cf876347d9311101c1b082522f311f91843a60d095718a9346f19076c144

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