{"id":18709113,"url":"https://github.com/jojoee/pybaht","last_synced_at":"2025-04-12T10:35:03.228Z","repository":{"id":62591916,"uuid":"498614742","full_name":"jojoee/pybaht","owner":"jojoee","description":"Baht library for Python","archived":false,"fork":false,"pushed_at":"2023-05-22T10:10:05.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T18:08:15.150Z","etag":null,"topics":["baht","baht-text","bahttext","thai"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pybaht/","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/jojoee.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-06-01T06:19:34.000Z","updated_at":"2023-03-05T00:03:51.000Z","dependencies_parsed_at":"2024-11-07T12:42:22.161Z","dependency_job_id":null,"html_url":"https://github.com/jojoee/pybaht","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpybaht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpybaht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpybaht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jojoee%2Fpybaht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jojoee","download_url":"https://codeload.github.com/jojoee/pybaht/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248553836,"owners_count":21123528,"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":["baht","baht-text","bahttext","thai"],"created_at":"2024-11-07T12:26:20.540Z","updated_at":"2025-04-12T10:35:03.217Z","avatar_url":"https://github.com/jojoee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pybaht\n\n[![continuous-integration](https://github.com/jojoee/pybaht/actions/workflows/continuous-integration.yml/badge.svg?branch=main)](https://github.com/jojoee/pybaht/actions/workflows/continuous-integration.yml)\n[![release](https://github.com/jojoee/pybaht/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/jojoee/pybaht/actions/workflows/release.yml)\n[![PyPI version fury.io](https://badge.fury.io/py/pybaht.svg)](https://pypi.python.org/pypi/pybaht/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![codecov](https://codecov.io/gh/jojoee/pybaht/branch/main/graph/badge.svg)](https://codecov.io/gh/jojoee/pybaht)\n\nBaht library for Python\n\n## Installation\n\n```\npip install pybaht\n```\n\n## Usage\n\n```python\nfrom pybaht import bahttext\n\nbahttext(37) == \"สามสิบเจ็ดบาทถ้วน\"\nbahttext(63147.89) == \"หกหมื่นสามพันหนึ่งร้อยสี่สิบเจ็ดบาทแปดสิบเก้าสตางค์\"\nbahttext(-0.36) == \"ลบสามสิบหกสตางค์\"\n```\n\n## Development\n\n```bash\n# Conda env\nconda create --name pybaht python=3.10.4\nconda activate pybaht\n \n# test case file\ncurl -L -o ./tests/testcases.csv https://docs.google.com/spreadsheets/d/e/2PACX-1vTb8PIKzgo07rn9UpcjqE0YrdMAmf4fyDbL2plUieLCyrn_5O3vDvece7UfkaArWQLUSsaw92jVpY_z/pub?gid=0\u0026single=true\u0026output=csv\ncsvtojson ./tests/testcases.csv | jq \u003e ./tests/testcases.json\n```\n\n## Other languages\n- JavaScript: [jojoee/bahttext](https://github.com/jojoee/bahttext)\n\n## Reference\n- [Google Sheets BAHTTEXT function](https://support.google.com/docs/answer/9982303?hl=en)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fpybaht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjojoee%2Fpybaht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjojoee%2Fpybaht/lists"}