Skip to main content

Baht library for Python

Project description

pybaht

CI and CD PyPI version fury.io License: MIT codecov

Baht library for Python

Installation

pip install pybaht

Usage

from pybaht import bahttext

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

Development

# 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

Reference

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybaht-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pybaht-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pybaht-0.1.0.tar.gz.

File metadata

  • Download URL: pybaht-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for pybaht-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1debcd202ae6bf74b4973cb44e3b4caa1c02257bd394b92229b7db860cba981a
MD5 b034c679f597d74ade4376a5686034cd
BLAKE2b-256 996ac15f4692e8c612746f12c44276fdf9e5349724965064635a16ee67913e87

See more details on using hashes here.

File details

Details for the file pybaht-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pybaht-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.4 keyring/23.5.1 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for pybaht-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c11f312de5ea5e5d51dc90e6da7f438b65d7215c50dbfec53edc337131ab8bd3
MD5 9fffc75ee57d474ea7eb0c8d8a6b6893
BLAKE2b-256 94eab9cc592afa30dfb217a73ad99a298e1f911c00c86780e884392c3ba2f124

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page