bangla


Namebangla JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttp://github.com/arsho/bangla
SummaryBangla is a package for Bangla language users with various functionalities including Bangla date and Bangla numeric conversation.
upload_time2018-02-15 07:16:07
maintainer
docs_urlNone
authorAhmedur Rahman Shovon
requires_python
licenseMIT
keywords bangla bangla date bongabdo bangla digit
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            BANGLA
======

|Build Status| |Version| |Python| |Size| |Codecov|

Bangla is a package for Bangla language users with various functionalities including Bangla date and Bangla numeric conversation.

It can be used to get Bangla date that includes year, month, date, weekday and season of Bangla year.
Bangla has used the rules from Wikipedia https://en.wikipedia.org/wiki/Bengali_calendars to convert 
Gregorian date to Bangla date. It is based on the revised version of the Bengali calendar which was officially adopted in Bangladesh in 1987.
Among the Bengali community in India, the provided date may differ.

Moreover, this package has also a method to convert English numeric string to Bangla numeric string.

This software can be used on Linux/Unix, Mac OS and Windows systems.

Features
~~~~~~~~

-  Get Bangla date that includes:

   - Bangla Date (১-৩১)

   - Bangla Month ("বৈশাখ", "জ্যৈষ্ঠ", "আষাঢ়", "শ্রাবণ", "ভাদ্র", "আশ্বিন", "কার্তিক", "অগ্রহায়ণ", "পৌষ", "মাঘ", "ফাল্গুন", "চৈত্র")

   - Bangla Year (১৯৮৭ - )

   - Bangla Season ("গ্রীষ্ম", "বর্ষা", "শরৎ", "হেমন্ত", "শীত", "বসন্ত")

   - Bangla Weekday ("শনিবার", "রবিবার", "সোমবার", "মঙ্গলবার", "বুধবার", "বৃহস্পতিবার", "শুক্রবার")

-  Convert English numeric string to Bangla numeric string (123456 -> ১২৩৪৫৬).

Installation
~~~~~~~~~~~~

We recommend install ``bangla`` through pip install using Python 3.

.. code:: bash

    $ pip install bangla

Example
~~~~~~~

To get today's date in Bangla calendar:

.. code:: python

	import bangla
	bangla_date = bangla.get_date()
	print(bangla_date) 
	# Output: {'date': '৮', 'month': 'আষাঢ়', 'year': '১৪২৪', 'season': 'বর্ষা', 'weekday': 'বৃহস্পতিবার'} 


To convert any Gregorian date to Bangla date :

.. code:: python

    import bangla
    bangla_date = bangla.get_date(20,6,2017) # date, month, year
    print(bangla_date) 
    # Output: {'date': '৬', 'month': 'আষাঢ়', 'year': '১৪২৪', 'season': 'বর্ষা', 'weekday': 'মঙ্গলবার'}

To convert any English numeric string to Bangla numeric string :

.. code:: python

    import bangla
    bangla_numeric_string = bangla.convert_english_digit_to_bangla_digit("123456")
    print(bangla_numeric_string)
    # Output: ১২৩৪৫৬

Contribute
~~~~~~~~~~

Create Github Pull Request https://github.com/arsho/bangla/pulls

If you have suggestion use GitHub issue system or send a message in Facebook https://www.facebook.com/ars.shovon.

Thanks
~~~~~~

Influenced by বঙ্গাব্দ - jQuery Plugin 
https://github.com/nuhil/bangla-calendar

.. |Build Status| image:: https://travis-ci.org/arsho/bangla.svg?branch=master
   :target: https://travis-ci.org/arsho/bangla

.. |Version| image:: https://img.shields.io/pypi/v/bangla.svg?
   :target: http://badge.fury.io/py/bangla

.. |Python| image:: https://img.shields.io/pypi/pyversions/bangla.svg?
   :target: https://pypi.python.org/pypi/bangla/0.0.1

.. |Size| image:: https://img.shields.io/github/size/arsho/bangla/bangla/__init__.py.svg?
   :target: https://github.com/arsho/bangla/   

