{ "info": { "author": "Borni DHIFI", "author_email": "dhifi.borni@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "\n\nPython Umalqurra Calender is an API that will give you the ability to convert Gregorian to Hijri and hijri to Gregorian\nit will give you the day name in arabic and english , and the month name in Hijri arabic and Gregorian.\n\nThanks for Khalid Al-hussayen : https://pypi.python.org/pypi/umalqurra/0.2 \n\n- `Install <#install>`__\n- `Features <#features>`__\n- `Usage <#usage>`__\n\nInstall: \n--------\n\n::\n\n\tsudo pip3 install ummalqura\n\nFeatures: \n---------\n\n- Convert Gregorian to Hijri\n\n- Convert Hijri to Gregorian\n\n- give the arabic name of the hijri month\n\n- give the english name of the gregorian month\n\n- give the day name in Arabic and English\n\n- give the current day both in Hijri and Gregorian\n\nUsage\n-----\n \n::\n\n\t#!/usr/bin/env python3\n\n\tfrom ummalqura.hijri_date import HijriDate\n\tfrom datetime import date\n\n\n\t# create the object with Gregorian date\n\tum = HijriDate(2017, 12, 26, gr=True)\n\n\t# hijri month\n\tprint('hijri month: ', um.month) # 4\n\t# Hijri year\n\tprint('hijri year: ', um.year) # 1439\n\t# arabic day name\n\tprint('arabic day name: ', um.day_name) # \u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621\n\t# english day name\n\tprint('english day name: ', um.day_name_en) # Tuesday\n\t# arabic hijri month name\n\tprint('arabic hijri month name: ', um.month_name) # \u0631\u0628\u064a\u0639 \u0627\u0644\u062b\u0627\u0646\u064a\n\t# english gregorian month name\n\tprint('english gregorian month name: ', um.month_name_gr) # December\n\t# gregorian year\n\tprint('gregorian year: ', um.year_gr) # 2017\n\t# gregorian month\n\tprint('gregorian month: ', um.month_gr) # 12\n\t# gregorian day\n\tprint('gregorian day: ', um.day_gr) # 26\n\n\t# current hijri month\n\tprint('current_month: ', HijriDate.current_month()) # 4\n\t# the gregorian date corresponding to the first day of the given hijri month/year\n\tprint('first day: ', HijriDate.month_start_date(4)) # 2017-12-19\n\tprint('first day: ', HijriDate.month_start_date(4, 1439)) # 2017-12-19\n\t# the gregorian date corresponding to the last day of the given hijri month/year\n\tprint('last day: ', HijriDate.month_end_date(4)) # 2018-01-17\n\tprint('last day: ', HijriDate.month_end_date(4, 1439)) # 2018-01-17\n\t# the hijri month for the given gregorian date\n\tprint('hijri month: ', HijriDate.hijri_month_from_date(date.today())) # 4\n\t# the hijri year for the given gregorian date\n\tprint('hijri year: ', HijriDate.hijri_year_from_date(date.today())) # 1439\n\t# convert the given gregorian date to hijri date\n\tprint('hijri date: ', HijriDate.get_hijri_date(date.today())) # 1439-04-08\n\t# convert the given hijri date to gregorian date\n\tprint('georing date: ', HijriDate.get_georing_date('1439-04-08')) # 2017-12-26\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/borni-dhifi/ummalqura", "keywords": "ummalqura", "license": "Waqef", "maintainer": "", "maintainer_email": "", "name": "ummalqura", "package_url": "https://pypi.org/project/ummalqura/", "platform": "", "project_url": "https://pypi.org/project/ummalqura/", "project_urls": { "Homepage": "https://github.com/borni-dhifi/ummalqura" }, "release_url": "https://pypi.org/project/ummalqura/2.0.1/", "requires_dist": null, "requires_python": "", "summary": "Python Hijri Ummalqura", "version": "2.0.1" }, "last_serial": 3443253, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ddc69cbb01fc83b110cd7103b45d1a68", "sha256": "8d9e263e1111aa94783a5ffc2eb7bb82f7763163c14d961c4a44a19960678af4" }, "downloads": -1, "filename": "ummalqura-0.1.tar.gz", "has_sig": false, "md5_digest": "ddc69cbb01fc83b110cd7103b45d1a68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9498, "upload_time": "2017-11-13T10:15:25", "url": "https://files.pythonhosted.org/packages/b0/03/de48058e7e6f3c19b3ab66791374a9688e5e9bc020dc8d6e87511e395850/ummalqura-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "336958412a9bd589994776eb0f89ea39", "sha256": "09045cf805a4d1c428d8d0ea4bd84d6febfc9370e27b927cbce2c8694d054fc6" }, "downloads": -1, "filename": "ummalqura-0.1.1.tar.gz", "has_sig": false, "md5_digest": "336958412a9bd589994776eb0f89ea39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8691, "upload_time": "2017-11-13T10:23:10", "url": "https://files.pythonhosted.org/packages/8f/9f/e5f6ae395bca51d3ccead6f37c967fe77dbade26ed3d619ec2e515abfa45/ummalqura-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "ac0d1fec4b0f661fd63c4306eaadabe8", "sha256": "88a0c698cdb5f1c3ee63024172f70b279490f98bb6626037b05a7e23664b7f2c" }, "downloads": -1, "filename": "ummalqura-0.1.2.tar.gz", "has_sig": false, "md5_digest": "ac0d1fec4b0f661fd63c4306eaadabe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9055, "upload_time": "2017-11-13T10:29:09", "url": "https://files.pythonhosted.org/packages/45/57/99d7a03846ed44c7d946544f964726530a69edc7971d2d03de83dedecb3f/ummalqura-0.1.2.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "912ee5b608a0ebb3cf47f34e555c36c5", "sha256": "bd09af4166e7af5bfd8db90a51db4602a2e0b08e8d56edb46f3b5c010743d4ee" }, "downloads": -1, "filename": "ummalqura-2.0.tar.gz", "has_sig": false, "md5_digest": "912ee5b608a0ebb3cf47f34e555c36c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10896, "upload_time": "2017-12-26T10:41:32", "url": "https://files.pythonhosted.org/packages/40/d9/f693991bc04b563dce2d2f74d2c0862735d72c4baa290e6cef475af4b71a/ummalqura-2.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "4c2a7f5e52034e450bbdebb68189dbd5", "sha256": "657ee9f4ee961a5f1381a2abb0c22801859fa6803533ccf6c888194e6b301d03" }, "downloads": -1, "filename": "ummalqura-2.0.1.tar.gz", "has_sig": false, "md5_digest": "4c2a7f5e52034e450bbdebb68189dbd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10974, "upload_time": "2017-12-26T13:04:04", "url": "https://files.pythonhosted.org/packages/41/fe/d44e0cd296392ec5ddedd0780f8d66e44eeeb61238e2a21b48e743259160/ummalqura-2.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c2a7f5e52034e450bbdebb68189dbd5", "sha256": "657ee9f4ee961a5f1381a2abb0c22801859fa6803533ccf6c888194e6b301d03" }, "downloads": -1, "filename": "ummalqura-2.0.1.tar.gz", "has_sig": false, "md5_digest": "4c2a7f5e52034e450bbdebb68189dbd5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10974, "upload_time": "2017-12-26T13:04:04", "url": "https://files.pythonhosted.org/packages/41/fe/d44e0cd296392ec5ddedd0780f8d66e44eeeb61238e2a21b48e743259160/ummalqura-2.0.1.tar.gz" } ] }