Skip to content

Commit

Permalink
support pip
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkam committed Aug 22, 2014
1 parent 97c5e64 commit 940ea44
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 26 deletions.
46 changes: 46 additions & 0 deletions .gitignore
@@ -0,0 +1,46 @@
#Pycharms
.idea/
#dir#
/venv*

# Compiled source #
###################
*~
*.com
*.class
*.dll
*.exe
*.o
*.so
*.pyc
*.py~

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

# Logs and databases #
######################
*.log
*.sql
*.sqlite
*.db

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
11 changes: 5 additions & 6 deletions README.md
Expand Up @@ -5,8 +5,7 @@ A simple Python library for Persian language localization.
Python Version of [Persian.js](https://github.com/itmard/persian.js)

##How to use
Simply import 'persian.py' and use the functions.

import persian
##Functions

###1) Convert to Persian characters
Expand All @@ -16,7 +15,7 @@ Used for converting Arabic characters to Persian.
Example:

```python
arToPersianChar("علي") #returns: علی
persian.arToPersianChar("علي") #returns: علی
````

###2) Convert to Persian numbers from Arabic Number
Expand All @@ -26,7 +25,7 @@ Used for converting Arabic numbers to Persian.
Example:

```python
arToPersianNumb("٣٤٥") #returns: ۳۴۵
persian.arToPersianNumb("٣٤٥") #returns: ۳۴۵
````
###3) Convert to Persian numbers from English Number
----------
Expand All @@ -35,7 +34,7 @@ Used for converting English numbers to Persian.
Example:

```python
enToPersianNumb("345") #returns: ۳۴۵
persian.enToPersianNumb("345") #returns: ۳۴۵
````

###4) Change keyboard layout
Expand All @@ -46,7 +45,7 @@ Example:

```python

enToPersianchar("لخخلمث") #returns: google
persian.enToPersianchar("لخخلمث") #returns: google
````
##Contributors

Expand Down
5 changes: 0 additions & 5 deletions arToPersianChar_test.py

This file was deleted.

5 changes: 0 additions & 5 deletions arToPersianNumb_test.py

This file was deleted.

5 changes: 0 additions & 5 deletions enToPersianChar_test.py

This file was deleted.

5 changes: 0 additions & 5 deletions enToPersianNumb_test.py

This file was deleted.

File renamed without changes.
20 changes: 20 additions & 0 deletions setup.py
@@ -0,0 +1,20 @@
import os
from setuptools import setup

setup(
name = "persian",
version = "0.0.3",
author = "Mohammad Reza Kamalifard",
author_email = "mr.kamalifard@gmail.com",
description = ("A simple Python library for Persian language localization"),
license = "BSD",
keywords = "example documentation tutorial",
url = "http://packages.python.org/persian",
packages=['persian'],
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python"
],
)

0 comments on commit 940ea44

Please sign in to comment.