htmx-django


Namehtmx-django JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryExtensions for using HTMX (or Unpoly or Alpine-AJAX) with Django.
upload_time2024-10-30 03:24:37
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords django htmx unpoly python
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # htmx-django

Extensions for using [HTMX](https://htmx.org/)
(or [Unpoly](https://unpoly.com/)
or [Alpine-AJAX](https://alpine-ajax.js.org/))
with [Django](https://www.djangoproject.com/).

By abstracting HTMX (and friends) just a wee bit more than packages like 
[django-htmx](https://django-htmx.readthedocs.io/en/latest/),
htmx-django does not need additional packages like
[django-template-partials](https://github.com/carltongibson/django-template-partials)
to provide a complete HTMX & Django workflow.

htmx-django is simple and lightweight:
Nothing needs to be added to INSTALLED_APPS or to MIDDLEWARE.
In most cases, your Django code does not have even mention HTMX (or Unpoly or Alpine-AJAX).
htmx-django differentiates between full-page and fragment requests for you.

If you have a small brain like me,
you might enjoy the simplicity of htmx-django.
Bigger brained developers might not like it, especially the tiny bits of magic,
and so might prefer the other packages.
That's fine: the others are great packages by great contributors.

### Coming (Very) Soon

### FAQ

* **Why htmx-django?**
  * I was finding that my Django views had lots of boilerplate code
  testing `request.htmx` (see docs for details).
  I tested it to decide which Django template to use for the response.
  So I thought, in the famous words of Raymond Hettinger,
  "[there must be a better way](https://www.google.com/search?q=raymond+hettinger+there+must+be+a+better+way)". 

* **Why not django-htmx?**
  * I tried it. (more answer soon) 

* **Why not django-htmx and django-template-partials?**
  * I tried this too. (more answer soon)

* **Why not just contribute to django-htmx?**
  * I tried. See [issue](https://github.com/adamchainz/django-htmx/issues/445).
    We had a different vision, I guess. 

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "htmx-django",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "django, htmx, unpoly, python",
    "author": null,
    "author_email": "Don Parakin <don@weaddvalue.ca>",
    "download_url": "https://files.pythonhosted.org/packages/ea/17/ca1179b3d4bd668f6ea73f5cf4b2708294d2589e4b9aa8946e354f4803db/htmx_django-0.1.1.tar.gz",
    "platform": null,
    "description": "# htmx-django\n\nExtensions for using [HTMX](https://htmx.org/)\n(or [Unpoly](https://unpoly.com/)\nor [Alpine-AJAX](https://alpine-ajax.js.org/))\nwith [Django](https://www.djangoproject.com/).\n\nBy abstracting HTMX (and friends) just a wee bit more than packages like \n[django-htmx](https://django-htmx.readthedocs.io/en/latest/),\nhtmx-django does not need additional packages like\n[django-template-partials](https://github.com/carltongibson/django-template-partials)\nto provide a complete HTMX &amp; Django workflow.\n\nhtmx-django is simple and lightweight:\nNothing needs to be added to INSTALLED_APPS or to MIDDLEWARE.\nIn most cases, your Django code does not have even mention HTMX (or Unpoly or Alpine-AJAX).\nhtmx-django differentiates between full-page and fragment requests for you.\n\nIf you have a small brain like me,\nyou might enjoy the simplicity of htmx-django.\nBigger brained developers might not like it, especially the tiny bits of magic,\nand so might prefer the other packages.\nThat's fine: the others are great packages by great contributors.\n\n### Coming (Very) Soon\n\n### FAQ\n\n* **Why htmx-django?**\n  * I was finding that my Django views had lots of boilerplate code\n  testing `request.htmx` (see docs for details).\n  I tested it to decide which Django template to use for the response.\n  So I thought, in the famous words of Raymond Hettinger,\n  \"[there must be a better way](https://www.google.com/search?q=raymond+hettinger+there+must+be+a+better+way)\". \n\n* **Why not django-htmx?**\n  * I tried it. (more answer soon) \n\n* **Why not django-htmx and django-template-partials?**\n  * I tried this too. (more answer soon)\n\n* **Why not just contribute to django-htmx?**\n  * I tried. See [issue](https://github.com/adamchainz/django-htmx/issues/445).\n    We had a different vision, I guess. \n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Extensions for using HTMX (or Unpoly or Alpine-AJAX) with Django.",
    "version": "0.1.1",
    "project_urls": {
        "Documentation": "https://htmx-django.readthedocs.io",
        "Homepage": "https://github.com/donparakin/htmx-django",
        "Issues": "https://github.com/donparakin/htmx-django/issues",
        "Repository": "https://github.com/donparakin/htmx-django.git"
    },
    "split_keywords": [
        "django",
        " htmx",
        " unpoly",
        " python"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ea17ca1179b3d4bd668f6ea73f5cf4b2708294d2589e4b9aa8946e354f4803db",
                "md5": "04b9ed9532dbe55fbd594aec0eb06ceb",
                "sha256": "acd0d216793e4f7047ca9a659e3fe8c485cfab207ada08bb07161f7c001e769f"
            },
            "downloads": -1,
            "filename": "htmx_django-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "04b9ed9532dbe55fbd594aec0eb06ceb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 3679,
            "upload_time": "2024-10-30T03:24:37",
            "upload_time_iso_8601": "2024-10-30T03:24:37.700078Z",
            "url": "https://files.pythonhosted.org/packages/ea/17/ca1179b3d4bd668f6ea73f5cf4b2708294d2589e4b9aa8946e354f4803db/htmx_django-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-30 03:24:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "donparakin",
    "github_project": "htmx-django",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "htmx-django"
}
        
Elapsed time: 0.36845s