# Bazaar-Dl
Simple Python package for directly downloading applications from Cafe Bazaar (cafebazaar.ir).
## Installation
Install the package using pip:
```sh
pip install Bazaar-Dl
```
## Example Usage
To download an app by its package name:
```python
from bazaar_dl import download
# Download an application from Cafe Bazaar
result = download("com.android.chrome")
print(result)
```
### Sample Output
For a successful download:
```python
{'status': 'success',
'status_code': 200,
'data': {'download_link': 'https://appcdn2.cafebazaar.ir/apks/411684004063.apk?expire=1729014711&token=1968a55c45e145e64eb90f4653644462&a=.apk',
'package_size': '48667070',
'installation_size': '73000605'}}
```
For an error (e.g., invalid package name):
```python
{'status': 'error',
'status_code': 404,
'message': '{"properties":{"statusCode":404,"errorMessage":"متأسفانه برنامه مورد نظر شما یافت نشد."},"singleReply":null}'}
```
### Notes
- Replace `"com.android.chrome"` with the package name of the application you want to download.
Raw data
{
"_id": null,
"home_page": null,
"name": "Bazaar-Dl",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, bazaar_dl, bazaar-dl, Cafe-Bazaar",
"author": "Matin Baloochestani (Matin-B)",
"author_email": "MatiinBaloochestani@Gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1b/b9/e49706f8c4e126422484891bfad6be32737b3d0bef2f1023daabce1b717b/bazaar_dl-1.0.3.tar.gz",
"platform": null,
"description": "\n# Bazaar-Dl\n\nSimple Python package for directly downloading applications from Cafe Bazaar (cafebazaar.ir).\n\n## Installation\n\nInstall the package using pip:\n```sh\npip install Bazaar-Dl\n```\n\n## Example Usage\n\nTo download an app by its package name:\n```python\nfrom bazaar_dl import download\n\n# Download an application from Cafe Bazaar\nresult = download(\"com.android.chrome\")\nprint(result)\n```\n\n### Sample Output\n\nFor a successful download:\n```python\n{'status': 'success',\n 'status_code': 200,\n 'data': {'download_link': 'https://appcdn2.cafebazaar.ir/apks/411684004063.apk?expire=1729014711&token=1968a55c45e145e64eb90f4653644462&a=.apk',\n 'package_size': '48667070',\n 'installation_size': '73000605'}}\n```\n\nFor an error (e.g., invalid package name):\n```python\n{'status': 'error',\n 'status_code': 404,\n 'message': '{\"properties\":{\"statusCode\":404,\"errorMessage\":\"\u0645\u062a\u0623\u0633\u0641\u0627\u0646\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0634\u0645\u0627 \u06cc\u0627\u0641\u062a \u0646\u0634\u062f.\"},\"singleReply\":null}'}\n```\n\n### Notes\n- Replace `\"com.android.chrome\"` with the package name of the application you want to download.\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Simple Python package for directly downloading applications from Cafe Bazaar.",
"version": "1.0.3",
"project_urls": null,
"split_keywords": [
"python",
" bazaar_dl",
" bazaar-dl",
" cafe-bazaar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a371d50787658c620dcc47a68162173d7821b2e42b1f0c76735d4ad5ce866b3b",
"md5": "7457b4e9195373a1b3efcfc9d0420ee0",
"sha256": "2327f72b4569f6020375648a4c94559c1c6d8e5fd907cb6a2737c7f095519fdb"
},
"downloads": -1,
"filename": "Bazaar_Dl-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7457b4e9195373a1b3efcfc9d0420ee0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15021,
"upload_time": "2024-10-12T18:32:13",
"upload_time_iso_8601": "2024-10-12T18:32:13.368817Z",
"url": "https://files.pythonhosted.org/packages/a3/71/d50787658c620dcc47a68162173d7821b2e42b1f0c76735d4ad5ce866b3b/Bazaar_Dl-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1bb9e49706f8c4e126422484891bfad6be32737b3d0bef2f1023daabce1b717b",
"md5": "32b30860a1c4bb30319c7c014fac6bc2",
"sha256": "9c9daa009e7cccf2d0e4b4f59b59da53bd5f3193d51ff0f78ce85f35b078c5e4"
},
"downloads": -1,
"filename": "bazaar_dl-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "32b30860a1c4bb30319c7c014fac6bc2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15674,
"upload_time": "2024-10-12T18:32:14",
"upload_time_iso_8601": "2024-10-12T18:32:14.815125Z",
"url": "https://files.pythonhosted.org/packages/1b/b9/e49706f8c4e126422484891bfad6be32737b3d0bef2f1023daabce1b717b/bazaar_dl-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-12 18:32:14",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bazaar-dl"
}