{"id":42310664,"url":"https://github.com/ajithvcoder/numt","last_synced_at":"2026-01-27T11:30:45.165Z","repository":{"id":296519242,"uuid":"993409364","full_name":"ajithvcoder/numt","owner":"ajithvcoder","description":"NumT is a utility library for formatting numbers, currencies, dates, units, and more.","archived":false,"fork":false,"pushed_at":"2025-05-31T14:33:57.000Z","size":35,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-31T20:28:23.251Z","etag":null,"topics":["formatter","numeric","pricing","si-unit-conversion"],"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/ajithvcoder.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2025-05-30T18:34:33.000Z","updated_at":"2025-05-31T14:34:01.000Z","dependencies_parsed_at":"2025-05-31T20:28:41.352Z","dependency_job_id":null,"html_url":"https://github.com/ajithvcoder/numt","commit_stats":null,"previous_names":["ajithvcoder/numt"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ajithvcoder/numt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2Fnumt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2Fnumt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2Fnumt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2Fnumt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajithvcoder","download_url":"https://codeload.github.com/ajithvcoder/numt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajithvcoder%2Fnumt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28812381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T07:41:26.337Z","status":"ssl_error","status_checked_at":"2026-01-27T07:41:08.776Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["formatter","numeric","pricing","si-unit-conversion"],"created_at":"2026-01-27T11:30:44.341Z","updated_at":"2026-01-27T11:30:45.160Z","avatar_url":"https://github.com/ajithvcoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NumT\n\nNumT is a powerful Python utility library for formatting numbers, currencies, dates, units, and more. It provides a simple and consistent interface for handling various numerical formatting needs.\n\n## Features\n\n- Currency formatting with support for multiple formats (Western, Indian, Continental, Swiss)\n- SI unit conversions and formatting for length, mass, and time\n- Number to word conversion with support for short and long formats\n- Human-readable number formatting with customizable precision\n\n## Installation\n\nNumT is available on PyPI and can be installed using pip:\n\n```bash\npip install numt\n```\n\nOr using Poetry:\n\n```bash\npoetry add numt\n```\n\n## Usage Examples\n\n### Currency Formatting\n\n```python\nfrom numt import format_currency\n\n# Western format (default)\nprint(format_currency(1234567.89))  # $1,234,567.89\n\n# Indian format\nprint(format_currency(1234567.89, format_type=\"indian\"))  # ₹12,34,567.89\n\n# Continental format\nprint(format_currency(1234567.89, format_type=\"continental\"))  # €1.234.567,89\n\n# Swiss format\nprint(format_currency(1234567.89, format_type=\"swiss\"))  # CHF 1'234'567.89\n```\n\n### SI Unit Conversions\n\n```python\nfrom numt import convert_si, Length, Mass, Time\n\n# Length conversions\nlength = Length(1500, \"m\")\nprint(length.format())  # 1.50 km\n\n# Mass conversions\nmass = Mass(0.5, \"kg\")\nprint(mass.format())  # 500.00 g\n\n# Time conversions\ntime = Time(3660, \"s\")\nprint(time.format())  # 1.02 h\n\n# Direct conversion\nresult = convert_si(1000, \"m\", \"km\", \"length\")\nprint(result)  # 1.0\n```\n\n### Number Formatting\n\n```python\nfrom numt import to_words\n\n# Short format\nprint(to_words(1234567))  # 1.23 M\nprint(to_words(1234567, format_type=\"long\"))  # 1.23 million\n\n# With precision\nprint(to_words(1234567, precision=1))  # 1.2 M\n\n# Strip zero cents\nprint(to_words(1000.00, strip_zero_cents=True))  # 1 K\n```\n\n## Development\n\n### Setup Development Environment\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/yourusername/numt.git\ncd numt\n```\n\n2. Install dependencies using Poetry:\n```bash\npoetry install\n```\n\n3. Install pre-commit hooks:\n```bash\npoetry run pre-commit install\n```\n\n### Running Tests\n\n```bash\npoetry run pytest\n```\n\n### Building the Package\n\n```bash\npoetry build\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guidelines](CONTRIBUTING.md) for details on how to submit pull requests, report issues, and suggest improvements.\n\n## Code of Conduct\n\nPlease read our [Code of Conduct](CODE_OF_CONDUCT.md) to keep our community approachable and respectable.\n\n## License\n\nThis project is licensed under the terms of the [LICENSE](LICENSE) file.\n\n## Changelog\n\nSee the [CHANGELOG.md](CHANGELOG.md) file for a list of changes between versions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fnumt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajithvcoder%2Fnumt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajithvcoder%2Fnumt/lists"}