Skip to main content

A quirky command-line calculator

Project description

Nonsense Calculator

Nonsense is a quirky command-line calculator that handles basic arithmetic, parentheses, exponentiation, and supports the ans keyword to reuse the last result. It's designed for fun and simplicity, perfect for quick calculations in the terminal.

Features

  • Handles +, -, *, /, %, **/^ with correct operator precedence
  • Supports floats and multi-digit numbers
  • Parentheses supported: e.g., (2+3)*4
  • Reuse the last answer with ans
  • Colorful terminal output if colorama is installed

Installation

pip install nonsense

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

nonsense_cli-1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

nonsense_cli-1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file nonsense_cli-1.4.tar.gz.

File metadata

  • Download URL: nonsense_cli-1.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nonsense_cli-1.4.tar.gz
Algorithm Hash digest
SHA256 ea1f6a3127bbd519d62ba87db79244f11f9419d9ee744a0c5be02f672145057d
MD5 44ae56c2ffe4fcf6e93fdc85e8bb1fde
BLAKE2b-256 b7519686cd40b91fa4ad15cafcd60e0ccfd29856a4eb67e7ffefade9d8b36f16

See more details on using hashes here.

File details

Details for the file nonsense_cli-1.4-py3-none-any.whl.

File metadata

  • Download URL: nonsense_cli-1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nonsense_cli-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3660d357d72fe0e14e9e74068554e077cfcaed5460b6dfd33318c3cecfdd9c46
MD5 8cd8cb1de0cff477444025bf557453f5
BLAKE2b-256 64f5b39c47781485059bcad985933c2113ca53517b3271ce675850583dc3350a

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