Skip to main content

A sleek, powerful Scientific Calculator with a modern TUI.

Project description

🧪 ScienceCalc

A sleek, powerful, and fully responsive Scientific Calculator built with Python and Textual. Designed for the terminal, featuring a modern glassmorphism-inspired aesthetic and a robust calculation engine.

ScienceCalc Preview

✨ Features

  • 📱 Full-Screen UI: A responsive layout that adapts to any terminal size.
  • 🎨 Modern Aesthetics: Sleek dark mode palette (#0f172a, #1e293b) with vibrant highlights (#38bdf8).
  • 🔢 Scientific Functions:
    • Trigonometry: sin, cos, tan
    • Logarithms: log (base 10), ln (natural log)
    • Constants: π (pi), e
    • Algebra: Square root (), Powers (^), Percentages (%)
  • ⌨️ Keyboard Optimized:
    • Enter to calculate
    • Ctrl + D to clear
    • Ctrl + C to quit
  • 🧠 Smart Engine: Built-in error handling and precision rounding.

🚀 Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Mahir29Flame/Science-Calc.git
    cd Science-Calc
    
  2. Install dependencies:

    pip install textual
    

Running the App

Execute the main script:

python main.py

For development mode (with live reload):

textual run --dev main.py

🛠️ Built With

  • Textual - The TUI (Terminal User Interface) framework.
  • Python Math - Powering the calculation engine.

📜 License

Distributed under the MIT License. See LICENSE for more information.


Created with ❤️ by Mahir29Flame

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

science_calc-0.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

science_calc-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file science_calc-0.1.0.tar.gz.

File metadata

  • Download URL: science_calc-0.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for science_calc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcf5fd94237fdc20ee99f602ea79395d89c7bfbe5804dcfdeb558025b9ca559f
MD5 f9e259784b2d60456f57aae6c28f1f15
BLAKE2b-256 99e9fd5fb8b5df312823320827761c0fc3f5290022e004c9591f6297e6f54a4b

See more details on using hashes here.

File details

Details for the file science_calc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: science_calc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for science_calc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 704af2f3613b839626857f8639bbc08d02d54f26dbf75a6d516af3e8161910c6
MD5 6fcaaac60a83cb6ac840e9c79ff2785f
BLAKE2b-256 0d9d949f51d77d2e098b9ef559ef2ae518e3f3d361a4d31d9495a68d2d2313bb

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