pybaht


Namepybaht JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/jojoee/pybaht
SummaryBaht library for Python
upload_time2023-05-22 10:10:08
maintainer
docs_urlNone
authorNathachai Thongniran
requires_python
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pybaht

[![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)
[![release](https://github.com/jojoee/pybaht/actions/workflows/release.yml/badge.svg?branch=main)](https://github.com/jojoee/pybaht/actions/workflows/release.yml)
[![PyPI version fury.io](https://badge.fury.io/py/pybaht.svg)](https://pypi.python.org/pypi/pybaht/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![codecov](https://codecov.io/gh/jojoee/pybaht/branch/main/graph/badge.svg)](https://codecov.io/gh/jojoee/pybaht)

Baht library for Python

## Installation

```
pip install pybaht
```

## Usage

```python
from pybaht import bahttext

bahttext(37) == "สามสิบเจ็ดบาทถ้วน"
bahttext(63147.89) == "หกหมื่นสามพันหนึ่งร้อยสี่สิบเจ็ดบาทแปดสิบเก้าสตางค์"
bahttext(-0.36) == "ลบสามสิบหกสตางค์"
```

## Development

```bash
# Conda env
conda create --name pybaht python=3.10.4
conda activate pybaht
 
# test case file
curl -L -o ./tests/testcases.csv https://docs.google.com/spreadsheets/d/e/2PACX-1vTb8PIKzgo07rn9UpcjqE0YrdMAmf4fyDbL2plUieLCyrn_5O3vDvece7UfkaArWQLUSsaw92jVpY_z/pub?gid=0&single=true&output=csv
csvtojson ./tests/testcases.csv | jq > ./tests/testcases.json
```

## Other languages
- JavaScript: [jojoee/bahttext](https://github.com/jojoee/bahttext)

## Reference
- [Google Sheets BAHTTEXT function](https://support.google.com/docs/answer/9982303?hl=en)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jojoee/pybaht",
    "name": "pybaht",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Nathachai Thongniran",
    "author_email": "inid3a@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/29/96/0a54bb98ca1a9c1d15a4a72c935ba9cfb1199f25ef2d27210002d38461ab/pybaht-0.2.0.tar.gz",
    "platform": null,
    "description": "# 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) == \"\u0e2a\u0e32\u0e21\u0e2a\u0e34\u0e1a\u0e40\u0e08\u0e47\u0e14\u0e1a\u0e32\u0e17\u0e16\u0e49\u0e27\u0e19\"\nbahttext(63147.89) == \"\u0e2b\u0e01\u0e2b\u0e21\u0e37\u0e48\u0e19\u0e2a\u0e32\u0e21\u0e1e\u0e31\u0e19\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e23\u0e49\u0e2d\u0e22\u0e2a\u0e35\u0e48\u0e2a\u0e34\u0e1a\u0e40\u0e08\u0e47\u0e14\u0e1a\u0e32\u0e17\u0e41\u0e1b\u0e14\u0e2a\u0e34\u0e1a\u0e40\u0e01\u0e49\u0e32\u0e2a\u0e15\u0e32\u0e07\u0e04\u0e4c\"\nbahttext(-0.36) == \"\u0e25\u0e1a\u0e2a\u0e32\u0e21\u0e2a\u0e34\u0e1a\u0e2b\u0e01\u0e2a\u0e15\u0e32\u0e07\u0e04\u0e4c\"\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&single=true&output=csv\ncsvtojson ./tests/testcases.csv | jq > ./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",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Baht library for Python",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/jojoee/pybaht"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "336b639d5d37cbe25339d4b7ac6ebee7b1bacacecaa6f9e1f39f9df22234d448",
                "md5": "d19543a2b9cb71ee5d1dfd5808969ab1",
                "sha256": "810dbaaa2523f9ee0b580c9ee67dbdacac442b0596ae59572c1d40e4df094cbb"
            },
            "downloads": -1,
            "filename": "pybaht-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d19543a2b9cb71ee5d1dfd5808969ab1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4640,
            "upload_time": "2023-05-22T10:10:06",
            "upload_time_iso_8601": "2023-05-22T10:10:06.753450Z",
            "url": "https://files.pythonhosted.org/packages/33/6b/639d5d37cbe25339d4b7ac6ebee7b1bacacecaa6f9e1f39f9df22234d448/pybaht-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "29960a54bb98ca1a9c1d15a4a72c935ba9cfb1199f25ef2d27210002d38461ab",
                "md5": "ca2039afd952d133fdeac208e6b553b3",
                "sha256": "c08b3265ca113f79a11c7e3f5eda91ba018c3f74a6e0faf16600484ce4da2df6"
            },
            "downloads": -1,
            "filename": "pybaht-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ca2039afd952d133fdeac208e6b553b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4044,
            "upload_time": "2023-05-22T10:10:08",
            "upload_time_iso_8601": "2023-05-22T10:10:08.000792Z",
            "url": "https://files.pythonhosted.org/packages/29/96/0a54bb98ca1a9c1d15a4a72c935ba9cfb1199f25ef2d27210002d38461ab/pybaht-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-22 10:10:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jojoee",
    "github_project": "pybaht",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pybaht"
}
        
Elapsed time: 0.06336s