Skip to main content

dev_calc

dev_calc is a command-line calculator inspired by the Windows Developer Calculator. It provides advanced mathematical functions and is designed for developers who prefer using the terminal for calculations.

Features

Basic arithmetic operations: addition, subtraction, multiplication, and division Programmer mode: binary, hexadecimal, and octal calculations History of calculations Easy-to-use command-line interface Installation Install dev_calc using pip:

pip install dev_calc

Usage To use dev_calc, simply call it from your terminal:

dev_calc Keybindings q: Quit the application k: Switch to the previous mode (DEC, BIN, HEX, OCT) j: Switch to the next mode (DEC, BIN, HEX, OCT) c: Clear the current input Backspace: Delete the last character Enter: Solve the current expression

Examples

Basic arithmetic:

Start the calculator: dev_calc Enter the expression 3 + 4 in DEC mode and press Enter.

[DEC]:  3 + 4 
BIN:    0011 + 0100 
HEX:    3 + 4 
OCT:    3 + 4 
--------------------
q: quit, k: previous, j: next, c: clear
[DEC]:  7 
BIN:    0111 
HEX:    7 
OCT:    7 
--------------------
q: quit, k: previous, j: next, c: clear

Switching modes:

DEC: Decimal (base 10)

BIN: Binary (base 2)

HEX: Hexadecimal (base 16)

OCT: Octal (base 8)

You can switch between these modes using the k and j keys.

Debug Mode

To run dev_calc in debug mode, use the -d flag:

dev_calc -d This will print debug information to the terminal.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

Metadata

Release files for dev-calc 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dev-calc 1.0.0
File Size Uploaded Provenance Actions
dev_calc-1.0.0.tar.gz 42.7 kB Without provenance Details for dev_calc-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dev-calc 1.0.0
File Interpreter ABI Platform Actions
dev_calc-1.0.0-py3-none-any.whl Python 3 none any Details for dev_calc-1.0.0-py3-none-any.whl

Total release size: 72.7 kB

Release files / dev_calc-1.0.0.tar.gz

Download URL dev_calc-1.0.0.tar.gz
Size 42.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3bc89a09a11484799df941d1d7cc0651aacaa84a6a45c8aab64a44495c621e1b
BLAKE2b-256 checksum
How to use checksums
5ca40f391e331b01102734fb9833247a2633cfab3a17edfbd8ab7d33be3b8b29
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.8

Release files / dev_calc-1.0.0-py3-none-any.whl

Download URL dev_calc-1.0.0-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d404eaa68035da53bbfd955cb9d7d5e4e8b87b9522a05bcb1c2195615bdd5214
BLAKE2b-256 checksum
How to use checksums
970fe5c1ff83ddc40c3d1df318d45ec4649d3c88c54c9e61febc52df77de81c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.8

Security for dev-calc 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page