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.0.tar.gz (37.2 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.0-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corally-1.0.0.tar.gz
  • Upload date:
  • Size: 37.2 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.0.tar.gz
Algorithm Hash digest
SHA256 3a85c455ddc322f7d740215a31b22effee112a1835973e18f794be90f1e42cd0
MD5 2478ae1c39fd7a76a4fca4f01597f854
BLAKE2b-256 f558680d6e22379c63f45db5e9cdbd13e563a4199f436ecc440900b0830683f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corally-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 59b0c52f64f827dc2bb6aefbfcf904ac189afd890585a58f2a1dd71ecc55c9f0
MD5 d0886e3a94f359630d8883bb4e69598d
BLAKE2b-256 bf843eb4fb618d5a60738595159dfbeecb94c463dc175dea4b99713ad627c4eb

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