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.1.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.1-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: corally-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 8d5b09a42ea3dde28a7b53fe05256e1e6cfc42af18a6d4968b94f682e5e310ee
MD5 4050d0ce98a6ea44a6cdffba07d510aa
BLAKE2b-256 83c02c5b488d8b3d2b8ebb7b9c8834873347afbd22ee4cb04ab90f4f64d548e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: corally-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 736280d895679ec6eb1d1b028dd1b27010b4c03864d15fc9f834f5304c88d9d0
MD5 bbadefbdc19e9f2f254a4229d86a2ebb
BLAKE2b-256 1cb295f02fe4b8a53423797efb0f6d386f3a2b4587bda4a55d78eeb720f1763b

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