{"id":21442460,"url":"https://github.com/asze17/expr.rs","last_synced_at":"2026-02-14T22:02:23.431Z","repository":{"id":38015212,"uuid":"497672833","full_name":"Cryptex-github/expr.rs","owner":"Cryptex-github","description":" A safe and simple math evaluator for Rust and Python.","archived":false,"fork":false,"pushed_at":"2022-06-21T06:41:29.000Z","size":25,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T00:06:50.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Cryptex-github.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}},"created_at":"2022-05-29T18:16:47.000Z","updated_at":"2022-05-31T19:53:32.000Z","dependencies_parsed_at":"2022-09-12T13:11:48.939Z","dependency_job_id":null,"html_url":"https://github.com/Cryptex-github/expr.rs","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/Cryptex-github%2Fexpr.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fexpr.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fexpr.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptex-github%2Fexpr.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cryptex-github","download_url":"https://codeload.github.com/Cryptex-github/expr.rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236699577,"owners_count":19190840,"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":[],"created_at":"2024-11-23T01:54:23.719Z","updated_at":"2025-10-16T08:30:44.227Z","avatar_url":"https://github.com/Cryptex-github.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# expr.rs\nA safe and simple math evaluator for Rust.\n\nRust rewrite of [expr.py](https://github.com/jay3332/expr.py)\n\n## Features\nBasic operations such as \n\n- addition\n- subtraction\n- multiplication\n- division\n- modulo\n- exponentiation\n- negation\n- factorial\n\nare supported\n\nFeatures like sin, cos, tan, log, and more are planned for the future.\n\nA python interface is also planned for the future.\n\n## Usage\n```rust\nuse expr_rs::parser;\n\nassert_eq!(parser::eval(\"1 + 2\").unwrap().to_string(), \"3\");\n```\n\nIn Python\n\n```py\nimport expr_rs\n\nassert expr_rs.eval(\"1 + 2\") == 3\n```\n\nIn CLI\n\n```bash\ncargo install expr_rs\n\nexpr 1 + 2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasze17%2Fexpr.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasze17%2Fexpr.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasze17%2Fexpr.rs/lists"}