Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meysam81/albert
A terminal calculator written in Rust with ❤️
https://github.com/meysam81/albert
arithmetic calculator math mathematics rust terminal
Last synced: 3 months ago
JSON representation
A terminal calculator written in Rust with ❤️
- Host: GitHub
- URL: https://github.com/meysam81/albert
- Owner: meysam81
- License: apache-2.0
- Created: 2023-11-25T10:01:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T19:30:52.000Z (4 months ago)
- Last Synced: 2024-09-18T09:10:27.153Z (4 months ago)
- Topics: arithmetic, calculator, math, mathematics, rust, terminal
- Language: Rust
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Albert
[![Code Size](https://img.shields.io/github/languages/code-size/meysam81/albert)](https://github.com/meysam81/albert)
[![Repo Size](https://img.shields.io/github/repo-size/meysam81/albert)](https://github.com/meysam81/albert)
[![Docs](https://img.shields.io/badge/docs-rs/albert?logo=docs.rs&label=docs.rs)](https://crates.io/crates/albert)
[![Language Count](https://img.shields.io/github/languages/count/meysam81/albert)](https://github.com/meysam81/albert)
[![Commit Intervals](https://img.shields.io/github/commit-activity/m/meysam81/albert)](https://github.com/meysam81/albert/commits)
[![Last Release](https://img.shields.io/github/release-date/meysam81/albert?label=last%20release)](https://github.com/meysam81/albert/releases)
[![GitHub Stars](https://img.shields.io/github/stars/meysam81/albert?label=GitHub%20stars)](https://github.com/meysam81/albert/stargazers)
[![GitHub Release Downloads](https://img.shields.io/github/downloads/meysam81/albert/total?label=GitHub%20Release%20Downloads)](https://github.com/meysam81/albert/releases)
[![Cargo Crate](https://img.shields.io/crates/v/albert)](https://crates.io/crates/albert)
[![Crate Download](https://img.shields.io/crates/d/albert?label=crate%20download)](https://crates.io/crates/albert)
[![License](https://img.shields.io/github/license/meysam81/albert)](https://github.com/meysam81/albert)- [Albert](#albert)
- [Installation](#installation)
- [Ubuntu](#ubuntu)
- [macOS](#macos)
- [macOS (M1)](#macos-m1)
- [Alpine](#alpine)
- [Usage](#usage)
- [Examples](#examples)
- [Contributing](#contributing)
- [License](#license)Perform mathematical operations on the command line.
**NOTE:** This is a work in progress and it is not ready for production use!
Expect any and all the APIs to change without notice prior to the first stable
release.## Installation
All the distributed binaries have the corresponding checksums available. To
fetch the checksum, add the `.sha256` extension to the binary name. For
example, to fetch the checksum for the `al-x86_64-unknown-linux-gnu` binary,
run:```bash
curl -LfO https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu
curl -LfO https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu.sha256
sha256sum -c al-x86_64-unknown-linux-gnu.sha256
```### Ubuntu
```bash
curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-gnu -o al
chmod +x al
```### macOS
```bash
curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-apple-darwin -o al
chmod +x al
```### macOS (M1)
```bash
curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-aarch64-apple-darwin -o al
chmod +x al
```### Alpine
```bash
curl -sSLf https://github.com/meysam81/albert/releases/latest/download/al-x86_64-unknown-linux-musl -o al
chmod +x al
```## Usage
Currently the following mathematical operations are supported:
- Addition
- Subtraction
- Multiplication
- Division## Examples
```bash
$ al 1 + 2
3
$ al 1 - 2 x 4
-7
$ al 1 - 2 x 4 / 2
-3
```## Contributing
If you see any issue, have a feature request, or want to contribute, please
feel free to open an issue or a pull request. Any and all contributions are
welcome.## License
This project is licensed under the [Apache License, Version 2.0](LICENSE).