.. |Codecov| image:: https://codecov.io/github/arsho/bangla/coverage.svg?branch=master
   :target: https://codecov.io/github/arsho/bangla      


            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/arsho/bangla",
    "name": "bangla",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "bangla bangla date bongabdo bangla digit",
    "author": "Ahmedur Rahman Shovon",
    "author_email": "shovon.sylhet@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/df/2a/c4bded720ac03d7797b6abeee0a404b8ebb5ccce48863430c36bb8bf505a/bangla-0.0.2.tar.gz",
    "platform": "",
    "description": "BANGLA\n======\n\n|Build Status| |Version| |Python| |Size| |Codecov|\n\nBangla is a package for Bangla language users with various functionalities including Bangla date and Bangla numeric conversation.\n\nIt can be used to get Bangla date that includes year, month, date, weekday and season of Bangla year.\nBangla has used the rules from Wikipedia https://en.wikipedia.org/wiki/Bengali_calendars to convert \nGregorian date to Bangla date. It is based on the revised version of the Bengali calendar which was officially adopted in Bangladesh in 1987.\nAmong the Bengali community in India, the provided date may differ.\n\nMoreover, this package has also a method to convert English numeric string to Bangla numeric string.\n\nThis software can be used on Linux/Unix, Mac OS and Windows systems.\n\nFeatures\n~~~~~~~~\n\n-  Get Bangla date that includes:\n\n   - Bangla Date (\u09e7-\u09e9\u09e7)\n\n   - Bangla Month (\"\u09ac\u09c8\u09b6\u09be\u0996\", \"\u099c\u09cd\u09af\u09c8\u09b7\u09cd\u09a0\", \"\u0986\u09b7\u09be\u09a2\u09bc\", \"\u09b6\u09cd\u09b0\u09be\u09ac\u09a3\", \"\u09ad\u09be\u09a6\u09cd\u09b0\", \"\u0986\u09b6\u09cd\u09ac\u09bf\u09a8\", \"\u0995\u09be\u09b0\u09cd\u09a4\u09bf\u0995\", \"\u0985\u0997\u09cd\u09b0\u09b9\u09be\u09af\u09bc\u09a3\", \"\u09aa\u09cc\u09b7\", \"\u09ae\u09be\u0998\", \"\u09ab\u09be\u09b2\u09cd\u0997\u09c1\u09a8\", \"\u099a\u09c8\u09a4\u09cd\u09b0\")\n\n   - Bangla Year (\u09e7\u09ef\u09ee\u09ed - )\n\n   - Bangla Season (\"\u0997\u09cd\u09b0\u09c0\u09b7\u09cd\u09ae\", \"\u09ac\u09b0\u09cd\u09b7\u09be\", \"\u09b6\u09b0\u09ce\", \"\u09b9\u09c7\u09ae\u09a8\u09cd\u09a4\", \"\u09b6\u09c0\u09a4\", \"\u09ac\u09b8\u09a8\u09cd\u09a4\")\n\n   - Bangla Weekday (\"\u09b6\u09a8\u09bf\u09ac\u09be\u09b0\", \"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0\", \"\u09b8\u09cb\u09ae\u09ac\u09be\u09b0\", \"\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0\", \"\u09ac\u09c1\u09a7\u09ac\u09be\u09b0\", \"\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0\", \"\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0\")\n\n-  Convert English numeric string to Bangla numeric string (123456 -> \u09e7\u09e8\u09e9\u09ea\u09eb\u09ec).\n\nInstallation\n~~~~~~~~~~~~\n\nWe recommend install ``bangla`` through pip install using Python 3.\n\n.. code:: bash\n\n    $ pip install bangla\n\nExample\n~~~~~~~\n\nTo get today's date in Bangla calendar:\n\n.. code:: python\n\n\timport bangla\n\tbangla_date = bangla.get_date()\n\tprint(bangla_date) \n\t# Output: {'date': '\u09ee', 'month': '\u0986\u09b7\u09be\u09a2\u09bc', 'year': '\u09e7\u09ea\u09e8\u09ea', 'season': '\u09ac\u09b0\u09cd\u09b7\u09be', 'weekday': '\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0'} \n\n\nTo convert any Gregorian date to Bangla date :\n\n.. code:: python\n\n    import bangla\n    bangla_date = bangla.get_date(20,6,2017) # date, month, year\n    print(bangla_date) \n    # Output: {'date': '\u09ec', 'month': '\u0986\u09b7\u09be\u09a2\u09bc', 'year': '\u09e7\u09ea\u09e8\u09ea', 'season': '\u09ac\u09b0\u09cd\u09b7\u09be', 'weekday': '\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0'}\n\nTo convert any English numeric string to Bangla numeric string :\n\n.. code:: python\n\n    import bangla\n    bangla_numeric_string = bangla.convert_english_digit_to_bangla_digit(\"123456\")\n    print(bangla_numeric_string)\n    # Output: \u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\n\nContribute\n~~~~~~~~~~\n\nCreate Github Pull Request https://github.com/arsho/bangla/pulls\n\nIf you have suggestion use GitHub issue system or send a message in Facebook https://www.facebook.com/ars.shovon.\n\nThanks\n~~~~~~\n\nInfluenced by \u09ac\u0999\u09cd\u0997\u09be\u09ac\u09cd\u09a6 - jQuery Plugin \nhttps://github.com/nuhil/bangla-calendar\n\n.. |Build Status| image:: https://travis-ci.org/arsho/bangla.svg?branch=master\n   :target: https://travis-ci.org/arsho/bangla\n\n.. |Version| image:: https://img.shields.io/pypi/v/bangla.svg?\n   :target: http://badge.fury.io/py/bangla\n\n.. |Python| image:: https://img.shields.io/pypi/pyversions/bangla.svg?\n   :target: https://pypi.python.org/pypi/bangla/0.0.1\n\n.. |Size| image:: https://img.shields.io/github/size/arsho/bangla/bangla/__init__.py.svg?\n   :target: https://github.com/arsho/bangla/   \n\n.. |Codecov| image:: https://codecov.io/github/arsho/bangla/coverage.svg?branch=master\n   :target: https://codecov.io/github/arsho/bangla      \n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Bangla is a package for Bangla language users with various functionalities including Bangla date and Bangla numeric conversation.",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "http://github.com/arsho/bangla"
    },
    "split_keywords": [
        "bangla",
        "bangla",
        "date",
        "bongabdo",
        "bangla",
        "digit"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea2a0dc2b2112f2cdac8694f1f782b4ea45a0693e453b76e21f224bad340591d",
                "md5": "cc81c50c4d325b839e42cf2af664480b",
                "sha256": "60c52bb4614894de4a91ee997bf950d03545d1fb9b01196577ce04ed4fa00ff8"
            },
            "downloads": -1,
            "filename": "bangla-0.0.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cc81c50c4d325b839e42cf2af664480b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6250,
            "upload_time": "2018-02-15T07:16:05",
            "upload_time_iso_8601": "2018-02-15T07:16:05.227588Z",
            "url": "https://files.pythonhosted.org/packages/ea/2a/0dc2b2112f2cdac8694f1f782b4ea45a0693e453b76e21f224bad340591d/bangla-0.0.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df2ac4bded720ac03d7797b6abeee0a404b8ebb5ccce48863430c36bb8bf505a",
                "md5": "77921632c8eb11b59f18092e29200d18",
                "sha256": "17c8fd501321660077d5ab6a79b746bba71f9e4939ef78ac0d9a75d7bd715da8"
            },
            "downloads": -1,
            "filename": "bangla-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "77921632c8eb11b59f18092e29200d18",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3952,
            "upload_time": "2018-02-15T07:16:07",
            "upload_time_iso_8601": "2018-02-15T07:16:07.527306Z",
            "url": "https://files.pythonhosted.org/packages/df/2a/c4bded720ac03d7797b6abeee0a404b8ebb5ccce48863430c36bb8bf505a/bangla-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-02-15 07:16:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "arsho",
    "github_project": "bangla",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "bangla"
}
        
Elapsed time: 0.29580s