Skip to content

Python module that formats Persian number to Latin

Notifications You must be signed in to change notification settings

Kourva/ChNumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

ChNumber

Python module that formats Persian number to Latin

clone

git clone https://github.com/Kourva/ChNumber

Usage

from ChNumber import ChNumber

print(ChNumber.format("۰۹۱۴۴۱۲۳۵۱۲")) 
# Output: 
09144123512

help(ChNumber)
# Output:
Help on class ChNumber in module ChNumber:

class ChNumber(builtins.object)
 |  :: Converts Farsi numbers to Latin"
 |  
 |  Methods defined here:
 |  
 |  format(number)
 |      :: format method:
 |           -> Usage:
 |                  ChNumber.format(number)
 |           -> Example:
 |                  ChNumber.format("۰۹۱۴۶۵۷۹۸۱۴")
 |           -> Result:
 |                  "09146579814"
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  __dict__
 |      dictionary for instance variables (if defined)
 |  
 |  __weakref__
 |      list of weak references to the object (if defined)


# You need to put this module to your working directory

This is my first module! Hope you enjoy :)

About

Python module that formats Persian number to Latin

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages