{"id":17797093,"url":"https://github.com/anselmoo/bashcalc","last_synced_at":"2025-07-13T00:38:33.545Z","repository":{"id":52686764,"uuid":"270793744","full_name":"Anselmoo/bashcalc","owner":"Anselmoo","description":"Instant calculating from the terminal into the terminal","archived":false,"fork":false,"pushed_at":"2021-04-21T04:32:56.000Z","size":48,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T04:54:45.572Z","etag":null,"topics":["bash","data-science","python3","zsh"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anselmoo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-08T19:11:13.000Z","updated_at":"2020-06-28T15:01:58.000Z","dependencies_parsed_at":"2022-08-22T05:21:26.886Z","dependency_job_id":null,"html_url":"https://github.com/Anselmoo/bashcalc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Anselmoo/bashcalc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fbashcalc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fbashcalc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fbashcalc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fbashcalc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anselmoo","download_url":"https://codeload.github.com/Anselmoo/bashcalc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anselmoo%2Fbashcalc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265076115,"owners_count":23707512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","data-science","python3","zsh"],"created_at":"2024-10-27T11:50:49.580Z","updated_at":"2025-07-13T00:38:33.336Z","avatar_url":"https://github.com/Anselmoo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Travis (.com)](https://img.shields.io/travis/com/Anselmoo/bashcalc?logo=travis)](https://travis-ci.com/Anselmoo/bashcalc)\n[![Codecov](https://img.shields.io/codecov/c/github/Anselmoo/bashcalc?logo=Codecov)](https://codecov.io/gh/Anselmoo/bashcalc)\n[![CodeFactor](https://img.shields.io/codefactor/grade/github/Anselmoo/bashcalc?logo=codefactor)](https://www.codefactor.io/repository/github/anselmoo/bashcalc)\n[![Code Style: Black](https://img.shields.io/badge/code%20style-black-black.svg)](https://github.com/ambv/black)\n[![GitHub](https://img.shields.io/github/license/Anselmoo/bashcalc?logo=GitHub)](https://github.com/Anselmoo/bashcalc/blob/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/bashcalc?logo=pypi\u0026logoColor=yellow)](https://pypi.org/project/bashcalc/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bashcalc?logo=python\u0026logoColor=yellow)](https://pypi.org/project/bashcalc/)\n# bashcalc\n\n## Instant calculating from the terminal into the terminal\n\n---\n\n`bashcalc` is an instant command-line tool for calculating directly mathematical expression into the terminal.\n\nIt is designed for working on cluster-server, where numbers or expressions have to be calculated without starting a new application or blogging any terminal windows. Therefore it will just show the result and immediately close. For this purpose, it is a pure `python` based and does not require any additional packages.\n\nThe idea is to have a simplistic tool that can quickly plot the results to the screen with various options:\n\n1. simple example\n\n```bash\n╰─ bashcalc 1230/2\n\u003e\u003e\u003e 615\n```\n\n2. advanced example\n\n```bash\n╰─ pipenv run bashcalc \"2*exp(3+(2//3))\"\n\u003e\u003e\u003e 40.1710738463753358473695698194205760955810546875\n```\n\n3. advanced example with rounded output\n\n```bash\n╰─ pipenv run bashcalc \"2*exp(3+(2//3))\" -r 5\n\u003e\u003e\u003e 40.17107\n```\n\n4. advanced example as scientific output\n\n```bash\n╰─ pipenv run bashcalc \"2*exp(3+(2//3))\" -s 5 -b\n\u003e\u003e\u003e 4.01711E+1\n```\n\n## Installation\n\n---\n\n`pip install bashcalc`\n\nor\n\n`pip install https://github.com/Anselmoo/bashcalc.git`\n\nor\n\n```bash\npython setup.py install\n```\n\n## Options\n\n---\n\n```bash\n\n╰─ pipenv run bashcalc -h\nusage: bashcalc [-h] [-c COLOR] [-b] [-u] [-i] [-r ROUND] [-s SCIENCE] [-v]\n                infile\n\ncopy or rename any file(s) to a hash-secured filename via terminal\n\npositional arguments:\n  infile                Write the mathematic expression like: \"(2 + 4) * 3\"\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -c COLOR, --color COLOR\n                        define the color of the output. The following options\n                        are available:default, black,\n                        red, green, yellow,\n                        blue, magenta, cyan,\n                        lightgray, darkgray,\n                        lightred, lightgreen,\n                        lightyellow, lightblue,\n                        lightmagenta, lightcyan,\n                        white\n  -b, --bold            Print results in bold mode\n  -u, --underlined      Print results in underlined mode\n  -i, --int             Result will be printed as intiger-value\n  -r ROUND, --round ROUND\n                        Result will be printed as rounded float-value for\n                        given number of digits\n  -s SCIENCE, --science SCIENCE\n                        Result will be printed in scientific notation\n  -v, --version         displays the current version of bashcalc\n```\n\n## Author\n\n---\n\n- [Anselm Hahn](https://github.com/Anselmoo)\n\n## Contributions\n\n---\n\nI'm happy to accept how to improve batchplot; please forward your [issues](https://github.com/Anselmoo/bashcalc/issues) or [pull requests](https://github.com/Anselmoo/bashcalc/pulls).\n\nKeep in mind that [pull requests](https://github.com/Anselmoo/bashcalc/pulls) have to pass TravisCI in combination with [flake8](https://github.com/PyCQA/flake8), [black](https://github.com/psf/black), and [pydocstyle](https://github.com/PyCQA/pydocstyle).\n\n## License\n\n---\n\nThe source code of `bashplot` is licensed under the [MIT license](https://github.com/Anselmoo/bashcalc/blob/master/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanselmoo%2Fbashcalc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanselmoo%2Fbashcalc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanselmoo%2Fbashcalc/lists"}