{"id":13408755,"url":"https://github.com/idanpa/calcpy","last_synced_at":"2025-04-06T22:11:20.749Z","repository":{"id":130679651,"uuid":"484959111","full_name":"idanpa/calcpy","owner":"idanpa","description":"Terminal calculator and advanced math solver using Python, IPython and SymPy","archived":false,"fork":false,"pushed_at":"2025-01-26T07:48:30.000Z","size":400,"stargazers_count":96,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T21:09:28.054Z","etag":null,"topics":["calculator","cli","console-application","console-calculator","ipython","programmer-calculator","python-calculator","scientific-calculator","sympy","terminal-calculator","tui"],"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/idanpa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-24T07:39:48.000Z","updated_at":"2025-03-01T09:29:38.000Z","dependencies_parsed_at":"2024-02-25T19:25:46.623Z","dependency_job_id":"7507ae47-91b0-4250-b5e0-6c894b632866","html_url":"https://github.com/idanpa/calcpy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanpa%2Fcalcpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanpa%2Fcalcpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanpa%2Fcalcpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idanpa%2Fcalcpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idanpa","download_url":"https://codeload.github.com/idanpa/calcpy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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":["calculator","cli","console-application","console-calculator","ipython","programmer-calculator","python-calculator","scientific-calculator","sympy","terminal-calculator","tui"],"created_at":"2024-07-30T20:00:55.037Z","updated_at":"2025-04-06T22:11:20.726Z","avatar_url":"https://github.com/idanpa.png","language":"Python","funding_links":[],"categories":["\u003ca name=\"calc\"\u003e\u003c/a\u003eCalculators"],"sub_categories":[],"readme":"\u003cimg src=\"docs/icon.svg\" width=\"70\" align=\"left\"\u003e\n\n# CalcPy\n\nTerminal programmer calculator and advanced math solver using Python, IPython and SymPy.  \nThe missing tweaks for using Python as a calculator.\n\n## 🖥 Usage\n\n\u003cp align=\"left\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/demo/demo_dark.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"docs/demo/demo_light.svg\"\u003e\n    \u003cimg src=\"docs/demo/demo_light.svg\"\u003e\n  \u003c/picture\u003e\n\u003c/p\u003e\n\n**[🚀 Try online](https://calcpy.duckdns.org)**\n\n## 📦 Installation\n\n```\npip install https://github.com/idanpa/calcpy/archive/main.zip\n```\n[Android installation](docs/android.md)  \n\n## ✨ Features\n\n* Display both symbolic and numeric solutions\n* Integers displayed as decimal, hex and binary\n* Evaluation preview while typing\n* Currency conversion `10USD` (`calcpy.base_currency='EUR'` to change base currency) (by [ECB](https://www.ecb.europa.eu/))\n* `?` suffix provides some basic analysis of expression (similar to [WolframAlpha](https://www.wolframalpha.com/))  \n`((1,2),(3,4))?`, `x**2+1?`, `234?`\n* Automatic symbolic variables, anything like `x` `y_1` is a sympy symbol\n* Symbolic variables assumptions are uniform, `symbols(x, real=True)` would change all occurencase of `x` to be real\n* Implicit multiplication (`2x`, `(x+1)(x-1)` are valid)\n* Nested tuples are matrices `((1,2),(3,4))**2`        \n* All variables and functions are restored between sessions (delete using `del`)\n* Datetime calculations `d\"yesterday at 9 am\" - d\"1990-1-30 9:20\"` (by [dateparser](https://github.com/scrapinghub/dateparser))\n* Sizes `KB`, `MB`, `GB`, `TB` (e.g. `4MB-32KB`)\n* Unit prefixes `G`, `M`, `k`, `m`, `u`, `n`, `p` (`4G/3.2n`, enable by `calcpy.units_prefixes=True`)\n* Implicit lambda `f(a,b):=a**2+b**2`\n* Latex input `diff($\\frac{1,x}$)` (latex output with `latex(1/x)`)\n* Copy to clipboard `copy(_)` would copy last result\n* Custom user startup (for imports, etc.) `edit_user_startup()`\n* Persistent configuration, see options with `calcpy?`\n\n#### [SymPy](https://www.sympy.org)\n\n* All the elementary (and non-elementry) math functions and constants - `ln`, `sin`, `e`, `pi` etc. \n* Calculus, algebra, plotting - `diff`, `integrate`, `limit`, `Sum`, `solve`, `plot`, `plot_implicit` etc.\n\n#### [IPython](https://ipython.org)\n\n* Get last result with `_`, get specific cell `_12` (`Out[12]` works too) \n* `func_name?` show docs for func_name\n* `who`/`who_ls` see all defined variables\n* Prompt history with `up`/`down`, search with `ctrl+r`\n* Autocomplete with `tab`\n* Edit code on editor with `%edit func_name`\n\n#### [Python](https://www.python.org/)\n\n* All the basic arithmetic `+`,`-`,`*`,`/`,`**` or `^`\n* Binary and hex input `0b1101`, `0xafe1`\n* Scientific notation `2.12e-6`\n* Programmer operations `//` integer division, `%` modulo, `\u0026` bitwise AND, `|` bitwise OR, `^^` bitwise XOR (on calcpy `^` is exponentiation, disable with `calcpy.caret_power`), `~` bitwise not, `\u003e\u003e`/`\u003c\u003c` right/left shift. \n\n## 🤝 Contributing\n\nFeel free to open an issue for bugs/features,  send a pull request  or star.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidanpa%2Fcalcpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidanpa%2Fcalcpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidanpa%2Fcalcpy/lists"}