{"id":16550611,"url":"https://github.com/agusmakmun/welut","last_synced_at":"2025-08-09T19:36:22.341Z","repository":{"id":57477688,"uuid":"110488325","full_name":"agusmakmun/welut","owner":"agusmakmun","description":":wavy_dash: welut is django plugin to convert the .epub, .mobi or .pdf files as images. Usefull to manage e-library or e-commerce bassed on e-book system.","archived":false,"fork":false,"pushed_at":"2017-11-24T06:32:15.000Z","size":13396,"stargazers_count":10,"open_issues_count":2,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T12:47:02.014Z","etag":null,"topics":["django","django-plugin","e-book","e-library","ebook-converter","epub-converter","mobi-converter","paperless","pdf-converter","welut"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agusmakmun.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-13T02:04:35.000Z","updated_at":"2023-11-04T07:55:50.000Z","dependencies_parsed_at":"2022-09-15T20:50:41.329Z","dependency_job_id":null,"html_url":"https://github.com/agusmakmun/welut","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/agusmakmun/welut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fwelut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fwelut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fwelut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fwelut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agusmakmun","download_url":"https://codeload.github.com/agusmakmun/welut/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agusmakmun%2Fwelut/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269629949,"owners_count":24450113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-plugin","e-book","e-library","ebook-converter","epub-converter","mobi-converter","paperless","pdf-converter","welut"],"created_at":"2024-10-11T19:34:57.810Z","updated_at":"2025-08-09T19:36:22.299Z","avatar_url":"https://github.com/agusmakmun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n    **Welut** is a ebook converter\n\n\nRequirements\n=============\n\n* **ebook-convert:** ``$ sudo apt install calibre`` - *convert epub \u0026 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 \u0026 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      \u003cimg src=\"{{ MEDIA_URL }}{{ img_url }}\"\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagusmakmun%2Fwelut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagusmakmun%2Fwelut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagusmakmun%2Fwelut/lists"}