{"id":15538433,"url":"https://github.com/ali77gh/persiantoolscli","last_synced_at":"2025-04-13T21:37:29.220Z","repository":{"id":239027874,"uuid":"798306700","full_name":"ali77gh/PersianToolsCli","owner":"ali77gh","description":"Command line interface for rust-persian-tools library.","archived":false,"fork":false,"pushed_at":"2024-07-31T15:30:06.000Z","size":511,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-09T12:26:59.642Z","etag":null,"topics":["cli","persian-tools"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/persian-tools-cli","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/ali77gh.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":"2024-05-09T14:12:50.000Z","updated_at":"2024-07-31T15:30:09.000Z","dependencies_parsed_at":"2024-05-09T15:39:33.485Z","dependency_job_id":"ab0b7449-3388-4aa3-bef8-254077a4ab42","html_url":"https://github.com/ali77gh/PersianToolsCli","commit_stats":null,"previous_names":["ali77gh/persiantoolscli"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali77gh%2FPersianToolsCli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali77gh%2FPersianToolsCli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali77gh%2FPersianToolsCli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ali77gh%2FPersianToolsCli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ali77gh","download_url":"https://codeload.github.com/ali77gh/PersianToolsCli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788851,"owners_count":21161726,"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":["cli","persian-tools"],"created_at":"2024-10-02T12:03:54.480Z","updated_at":"2025-04-13T21:37:29.188Z","avatar_url":"https://github.com/ali77gh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Persian Tools Cli\n\nCommand line interface for [rust-persian-tools](https://github.com/persian-tools/rust-persian-tools) library.\n\n## Example\n\n### With param\n\nYou can pass input by -i option:\n\n\u003cimg src=\"./example-with-param.png\" width=600\u003e\u003c/img\u003e\n\n### With std-in\n\n\u003cimg src=\"./example-with-stdin.png\" width=600\u003e\u003c/img\u003e\n\n## Help page\n\n```posh\npersian-tools-cli\ncli for rust-persian-tools crate\n\nUsage: persian-tools-cli [OPTIONS] \u003cCOMMAND\u003e\n\nCommands:\n  add-commas                        Adds commas to number,\n  remove-commas                     Remove commas from number, example: 3,100 -\u003e 3100\n  add-ordinal-suffix                Add persian ordinal suffix to numbers, example: \"بیست و یک\" -\u003c \"بیست و یکم\"\n  remove-ordinal-suffix             Remove persian ordinal suffix from numbers, example: \"بیست و یکم\" -\u003c \"بیست و یک\"\n  has-arabic                        Return true if the entered string includes arabic characters\n  is-arabic                         Return true if the entered string does not include other-language characters\n  to-arabic                         Description: Replaces all instances of ی and ک with  ي and ك,\n  get-bill-type                     Gets barcode as input and returns bill type types: (Water, Electricity, Gas, Tel, Mobile, Municipality, Tax, DrivingOffense)\n  get-bill-amount                   Gets barcode as input and returns bill amount in Rials\n  digits-fa-to-en                   \"۵۴۱\" -\u003e \"541\"\n  digits-en-to-fa                   \"541\" -\u003e \"۵۴۱\"\n  digits-en-to-ar                   \"451\" -\u003e \"٤٥۱\"\n  digits-ar-to-en                   \"٤٥۱\" -\u003e \"451\"\n  digits-fa-to-ar                   \"۴۵۱\" -\u003e \"٤٥۱\"\n  digits-ar-to-fa                   \"٤٥۱\" -\u003e \"451\"\n  extract-card-number               Returns list of card numbers extracted from input separated with ','\n  find-capital-by-province          \"البرز\" -\u003c \"کرج\"\n  get-bank-name-by-card-number      6219861000000000 -\u003e \"بانک سامان\"\n  get-city-by-iran-national-id      \u003cnational_id\u003e -\u003e \"کرج\"\n  get-province-by-iran-national-id  \u003cnational_id\u003e -\u003e \"البرز\"\n  add-half-space                    Takes input and make it standard in case of using half space\n  remove-half-space                 Opposite of add-half-space\n  verify-iranian-legal-id           اعتبار سنجی شناسه حقوقی Returns true|false\n  verify-iranian-national-id        اعتبار سنجی کد ملی Returns true|false\n  get-plate-type                    Input is a car or motorcycle number plate Returns (car | motorcycle)\n  get-plate-province                Input is a car or motorcycle number plate Returns نام استان\n  get-plate-category                Input is a car or motorcycle number plate Returns (دیپلمات - سفارتخانه - تاکسی - ارتش - شخصی و...)\n  number-to-words                   \"5677\" -\u003e \"پنج هزار و ششصد و هفتاد و هفت\"\n  has-persian                       Return true if the entered string includes persian characters\n  is-persian                        Return true if the entered string does not include other-language characters\n  to-persian-chars                  Description: Replaces all instances of ي and ك with ی and ک,\n  is-phone-valid                    Phone number as input and returns (false|true)\n  get-operator-prefix               09387891234 -\u003e 938, +989387891234 -\u003e 938, 00989387891234 -\u003e 938\n  get-phone-operator                09380000000 -\u003e Irancell\n  get-phone-province                09140000000 -\u003e تبریز\n  is-sheba-valid                    شماره شبا رو اعتبار سنجی میکنه\n  sheba-to-bank-name                شماره شبا رو میگیره و اسم بانک بر میگردونه\n  sheba-to-persian-bank-name        شماره شبا رو میگیره و اسم فارسی بانک بر میگردونه\n  time-diff                         برای دو لحظه از زمان یک متن فارسی تولید میکنه که اختلاف دو لحظه رو توصیف میکنه\n  url-fix                           حروف فارسی رو به فرمتی تبدیل میکنه که در url قابل استفاده باشه\n  verify-card-number                شماره کارت بانکی رو اعتبار سنجی میکنه\n  words-to-number                   حروف فارسی رو به عدد تبدیل میکنه\n  help                              Print this message or the help of the given subcommand(s)\n\nOptions:\n  -i, --input \u003cINPUT\u003e  if you don't pass --input param it will take std-in as input\n  -h, --help           Print help\n  -V, --version        Print version\n```\n\n\n## Installation\n\nThere is three ways to install persian tools cli\n\n### 1. Download binary\n\nDownload binary from [here](https://github.com/ali77gh/PersianToolsCli/releases).\nadd binary to your PATH\n\n### 2. Install from crates.io\n\nIf you have cargo installed you can install this tool simply by running:\n\n```posh\ncargo add persian-tools-cli\n```\n\n### 3. Build from source\n\n```posh\ngit clone https://github.com/ali77gh/PersianToolsCli.git\ncd PersianToolsCli\ncargo build --release\n\n# linux\ncp ./target/release/project_analyzer /usr/bin\n\n# MacOS\ncp ./target/release/project_analyzer /usr/local/bin/\n\n# Windows\n# add binary to Environment Variables Path\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali77gh%2Fpersiantoolscli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali77gh%2Fpersiantoolscli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali77gh%2Fpersiantoolscli/lists"}