{"id":13781445,"url":"https://github.com/rezkam/persian","last_synced_at":"2025-10-24T01:02:59.451Z","repository":{"id":10606296,"uuid":"12823010","full_name":"rezkam/persian","owner":"rezkam","description":"Simple Python tool for Persian language localization.","archived":false,"fork":false,"pushed_at":"2023-08-28T23:09:25.000Z","size":54,"stargazers_count":201,"open_issues_count":2,"forks_count":30,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-14T04:05:35.033Z","etag":null,"topics":["persian","persian-language","python","python-library"],"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/rezkam.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}},"created_at":"2013-09-14T02:05:11.000Z","updated_at":"2025-02-26T11:18:45.000Z","dependencies_parsed_at":"2022-09-04T10:25:20.755Z","dependency_job_id":null,"html_url":"https://github.com/rezkam/persian","commit_stats":null,"previous_names":["rezkam/persian","rezakamalifard/persian","itmard/persian.py"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rezkam/persian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezkam%2Fpersian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezkam%2Fpersian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezkam%2Fpersian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezkam%2Fpersian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rezkam","download_url":"https://codeload.github.com/rezkam/persian/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rezkam%2Fpersian/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985036,"owners_count":23092880,"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":["persian","persian-language","python","python-library"],"created_at":"2024-08-03T18:01:26.050Z","updated_at":"2025-10-24T01:02:54.421Z","avatar_url":"https://github.com/rezkam.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Persian\n\nA simple Python library for Persian language localization.\n\n[![Tests](https://github.com/rezakamalifard/Persian/workflows/tests/badge.svg)](https://github.com/rezakamalifard/Persian/actions)\n\nPython implementation of [Persian.js](https://github.com/usablica/persian.js)\n\n## Installation\n\n```bash\npip install persian\n```\n\n## Functions\n\n### Convert to Persian characters\n\nUsed for converting Arabic characters to Persian.\n\nExample:\n\n```python\npersian.convert_ar_characters(\"علي\")  #returns: علی\n```\n\n### Convert to English numbers from Persian Number\n\nUsed for converting Persian numbers to English.\n\nExample:\n\n```python\npersian.convert_fa_numbers(\"۱۳۷۱\")  #returns: 1371\n```\n\n### Convert to Persian numbers from Arabic Number\n\nUsed for converting Arabic numbers to Persian.\n\nExample:\n\n```python\npersian.convert_ar_numbers(\"٣٤٥\")  #returns: ۳۴۵\n```\n\n### Convert to Persian numbers from English Number\n\nUsed for converting English numbers to Persian.\n\nExample:\n\n```python\npersian.convert_en_numbers(\"345\")  #returns: ۳۴۵\n```\n\n### Change keyboard layout\n\nConverting Persian char to English char by switching the keyboard layout\n\nExample:\n\n```python\npersian.convert_en_characters(\"sghl\")   #returns: سلام\n```\n\n### Zero-width non-joiner correction\n\nExample:\n\n```python\npersian.convert_en_characters(\"آمده ای ولی من رفته ام و می آییم\")   #returns: آمده‌ای ولی من رفته‌ام و می‌آییم\n```\n\n### Decode Percent-encoding Characters in URLs\n\nExample:\n\n```python\npersian.decode_url(\"https://fa.wikipedia.org/wiki/%D8%B5%D9%81%D8%AD%D9%87%D9%94_%D8%A7%D8%B5%D9%84%DB%8C\")   #returns: https://fa.wikipedia.org/wiki/صفحهٔ_اصلی\n```\n\n## Contributors\n\n- [Reza Kamlifard](https://github.com/rezakamalifard/)\n- [Keyvan Hedayati](https://github.com/k1-hedayati)\n- [Bahram Aghaei](https://github.com/GreatBahram)\n- [Hasan Ramezani](https://github.com/hramezani)\n- [Farhad Mortezapour](https://github.com/farhadmpr)\n\n## Contributing\n\nThis is a open-source project. Fork the project, complete the code and send pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezkam%2Fpersian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frezkam%2Fpersian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frezkam%2Fpersian/lists"}