{ "info": { "author": "Agus Makmun (Summon Agus)", "author_email": "agus@python.web.id", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\n **Welut** is a ebook converter\n\n\nRequirements\n=============\n\n* **ebook-convert:** ``$ sudo apt install calibre`` - *convert epub & mobi to pdf.*\n* **pdftocairo:** ``$ sudo apt install -y poppler-utils`` - *convert pdf to images*\n\n\nInstallation\n------------------------------\n\nWelut is available directly from `PyPI`_:\n\n1. Installing the package.\n\n::\n\n $ pip install welut\n\n\n2. Don't forget to add ``'welut'`` to your ``'INSTALLED_APPS'``.\n\n::\n\n # settings.py\n INSTALLED_APPS = [\n ....\n 'welut',\n ]\n\n\n3. Doing makemigrations & migrate\n\n::\n\n ./manage.py makemigrations welut\n ./manage.py migrate welut\n\n\n\nConfiguration (``settings.py``)\n---------------------------------------\n\n::\n\n WELUT_EXTENSIONS = ['.pdf', '.epub', '.mobi'] # support file extensions\n WELUT_REMOVED_EXTENSIONS = ['.pdf', '.epub', '.mobi'] # file to remove after uploaded\n WELUT_IMAGES_EXTENSION = '.png' # format images extension\n\n\nUsage\n------------------------------\n\nYou can using ``ForeignKey`` or ``OneToOneField``.\n\n::\n\n from django.db import models\n from welut.models import EbookConverter\n\n\n class EBook(models.Model):\n title = models.CharField(max_length=200)\n ebook_file = models.ForeignKey(EbookConverter, related_name='ebook_file')\n created = models.DateTimeField(auto_now_add=True)\n modified = models.DateTimeField(auto_now=True)\n\n def __str__(self):\n return self.title\n\n def get_files(self):\n \"\"\" return list images of ebook per-page \"\"\"\n return self.ebook_file.get_files()\n\n\n\n**Templates**\n\n::\n\n {% for img_url in object.get_files %}\n \n {% endfor %}\n\n\n\nUsage Preview\n------------------------------\n\n.. image:: https://raw.githubusercontent.com/agusmakmun/welut/master/welut_demo/media/welut-demo.png\n\n\n\n.. _PyPI: https://pypi.python.org/pypi/welut\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/agusmakmun/welut/tarball/v1.0.4", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agusmakmun/welut", "keywords": "welut", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "welut", "package_url": "https://pypi.org/project/welut/", "platform": "", "project_url": "https://pypi.org/project/welut/", "project_urls": { "Download": "https://github.com/agusmakmun/welut/tarball/v1.0.4", "Homepage": "https://github.com/agusmakmun/welut" }, "release_url": "https://pypi.org/project/welut/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "Welut is a ebook converter", "version": "1.0.4" }, "last_serial": 3341070, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "34dde2681d4a0c159cd59764dd4d3ebc", "sha256": "612a008f7f7f2ab297c920888e61cd2f061cfe9ce0d34bc30fa0ac0a5c128b86" }, "downloads": -1, "filename": "welut-1.0.0.tar.gz", "has_sig": false, "md5_digest": "34dde2681d4a0c159cd59764dd4d3ebc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5069, "upload_time": "2017-11-13T16:21:03", "url": "https://files.pythonhosted.org/packages/c2/d7/2b2e7293dd37a692d0887add1016c8be51f0aec6f2013f8da4888300c6f4/welut-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b968aa34c1db5d7a2a2b9dd44077c3b7", "sha256": "7e5f7a353ea6c2294e364334c3d401309bc298d9d4829d6846e42c3f550c3511" }, "downloads": -1, "filename": "welut-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b968aa34c1db5d7a2a2b9dd44077c3b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5112, "upload_time": "2017-11-13T16:44:09", "url": "https://files.pythonhosted.org/packages/61/cf/062483fe0e0550ad520a5380c247aa5321e7507d9a6c3032e3678a774912/welut-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a735d388fec8a0dbff179ec90b2efaca", "sha256": "17ab94e63235cb43764a2daa69745c66235ec81ccc7795dcd6dc33322dff598b" }, "downloads": -1, "filename": "welut-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a735d388fec8a0dbff179ec90b2efaca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5152, "upload_time": "2017-11-13T17:31:20", "url": "https://files.pythonhosted.org/packages/0c/d5/dc2800a2ab90abaf39b9c2f646becea3671a3d1f851bc6fc49eb129e0482/welut-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "7323491995e32cc58d4b723ae813f919", "sha256": "143bdd542bbfab88f9e0585696867a031710d7b0488f13c9aa05af056714d125" }, "downloads": -1, "filename": "welut-1.0.3.tar.gz", "has_sig": false, "md5_digest": "7323491995e32cc58d4b723ae813f919", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5922, "upload_time": "2017-11-14T00:42:27", "url": "https://files.pythonhosted.org/packages/7d/7c/0a81055772b24dd675606c025ad77bd57f164f0916daf4577991aec306e9/welut-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "de736caf6a784ef3104b25651f75a117", "sha256": "d898b4f5fb6add287ec7e6218e5b5db9808bae7c445423186543315e34603b07" }, "downloads": -1, "filename": "welut-1.0.4.tar.gz", "has_sig": false, "md5_digest": "de736caf6a784ef3104b25651f75a117", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6369, "upload_time": "2017-11-17T11:31:21", "url": "https://files.pythonhosted.org/packages/a7/a9/53acc3b6afff989ff1b129552433de59ddd2c7286f02133200a21a3735c8/welut-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "de736caf6a784ef3104b25651f75a117", "sha256": "d898b4f5fb6add287ec7e6218e5b5db9808bae7c445423186543315e34603b07" }, "downloads": -1, "filename": "welut-1.0.4.tar.gz", "has_sig": false, "md5_digest": "de736caf6a784ef3104b25651f75a117", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6369, "upload_time": "2017-11-17T11:31:21", "url": "https://files.pythonhosted.org/packages/a7/a9/53acc3b6afff989ff1b129552433de59ddd2c7286f02133200a21a3735c8/welut-1.0.4.tar.gz" } ] }