├── CODE_OF_CONDUCT.md
├── LICENSE
└── README.md
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, caste, color, religion, or sexual
10 | identity and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the overall
26 | community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or advances of
31 | any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email address,
35 | without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement at pythonbynight@gmail.com.
63 | All complaints will be reviewed and investigated promptly and fairly.
64 |
65 | All community leaders are obligated to respect the privacy and security of the
66 | reporter of any incident.
67 |
68 | ## Enforcement Guidelines
69 |
70 | Community leaders will follow these Community Impact Guidelines in determining
71 | the consequences for any action they deem in violation of this Code of Conduct:
72 |
73 | ### 1. Correction
74 |
75 | **Community Impact**: Use of inappropriate language or other behavior deemed
76 | unprofessional or unwelcome in the community.
77 |
78 | **Consequence**: A private, written warning from community leaders, providing
79 | clarity around the nature of the violation and an explanation of why the
80 | behavior was inappropriate. A public apology may be requested.
81 |
82 | ### 2. Warning
83 |
84 | **Community Impact**: A violation through a single incident or series of
85 | actions.
86 |
87 | **Consequence**: A warning with consequences for continued behavior. No
88 | interaction with the people involved, including unsolicited interaction with
89 | those enforcing the Code of Conduct, for a specified period of time. This
90 | includes avoiding interactions in community spaces as well as external channels
91 | like social media. Violating these terms may lead to a temporary or permanent
92 | ban.
93 |
94 | ### 3. Temporary Ban
95 |
96 | **Community Impact**: A serious violation of community standards, including
97 | sustained inappropriate behavior.
98 |
99 | **Consequence**: A temporary ban from any sort of interaction or public
100 | communication with the community for a specified period of time. No public or
101 | private interaction with the people involved, including unsolicited interaction
102 | with those enforcing the Code of Conduct, is allowed during this period.
103 | Violating these terms may lead to a permanent ban.
104 |
105 | ### 4. Permanent Ban
106 |
107 | **Community Impact**: Demonstrating a pattern of violation of community
108 | standards, including sustained inappropriate behavior, harassment of an
109 | individual, or aggression toward or disparagement of classes of individuals.
110 |
111 | **Consequence**: A permanent ban from any sort of public interaction within the
112 | community.
113 |
114 | ## Attribution
115 |
116 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117 | version 2.1, available at
118 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
119 |
120 | Community Impact Guidelines were inspired by
121 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
122 |
123 | For answers to common questions about this code of conduct, see the FAQ at
124 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
125 | [https://www.contributor-covenant.org/translations][translations].
126 |
127 | [homepage]: https://www.contributor-covenant.org
128 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
129 | [Mozilla CoC]: https://github.com/mozilla/diversity
130 | [FAQ]: https://www.contributor-covenant.org/faq
131 | [translations]: https://www.contributor-covenant.org/translations
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 PyHAT-stack
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # PyHAT: Awesome Python htmx [](https://github.com/sindresorhus/awesome)
2 |
3 | Are you interested in the intersection of Python and [Hypermedia-Driven Applications](https://htmx.org/essays/hypermedia-driven-applications/)? Head on over to the [discussions tab](https://github.com/PyHAT-stack/awesome-python-htmx/discussions), [introduce yourself](https://github.com/PyHAT-stack/awesome-python-htmx/discussions/2), and let's [get to work](https://github.com/PyHAT-stack/awesome-python-htmx/discussions/1)!
4 |
5 |
6 | ## What is PyHAT? 🧐
7 |
8 | PyHAT is more than just a snake with a hat 🐍🤠. It stands for Python htmx ASGI Tailwind—a web stack that allows you to build powerful web applications using nothing more than... drumroll... Python, htmx, and Tailwind.
9 |
10 | Quick, take me to the tools already!
11 |
12 | ### Our Goal
13 |
14 | We want to promote hypermedia driven applications. That's it. That's the goal.
15 |
16 | Okay, well, more specifically, we want to promote htmx within the Python ecosystem.
17 |
18 | ### Why Should I Care?
19 |
20 | Does any of this sound like you:
21 | - I want to stick with just Python and HTML/CSS, [but not sacrifice front-end functionality](https://htmx.org/essays/when-to-use-hypermedia/).
22 | - I don't want to have to use a [complicated front end framework](https://htmx.org/essays/a-response-to-rich-harris/).
23 | - I don't enjoy [agonizing over CSS class names](https://tailwindcss.com/docs/utility-first#:~:text=You%20aren%E2%80%99t%20wasting%20energy%20inventing%20class%20names.).
24 | - I want to maintain a consistent design without any bikeshedding.
25 |
26 | If the above sounds like you then you are in the right place!
27 |
28 | ### Maybe This Isn't For Me
29 |
30 | One of the links above goes to [When Should You Use Hypermedia](https://htmx.org/essays/when-to-use-hypermedia/) over at htmx.org, and is a pretty great read if you want to asses if this is for you. It also expounds on the following points:
31 |
32 | Hypermedia might not be a good fit:
33 | - …If your UI has many, dynamic interdependencies
34 | - i.e., Google Maps, Google Sheets
35 | - ...If you require offline functionality
36 | - …If your UI state is updated extremely frequently
37 | - i.e., Online game
38 | - …If your team is not on board
39 |
40 | ### But Will it Work in Production?
41 |
42 | Yes! [Here is a very good example](https://htmx.org/essays/a-real-world-react-to-htmx-port/) of a project a company underwent using HTMX with Django in production. You can also watch the original video from DjangoCon EU 2022, titled [From React to htmx on a real-world SaaS product: we did it, and it's awesome!](https://www.youtube.com/watch?v=3GObi93tjZI)
43 |
44 | Some highlights from the article.
45 |
46 | > - The effort took about 2 months (with a 21K LOC code base, mostly JavaScript)
47 | > - No reduction in the application’s user experience (UX)
48 | > - They reduced the code base size by 67% (21,500 LOC to 7200 LOC)
49 | > - They increased python code by 140% (500 LOC to 1200 LOC), a good thing if you prefer python to JS
50 | > - They reduced their total JS dependencies by 96% (255 to 9)
51 | > - They reduced their web build time by 88% (40 seconds to 5)
52 | > - First load time-to-interactive was reduced by 50-60% (from 2 to 6 seconds to 1 to 2 seconds)
53 | > - Much larger data sets were possible when using htmx, because react simply couldn’t handle the data
54 | > - Web application memory usage was reduced by 46% (75MB to 45MB)
55 |
56 |
57 |
58 | ## Glossary :scroll:
59 |
60 | - **Asynchronous Server Gateway Interface (ASGI)** - A standard that allows an application to talk to a server, allowing for multiple, asynchronous events per application.
61 | - **component** - A reusable custom element. Within JavaScript, it is a self-contained element with its own properties/methods that are reusable. In this context, the term is more broadly applied to any reusable elements (which may include hypermedia or other design elements).
62 | - **dependency** - Any application (library or package) that are required to run your application.
63 | - **fragments** - Refers to partial content of a an HTML template. See also: _template fragments_
64 | - **hypermedia** - Medium of information including graphics, audio, video, text, and hyperlinks, typically represented on the web as HTML
65 | - **Hypermedia Driven Application (HDA)** - Uses declarative, HTML embedded syntax to achieve front-end interactivity, while interacting with the server in terms of hypermedia (HTML) instead of a non-hypermedia format (JSON).
66 | - **partials** - A loose term, sometimes referring to "partial" content that can be displayed in a template, or _partial_ content to be generated from within a template block.
67 | - **Server Side Rendering (SSR)** - Generating static HTML markup on the server before it is rendered in the browser on the front-end.
68 | - **Single Page Application (SPA)** - A web app implementation that loads a single web document, and subsequently updates content through JavaScript APIs.
69 | - **template fragments** - a relatively rare SSR template library feature that allow you to render a _fragment_ or partial bit of the content within a template, rather than the entire template.
70 |
71 |
72 | ## Usage ✏️
73 |
74 | Htmx can be used with any backend framework. Currently, there is a lot of experimentation in the Python space, which is exciting! But that also means that there are a lot of disparate approaches.
75 |
76 | The best advice here is to get familiar with some of the core packages (htmx, tailwind). Then feel free to check out any of the packages below.
77 |
78 |
79 | ## Official Resources 📚
80 |
81 | - [htmx](https://htmx.org/) - htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext. Htmx has no outside dependencies outside of a vanilla JavaScript file referenced in your HTML `
` section.
82 | - [tailwindcss](https://tailwindcss.com/docs/installation) - Rapidly build modern websites without ever leaving your HTML. Tailwind provides a standalone CLI tool that _does not_ require npm or any other JavaScript dependencies. (You can install it through `pip` using the [pytailwindcss](https://pypi.org/project/pytailwindcss/) library)
83 |
84 |
85 | ## Introductory Resources 🔰
86 | - **[How to create a Django form (using HTMX) in 90 seconds 🐎](https://www.photondesigner.com/articles/submit-async-django-form-with-htmx)**
- A simple, short guide to start using HTMX with Django very quickly 🐎
87 | - **[Add instant database search with Django and HTMX 🕵️](https://www.photondesigner.com/articles/database-search-django-htmx)**
- Build an instant database search using Django and HTMX in 6 steps 🕵️
88 | - **[Add infinite scroll with Django and HTMX in 60 seconds ∞](https://www.photondesigner.com/articles/infinite-scroll-htmx-django)**
- Shows how to add infinite scroll to your Django app using HTMX in a simple guide ∞
89 | - **[simple site](https://github.com/tataraba/simplesite)**
- Provides thorough documentation on building a site from the ground up with FastAPI, Jinja, htmx, and Tailwind.
90 | - **[Rapid Prototyping with Flask, htmx, and Tailwind CSS](https://testdriven.io/blog/flask-htmx-tailwind/)**
- In this tutorial, you'll learn how to set up Flask with htmx and Tailwind CSS. (testdriven.io)
91 | - **[Django, HTMX and Alpine.js: Modern websites, JavaScript optional
92 | ](https://www.saaspegasus.com/guides/modern-javascript-for-django-developers/htmx-alpine/)**
- Building a modern front end in Django without reaching for a full-blown JavaScript framework. Choosing the right tools for the job, and bringing them into your project.
93 |
94 |
95 | ## Introductory Courses 🏫
96 |
97 | - **[HTMX + Flask: Modern Python Web Apps, Hold the JavaScript Course](https://training.talkpython.fm/courses/htmx-flask-modern-python-web-apps-hold-the-javascript)**
- htmx is one of the hottest properties 🔥 in web development today, and for good reason. This framework, along with the libraries and techniques introduced in this course, will have you writing the best Python web apps you've ever written: clean, fast, and interactive without all that frontend overhead. (TalkPython Training)
98 | - **[HTMX + Django: Modern Python Web Apps, Hold the JavaScript Course](https://training.talkpython.fm/courses/htmx-django-modern-python-web-apps-hold-the-javascript)** - Similar to the course above, except with Django. (TalkPython Training)
99 | - **[Bugbytes Django & HTMX](https://www.youtube.com/watch?v=Ula0c_rZ6gk&list=PL-2EBeDYMIbRByZ8GXhcnQSuv2dog4JxY)**
- A phenomenal tutorial series on using Django with htmx.
100 | - **[Code With Stein Django Ecommerce Website Htmx and tailwind](https://youtu.be/EoYFWkxXxXM?si=ROvMhDlOWsQ3IHzQ)** - A great tutorial on building a Django ecommerce website with htmx and tailwind.
101 |
102 |
103 | ## Design, Theory, and Patterns 🧠
104 | - **[Django + htmx patterns](https://github.com/spookylukey/django-htmx-patterns)** 
105 | A compilation of patterns for writing Django projects that use htmx, with complete example code.
106 | - **[htmx Essays](https://htmx.org/essays/)**
107 | A collection of essays by Carson Gross, the creator of htmx. Some specific essays of note for those not familiar with his teachings:
108 | - **[Hypermedia-Driven Applications](https://htmx.org/essays/hypermedia-driven-applications/)** - This web stack could have been called PyHDA, this essay gives a great primer on how a PyHAT application should look, architecturally.
109 | - **[Locality of Behaviour (LoB)](https://htmx.org/essays/locality-of-behaviour/)** - A concept you will see referred to a lot around here. "The behaviour of a unit of code should be as obvious as possible by looking only at that unit of code"
110 | - **[Splitting Your Data & Application APIs: Going Further](https://htmx.org/essays/splitting-your-apis/)** - A great essay (responding to a [great article](https://max.engineer/server-informed-ui)).
111 | > If you split your API into Data and Application APIs...you should consider changing your Application API from JSON to Hypermedia (HTML) & using a hypermedia-oriented library like htmx to reap the benefits of the hypermedia model (simplicity, reliability, flexibility, etc.)
112 | - **[Why We Should Stop Using JavaScript According to Douglas Crockford (Inventor of JSON)](https://youtu.be/lc5Np9OqDHU)**
113 | A short video of Douglas Crockford explaining why we should stop using JavaScript.
114 | - **[3 IRL use cases for Python and HTMX](https://www.bitecode.dev/p/3-irl-use-cases-for-python-and-htmx)** - _From the author:_ There is nothing HTMX does that you couldn't do in another way. But HTMX pairs wonderfully with traditional server side frameworks and gives you clean, correct, results quite fast. You won't get candy crush bling level with it, but you will get something practical, which is regularly all what I need.
115 | - **[HTML First](https://html-first.com)** - HTML First is a set of principles that aims to make building web software easier, faster, more inclusive, and more maintainable by... 1) Leveraging the default capabilities of modern web browsers, 2) Leveraging the extreme simplicity of HTML's attribute syntax, 3) Leveraging the web's ViewSource affordance.
116 | - **[You don't need JavaScript for that](https://www.htmhell.dev/adventcalendar/2023/2/)** - It's one of the core principles of web development and it means that you should Choose the least powerful language suitable for a given purpose... On the web this means preferring HTML over CSS, and then CSS over JS.
117 | - **[Django HTMX Components](https://dhc.iwanalabs.com/)** - Live demos and code repository of common Django + HTMX patterns. They are designed to be copy-pasted into your project and customized to your needs.
118 |
119 |
120 | ## Third Party Packages 📦
121 |
122 | ### Demos
123 |
124 | - **[Music Binder](https://github.com/tataraba/musicbinder)**
- More advanced version of [Simple Site repo](https://github.com/tataraba/simplesite) showcasing features like active search and infinite scroll. You can open with a Codespace in GitHub without having to install anything locally.
125 | - **[Bulldoggy: The Reminders App](https://github.com/AutomationPanda/bulldoggy-reminders-app)**
Bulldoggy is a small demo web app for tracking reminders. Uses htmx to handle `GET`, `POST`, `PATCH` requests in a fully-functioning to-do frontend.
126 | - **[Owela Club](https://github.com/adamchainz/owela-club)**
- Play the Namibian game of Owela against a terrible AI. Built using Django and htmx.
127 |
128 | ### Templates
129 |
130 | - **[falco](https://github.com/tobi-de/falco)**

131 | Enhance your Django developer experience: CLI and Guides for the Modern Django Developer.
132 | - **[django-cotton](https://github.com/wrabit/django-cotton)**

133 | Create highly re-usable and configurable components. (No Jinja2 needed)
134 |
135 | ### Helper Libraries
136 |
137 |
145 | - **[Jinja2 fragments](https://github.com/sponsfreixes/jinja2-fragments)**

146 | Allows rendering individual blocks from Jinja2 templates. This library was created to enable the pattern of [template fragments](https://htmx.org/essays/template-fragments/) with Jinja2. Extremely helpful when using HTMX to enable [Locality of Behavior](https://htmx.org/essays/locality-of-behaviour/)
147 | - **[Jinja Partials](https://github.com/mikeckennedy/jinja_partials)**

148 | When building real-world web apps with Flask + Jinja2, it's easy to end up with repeated HTML fragments. Just like organizing code for reuse, it would be ideal to reuse smaller sections of HTML template code. That's what this library is all about.
149 | - **[Django Render Block](https://github.com/clokep/django-render-block)**
150 | Allows rendering individual blocks from Django templates. This library was created to enable the pattern of [template fragments](https://htmx.org/essays/template-fragments/) with Django (using Django or Jinja2 templates). Extremely helpful when using HTMX to enable [Locality of Behavior](https://htmx.org/essays/locality-of-behaviour/)
151 | - **[Flask-HTMX](https://github.com/edmondchuc/flask-htmx)** 
152 | A Flask extension to work with HTMX.
153 | - **[htmx-Flask](https://github.com/sponsfreixes/htmx-flask)**
154 | An extension for Flask that adds support for htmx to your application. It simplifies using htmx with Flask by enhancing the global 'request' object and providing a new 'make_response' function.
155 | - **[FastAPI-HTMX](https://github.com/maces/fastapi-htmx)** 
156 | An opinionated extension for FastAPI to speed up development of lightly interactive web applications.
157 | - **[FastHX](https://github.com/volfpeter/fasthx)** 
158 | Flexible FastAPI utility for adding HTMX support to routes using the decorator syntax. It works with any templating engine or server-side rendering library and comes with built-in Jinja2 support.
159 | - **[asgi-htmx](https://github.com/florimondmanca/asgi-htmx)** 
160 | HTMX integration for ASGI applications. Works with Starlette, FastAPI, Quart -- or any other web framework supporting ASGI that exposes the ASGI `scope`. Inspired by `django-htmx`.
161 | - **[django-htmx](https://github.com/adamchainz/django-htmx)**
162 | Extensions for using Django with htmx.
163 | - **[django-siteajax](https://github.com/idlesign/django-siteajax)**
164 | Streamline your server and client interaction using declarative techniques in your HTML and helpful abstractions from siteajax in your Python code. Powered by htmx.
165 | - **[hx-requests](https://github.com/yaakovLowenstein/hx-requests)**
166 | A package to simplify the usage of HTMX with Django. Easily add HTMX requests witout needing additional urls, and reduce clutter in views by offloading all responsibility to an hx_request.
167 | - **[django-cbv-htmx](https://github.com/mixmash11/django-cbv-htmx)**
168 | Helps connect Django Class-Based-Views with htmx.
169 | - **[Starlette_htmx](https://github.com/lllama/starlette-htmx)** 
170 | A set of extensions for using htmx with Starlette, based on `django-htmx`.
171 | - **[django-template-partials](https://github.com/carltongibson/django-template-partials)**
172 | Reusable named inline partials for the Django Template Language. [Has a great intro talk from DjangoCon](https://www.youtube.com/watch?v=_3oGI4RC52s)! 🎥
173 |
174 | ### Frameworks
175 | - **[Litestar](https://litestar.dev)**
Litestar is a full-on ASGI web framework (think FastAPI, Sanic, Starlette, etc...) So why is it included here? With their most recent 2.0 release, the creators have included htmx support out of the box. A special `HTMXRequest` provides easier access to HX-request header objects, and an `HTMXTemplate` object that includes attributes for common htmx actions (pushing url, re_swap, re_targets, etc...)
176 | - **[Forge Packages](https://www.forgepackages.com/)**
177 | Forge is a set of Django packages that work well together, but can also be used independently. These include some htmx/tailwind specific packages highlighted below. Note that these are opinionated approaches, but they provide a robust set of features to enhance your developer experience.
178 | - **[forge-htmx](https://www.forgepackages.com/docs/forge-htmx/)** - The forge-htmx Django package adds a couple of unique features for working with HTMX. One is template fragments and the other is view actions.
179 | - **[forge-tailwind](https://www.forgepackages.com/docs/forge-tailwind/)**
- Use Tailwind CSS with Django without requiring JavaScript or npm.
180 | - **[django_htmx_ui](https://github.com/nikalexis/django_htmx_ui)**

181 | A django app that combines and helps leverage the full-stack django framework, the frontend htmx framework, the django-htmx library, and the jinja template engine. It provides extended django Views with htmx build-in functionality, CRUD Views for django models, extra Mixins to use with your Views to make life easier, a ready-to-use jinja environment, Middlewares for automations, and extra utils and decorators for common use cases.
182 | - **[Ludic](https://github.com/paveldedik/ludic)** 
183 | Ludic is a lightweight ASGI web framework that allows the building of dynamic HTML pages using pure Python. It is based on Starlette and offers seamless HTMX integration, a component-based approach, and intuitive f-string templating for a smooth and powerful development experience.
184 |
185 | ### Components
186 |
187 | - **[Django Dashboards](https://github.com/wildfish/django-dashboards)**
188 | Tools to help you build data dashboards in Django.
189 | - **[django-htmx-autocomplete](https://github.com/PHACDataHub/django-htmx-autocomplete)**
190 | A client-side autocomplete component powered by htmx featuring multiselect, search and is completely extensible.
191 |
192 | ### Tools
193 |
194 | - **[django-tailwind-cli](https://oliverandrich.github.io/django-tailwind-cli/)**

195 | An integration of Tailwind CSS for Django that is based on the precompiled versions of the Tailwind CSS CLI (No JS required!)
196 | - **[pytailwindcss](https://github.com/timonweb/pytailwindcss)** 
197 | Tailwind CSS is notoriously dependent on _Node.js_. If you're a Python developer, this dependency may not be welcome in your team, your Docker container, or your inner circle. Giving up _Node.js_ means you won't be able to install plugins or additional dependencies for your Tailwind CSS setup. At the same time, that might not be a dealbreaker. You can still customize Tailwind CSS via the tailwind.config.js file.
198 | - **[HTML Form to Dict](https://github.com/guettli/html_form_to_dict)**
199 | Do simple end-to-end testing of form handling without a real browser (like selenium/puppeteer/playwright). Supports the "action" and "method" attributes of forms and additionaly the htmx attributes hx-get, hx-post.
200 |
201 | ## Projects Using PyHAT (or similar) 🏗️
202 |
203 | - **[Django Requests Tracker](https://github.com/bensi94/Django-Requests-Tracker)** 
204 | A Django development tool which collects and displays information on requests, responses, SQL queries, headers, Django settings and more. The Front-end uses HTMX.
205 | - **[IDP-Z3](https://gitlab.com/krr/IDP-Z3)** 
206 | A software collection implementing the Knowledge Base paradigm using the FO(.) language. Uses htmx for the front end.
207 | - **[JupySpace](https://github.com/davidbrochart/jupyspace)** 
208 | A web server and client to manage conda-forge environments from the browser and access them through JupyterLab. Uses htmx on the front-end.
209 | - **[Harfang](https://github.com/sqwxl/harfang)** 
210 | A social content posting and discussion site with a focus on simplicity and accessibility. Inspired by Hacker News and Reddit. Built with Django, HTMX, Alpine.js and Tailwind CSS
211 |
212 | ## Further Reading 📖
213 |
214 | - [Awesome Htmx](https://github.com/rajasegar/awesome-htmx)
215 | - [Maximizing Productivity: PyCharm and htmx Integration ](https://oluwatobi.dev/blog/maximizing-productivity-pycharm-and-htmx-integration/)
216 | - [unsuck.js](https://unsuckjs.com/)
217 |
--------------------------------------------------------------------------------