{ "info": { "author": "Nadir Latif", "author_email": "nadir@pakjiddat.pk", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "![Islam Companion Desktop API](https://www.pakjiddat.pk/pakjiddat/ui/images/islamcompanion-desktop-api.png)\n\n### Introduction\n\nThe \"**Islam Companion Desktop API**\" project is a API (Application Programming Interface) written in [Python](https://www.python.org/) language, that allows users to add Holy Quran and Hadith data to their applications. Currently it provides Quranic and Hadith translations in Urdu language. Support for other languages is planned.\n\nAn example of an application that uses the Islam Companion Desktop API is the [Islam Companion Desktop](https://www.pakjiddat.pk/articles/view/283/islamcompanion-desktop) application.\n\nThe goal of the Islam Companion Desktop API is to help users develop desktop applications that provide knowledge about Islam.\n\n### Features\n\nThe Islam Companion Desktop API has the following features:\n\n* It provides translations of Holy Quran and Hadith in Urdu language. Support for more languages is planned\n* It provides meta data about Holy Quran and Hadith data\n* The source code is available under [GPL License](https://github.com/nadirlc/islam-companion-desktop-api/blob/master/LICENSE)\n* The source code is well commented and easy to update\n* The data is stored in sqlite3 database and can easily be accessed using the sqlite3 Python package\n\n### Requirements\n\nThe Islam Companion Desktop API requires the os and sqlite3 Python packages. These packages are part of the standard Python distribution\n\n### Installation\n\nThe following steps can be used to install the \"Islam Companion Desktop API\":\n\n* Create a Python virtual environment using the command: **virtualenv -p python3.7 islam-companion**\n* Activate the virtual environment using the command: **source bin/activate**\n* Install from the Python Package Index (PPI) using the command: **pip install ic-desktop-api**\n* Create a folder called **source**\n* Download the **test** and **data** folders from the [source code](https://github.com/nadirlc/islam-companion-desktop-api/archive/master.zip) on GitHub. Copy the folders to the source folder\n* Download the [quran](https://islamcompanion.pakjiddat.pk/islamcompanion/data/holy-quran.db.tar.bz2) sqlite database. Extract the downloaded file to **source/data/holy-quran.db**\n* Download the [hadith](https://islamcompanion.pakjiddat.pk/islamcompanion/data/hadith.db.tar.bz2) sqlite database. Extract the downloaded file to **source/data/hadith.db**\n* Install the [unittest2](https://pypi.org/project/unittest2/) Python package using the command: **pip install unittest2**. It will be used to unit test the API\n* Test the quran api using the command: **python -m unittest test/quran.py**\n* Test the hadith api using the command: **python -m unittest test/hadith.py**\n\n### Usage\n\nThe Islam Companion Desktop API supports the following functions:\n\n##### API calls for fetching Holy Quran data\n\n1. Name: **get_sura_names** \nDescription: **Fetches list of all sura names from database** \nResponse: **A numerically indexed array containing list of sura names** \nParameters: **none** \n\n2. Name: **get_ruku_count** \nDescription: **Fetches the number of rukus in the given sura** \nResponse: **An integer containing the number of rukus in the given sura** \nParameters: \n * **sura**. The sura number. It should be a number between 1 and 114 \n\n3. Name: **get_ayat_range** \nDescription: **It returns the start and end ayat number for the given sura and ruku** \nResponse: **An associative array with two elements. start (start ayat number) and end (end ayat number)** \nParameters: \n * **sura**. The sura number. It should be a number between 1 and 114 \n * **ruku**. The ruku number. It should be a number between 1 and 40 \n\n4. Name: **get_ayat_text** \nDescription: **Fetches the ayat text for the given sura and ruku** \nResponse: **A numerically indexed array containing list of ayas** \nParameters: \n * **sura**. The sura number. It should be a number between 1 and 114 \n * **ruku**. The ruku number. It should be a number between 1 and 40 \n\n##### API calls for fetching Hadith data\n\n1. Name: **get_source_list** \nDescription: **Fetches list of all hadith sources from database** \nResponse: **A numerically indexed array containing list of hadith sources** \nParameters:**none** \n\n2. Name: **get_book_list** \nDescription: **Fetches list of all hadith books for the given source from database** \nResponse: **A numerically indexed array containing list of hadith books. Each index contains a numerically indexed array with two elements. The book id and book title** \nParameters: \n * **source**. The hadith source \n\n3. Name: **get_title_list** \nDescription: **Fetches list of all hadith titles for the given hadith book from database** \nResponse: **A numerically indexed array containing the list of hadith titles. Each index contains a numerically indexed array with two elements. The title id and title text** \nParameters: \n * **book**. The hadith book id \n\n4. Name: **get_hadith_text** \nDescription: **It fetches and returns the hadith text for the given hadith id** \nResponse: **A string containing the hadith text** \nParameters: \n * **hadith_id**. The hadith id \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/nadirlc/islam-companion-desktop-api", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ic-desktop-api", "package_url": "https://pypi.org/project/ic-desktop-api/", "platform": "", "project_url": "https://pypi.org/project/ic-desktop-api/", "project_urls": { "Homepage": "https://github.com/nadirlc/islam-companion-desktop-api" }, "release_url": "https://pypi.org/project/ic-desktop-api/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Desktop API for accessing Holy Quran and Hadith data", "version": "1.0.1" }, "last_serial": 5246988, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "07017f40efb2664bbafbbcb7dd60f251", "sha256": "000b3c88d271e3e2642c0cae245850786df695a097af3a62268a56b2483289f4" }, "downloads": -1, "filename": "ic_desktop_api-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "07017f40efb2664bbafbbcb7dd60f251", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8258, "upload_time": "2019-05-09T10:28:29", "url": "https://files.pythonhosted.org/packages/24/f7/de7791dda10c9d9457634cd0fb09a048a340180419db0f498de1dd3f3260/ic_desktop_api-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5412503e1707d81e3077439408f8746f", "sha256": "6fc42ba7a831efca3d7fb4c07904f1baa078eb985f8b0dbb746789a91242a9a0" }, "downloads": -1, "filename": "ic-desktop-api-1.0.0.tar.gz", "has_sig": false, "md5_digest": "5412503e1707d81e3077439408f8746f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5394, "upload_time": "2019-05-09T10:28:31", "url": "https://files.pythonhosted.org/packages/10/83/3d76e6219eb09ed48df21b0413d2e02014df8e5c772c052d84dcd6d60796/ic-desktop-api-1.0.0.tar.gz" } ], "1.0.0.post1": [ { "comment_text": "", "digests": { "md5": "d970e969960aab038956d9219bace23a", "sha256": "74b89f50e895d2f461fd4bb4c6ee510a721dbb05df17f0ed1143d032b3f63de8" }, "downloads": -1, "filename": "ic_desktop_api-1.0.0.post1-py3-none-any.whl", "has_sig": false, "md5_digest": "d970e969960aab038956d9219bace23a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8324, "upload_time": "2019-05-09T10:40:28", "url": "https://files.pythonhosted.org/packages/6f/5c/fbddc9657632de44accd90dd481f986d8b372549bb2859594668be770a56/ic_desktop_api-1.0.0.post1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a3608ee3d648bce8f5e1dc7ae8e99e1b", "sha256": "efd9b1e2da93d4876dd0dc692a91815be2f605def0327f5163b9568e8c007eb3" }, "downloads": -1, "filename": "ic-desktop-api-1.0.0.post1.tar.gz", "has_sig": false, "md5_digest": "a3608ee3d648bce8f5e1dc7ae8e99e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5396, "upload_time": "2019-05-09T10:40:29", "url": "https://files.pythonhosted.org/packages/c9/14/3551ebb950fda7f5b86e9eb22fe526689147c93fcfdf74044c9bd11b05c6/ic-desktop-api-1.0.0.post1.tar.gz" } ], "1.0.0.post2": [ { "comment_text": "", "digests": { "md5": "4836f500dd66c4dcdf4a1e5dc3a99dbd", "sha256": "e9f7a7b8bed9ccbf6fcc1fd3fc746e275c3c5c2ea2f378675654be8025edf4ea" }, "downloads": -1, "filename": "ic_desktop_api-1.0.0.post2-py3-none-any.whl", "has_sig": false, "md5_digest": "4836f500dd66c4dcdf4a1e5dc3a99dbd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8320, "upload_time": "2019-05-09T10:53:39", "url": "https://files.pythonhosted.org/packages/1a/c7/0e6453bfd37189ade51189bdb115463b4923d7a0757f7d6babf23c6f3c50/ic_desktop_api-1.0.0.post2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "627ab22b58aff4626d5f441a3a84b168", "sha256": "044d37c163cc2906b536c54d044f3cb70f41967ce5ca496a2baff3194dba4aa9" }, "downloads": -1, "filename": "ic-desktop-api-1.0.0.post2.tar.gz", "has_sig": false, "md5_digest": "627ab22b58aff4626d5f441a3a84b168", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5394, "upload_time": "2019-05-09T10:53:40", "url": "https://files.pythonhosted.org/packages/15/f5/faddd1481cdd5a30a3830d72b2f425e562ce7e7b81f86ad80808f442c9a5/ic-desktop-api-1.0.0.post2.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "c771ab4f2e8ce793c54e3deb766346b9", "sha256": "342948ee7513f79c8c8cd987bbb5980b69fe70583f295318156c8df6fcb36b75" }, "downloads": -1, "filename": "ic_desktop_api-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c771ab4f2e8ce793c54e3deb766346b9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8260, "upload_time": "2019-05-09T11:28:09", "url": "https://files.pythonhosted.org/packages/05/d0/c7ca167a3c3035a7a99239d1b2176fbf3166e7ab29b659f53da6679716c9/ic_desktop_api-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fa08d64f06eea643e49500232fbfa21", "sha256": "eab4732f7391fbe811effa4980a28e74973dfa9cde4e302acf02f5a446f65934" }, "downloads": -1, "filename": "ic-desktop-api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6fa08d64f06eea643e49500232fbfa21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5381, "upload_time": "2019-05-09T11:28:10", "url": "https://files.pythonhosted.org/packages/45/b9/48ab161afcb4b1d51b3ec90ff94ba2aaaf63a88a395c048a872a535b2344/ic-desktop-api-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c771ab4f2e8ce793c54e3deb766346b9", "sha256": "342948ee7513f79c8c8cd987bbb5980b69fe70583f295318156c8df6fcb36b75" }, "downloads": -1, "filename": "ic_desktop_api-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c771ab4f2e8ce793c54e3deb766346b9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8260, "upload_time": "2019-05-09T11:28:09", "url": "https://files.pythonhosted.org/packages/05/d0/c7ca167a3c3035a7a99239d1b2176fbf3166e7ab29b659f53da6679716c9/ic_desktop_api-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fa08d64f06eea643e49500232fbfa21", "sha256": "eab4732f7391fbe811effa4980a28e74973dfa9cde4e302acf02f5a446f65934" }, "downloads": -1, "filename": "ic-desktop-api-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6fa08d64f06eea643e49500232fbfa21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5381, "upload_time": "2019-05-09T11:28:10", "url": "https://files.pythonhosted.org/packages/45/b9/48ab161afcb4b1d51b3ec90ff94ba2aaaf63a88a395c048a872a535b2344/ic-desktop-api-1.0.1.tar.gz" } ] }