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-2.2.tar.gz (37.9 kB view details)

Uploaded Source

Built Distribution

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

corally-2.2-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for corally-2.2.tar.gz
Algorithm Hash digest
SHA256 03a6ec5f0ca4b611b5c37a25901875b7a1b11b18ecd7f50b24e42919542ee36b
MD5 9c2e17f9fadca2c002c02690a98c4e21
BLAKE2b-256 01b8002d81764866b21c3633de333c50750e1e18346c581f9f921c9e4a2debb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corally-2.2-py3-none-any.whl
  • Upload date:
  • Size: 28.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-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 464532600f5c0240340b55978dada847d2475f6aa47c33d6b9da7484e0943bf4
MD5 8710c0e9ac8106bc5c839ce6de24a394
BLAKE2b-256 f81dc7be5ceea979573ae8565e018c696e5bda4d42379424ab88ea2626df739d

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