{"id":30137524,"url":"https://github.com/openscilab/xnum","last_synced_at":"2026-01-29T07:33:02.909Z","repository":{"id":305406089,"uuid":"1012143297","full_name":"openscilab/xnum","owner":"openscilab","description":"XNum: Universal Numeral System Converter","archived":false,"fork":false,"pushed_at":"2026-01-02T01:23:36.000Z","size":836,"stargazers_count":26,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-02T22:41:54.902Z","etag":null,"topics":["converter","number","numbers","numeral","numeral-systems","python"],"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/openscilab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-01T22:11:35.000Z","updated_at":"2025-12-11T15:52:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"705154f2-bcce-4278-87f0-6b4799c9234c","html_url":"https://github.com/openscilab/xnum","commit_stats":null,"previous_names":["openscilab/xnum"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/openscilab/xnum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscilab%2Fxnum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscilab%2Fxnum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscilab%2Fxnum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscilab%2Fxnum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openscilab","download_url":"https://codeload.github.com/openscilab/xnum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openscilab%2Fxnum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28870389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T06:56:44.678Z","status":"ssl_error","status_checked_at":"2026-01-29T06:56:35.794Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["converter","number","numbers","numeral","numeral-systems","python"],"created_at":"2025-08-11T00:25:03.983Z","updated_at":"2026-01-29T07:33:02.901Z","avatar_url":"https://github.com/openscilab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/openscilab/xnum/raw/main/otherfiles/logo.png\" alt=\"XNum Logo\" width=\"220\"\u003e\n    \u003ch1\u003eXNum: Universal Numeral System Converter\u003c/h1\u003e\n    \u003cbr/\u003e\n    \u003ca href=\"https://badge.fury.io/py/xnum\"\u003e\u003cimg src=\"https://badge.fury.io/py/xnum.svg\" alt=\"PyPI version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.python.org/\"\u003e\u003cimg src=\"https://img.shields.io/badge/built%20with-Python3-green.svg\" alt=\"built with Python3\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/openscilab/xnum\"\u003e\u003cimg src=\"https://codecov.io/gh/openscilab/xnum/graph/badge.svg?token=0R14OKY0TB\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/openscilab/xnum\"\u003e\u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/openscilab/xnum\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://discord.gg/h8T2F8WpFN\"\u003e\u003cimg src=\"https://img.shields.io/discord/1064533716615049236.svg\" alt=\"Discord Channel\"\u003e\u003c/a\u003e\n\n\u003c/div\u003e\n\n----------\n\n\n## Overview\n\u003cp align=\"justify\"\u003e\n\u003cb\u003eXNum\u003c/b\u003e is a simple and lightweight Python library that helps you convert digits between different numeral systems — like English, Persian, Hindi, Arabic-Indic, Bengali, and more.\nIt can automatically detect mixed numeral formats in a piece of text and convert only the numbers, leaving the rest untouched. Whether you're building multilingual apps or processing localized data, \u003cb\u003eXNum\u003c/b\u003e makes it easy to handle numbers across different languages with a clean and easy-to-use API.\n\u003c/p\u003e\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\"\u003ePyPI Counter\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003ca href=\"https://pepy.tech/projects/xnum\"\u003e\n                \u003cimg src=\"https://static.pepy.tech/badge/xnum\"\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\"\u003eGithub Stars\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003ca href=\"https://github.com/openscilab/xnum\"\u003e\n                \u003cimg src=\"https://img.shields.io/github/stars/openscilab/xnum.svg?style=social\u0026label=Stars\"\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\u003ctable\u003e\n    \u003ctr\u003e \n        \u003ctd align=\"center\"\u003eBranch\u003c/td\u003e\n        \u003ctd align=\"center\"\u003emain\u003c/td\u003e\n        \u003ctd align=\"center\"\u003edev\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\"\u003eCI\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003cimg src=\"https://github.com/openscilab/xnum/actions/workflows/test.yml/badge.svg?branch=main\"\u003e\n        \u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003cimg src=\"https://github.com/openscilab/xnum/actions/workflows/test.yml/badge.svg?branch=dev\"\u003e\n            \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\u003ctable\u003e\n    \u003ctr\u003e \n        \u003ctd align=\"center\"\u003eCode Quality\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003ca href=\"https://www.codefactor.io/repository/github/openscilab/xnum\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/openscilab/xnum/badge\" alt=\"CodeFactor\"\u003e\u003c/a\u003e\u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\u003ca href=\"https://app.codacy.com/gh/openscilab/xnum/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade\"\u003e\u003cimg src=\"https://app.codacy.com/project/badge/Grade/bf656e2daeeb45569dcc0cae705bc69d\"\u003e\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n\n## Installation\n\n### PyPI\n- Check [Python Packaging User Guide](https://packaging.python.org/installing/)\n- Run `pip install xnum==1.3`\n### Source code\n- Download [Version 1.3](https://github.com/openscilab/xnum/archive/v1.3.zip) or [Latest Source](https://github.com/openscilab/xnum/archive/dev.zip)\n- Run `pip install .`\n\n## Usage\n\n```pycon\n\u003e\u003e\u003e from xnum import convert, NumeralSystem\n\u003e\u003e\u003e print(convert(\"۱۲۳ apples \u0026 ꘤꘥꘦ cars\", target=NumeralSystem.ENGLISH))\n123 apples \u0026 456 cars\n\u003e\u003e\u003e print(convert(\"۱۲۳ and 456\", source=NumeralSystem.PERSIAN, target=NumeralSystem.HINDI))\n१२३ and 456\n```\n\nℹ️ By default, the `source` parameter is set to `NumeralSystem.AUTO`, which automatically detects the numeral system\n\n## Supported numeral systems\n\n- English\n\t- Standard\n\t- Fullwidth\n\t- Subscript\n\t- Superscript\n\t- Double-Struck\n\t- Bold\n\t- Monospace\n    - Sans-Serif\n    - Sans-Serif Bold\n    - Circled\n    - Dingbat Circled Sans-Serif\n    - Dingbat Negative Circled Sans-Serif\n    - Keycap\n    - Emoji\n    - Full Stop\n    - Comma\n    - Segmented\n- Persian\n- Hindi\n- Arabic-Indic\n- Bengali\n- Thai\n- Khmer\n- Myanmar\n- Tibetan\n- Gujarati\n- Odia\n- Telugu\n- Kannada\n- Gurmukhi\n- Lao\n- Nko\n- Mongolian\n- Sinhala Lith\n- Myanmar Shan\n- Limbu\n- Vai\n- Ol Chiki\n- Balinese\n- New Tai Lue\n- Saurashtra\n- Javanese\n- Cham\n- Lepcha\n- Sundanese\n- Dives Akuru\n- Modi\n- Takri\n- Newa\n- Tirhuta\n- Sharada\n- Khudawadi\n- Chakma\n- Sora Sompeng\n- Hanifi Rohingya\n- Osmanya\n- Meetei Mayek\n- Kayah Li\n- Gunjala Gondi\n- Masaram Gondi\n- Mro\n- Wancho\n- Adlam\n- Tai Tham Hora\n- Tai Tham Tham\n- Nyiakeng Puachue Hmong\n- Malayalam\n- Brahmi\n- Myanmar Tai Laing\n\n## Issues \u0026 bug reports\n\nJust fill an issue and describe it. We'll check it ASAP! or send an email to [xnum@openscilab.com](mailto:xnum@openscilab.com \"xnum@openscilab.com\"). \n\n- Please complete the issue template\n\nYou can also join our discord server\n\n\u003ca href=\"https://discord.gg/h8T2F8WpFN\"\u003e\n  \u003cimg src=\"https://img.shields.io/discord/1064533716615049236.svg?style=for-the-badge\" alt=\"Discord Channel\"\u003e\n\u003c/a\u003e\n\n## References\n\n\u003cblockquote\u003e1- \u003ca href=\"https://www.compart.com/en/unicode\"\u003eUnicode - Compart\u003c/a\u003e\u003c/blockquote\u003e\n\n\u003cblockquote\u003e2- \u003ca href=\"https://symbl.cc\"\u003eSYMBL (◕‿◕) Symbols, Emojis, Characters, Scripts, Alphabets, Hieroglyphs and the entire Unicode\u003c/a\u003e\u003c/blockquote\u003e\n\n\u003cblockquote\u003e3- \u003ca href=\"https://emojipedia.org/\"\u003e📙 Emojipedia — 😃 Home of Emoji Meanings 💁👌🎍😍\u003c/a\u003e\u003c/blockquote\u003e\n\n## Show your support\n\n\n### Star this repo\n\nGive a ⭐️ if this project helped you!\n\n### Donate to our project\nIf you do like our project and we hope that you do, can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do ;-) .\t\t\t\n\n\u003ca href=\"https://openscilab.com/#donation\" target=\"_blank\"\u003e\u003cimg src=\"https://github.com/openscilab/xnum/raw/main/otherfiles/donation.png\" width=\"270\" alt=\"XNum Donation\"\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscilab%2Fxnum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenscilab%2Fxnum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenscilab%2Fxnum/lists"}