Consider publishing this as a package
I've successfully used the oob in a django project I built over a year ago I now need to use it in 2 other project
That lead to wonder if it can be published as a package Is that something you'd consider?
The only thing worth packaging is the middleware; I mean the two middlewares because the HX-Trigger version and the OOB version are different.
I don't think I can package the rest because it's tied to the CSS framework.
Is that what you had in mind?
I don't know what abe-101 wants, but yeah, that's part of it.
Alternately, can you put a LICENSE in here? The lack of it means, at least as far as my limited understanding of US Copyright law goes, all rights are reserved to you, which means I can't -- for example -- copy your middleware into my project and use it.
@offbyone, I added the license file.
@abe-101, I forgot to mention that (thanks to #5) you can install the package like so:
# For the HX-Trigger version
pip install git+https://github.com/bblanchon/django-htmx-messages-framework.git@hx-trigger
# For the OOB version
pip install git+https://github.com/bblanchon/django-htmx-messages-framework.git@oob
The only thing worth packaging is the middleware; I mean the two middlewares because the
HX-Triggerversion and the OOB version are different. I don't think I can package the rest because it's tied to the CSS framework. Is that what you had in mind?
You make a fair point, a portion of the solution is dependent on the fronted framework (bootstrap) we could just publish the middleware but I'm not sure its worth the effort - as its not a big deal to simply copy it Plus both articles do a good job detailing how to set it up - so to conclude i sorta take back my question :smile:
revisiting: I believe its worth packaging this up and I'm prepared to do the work. (downloading from GitHub is slower) it is only for a single css framework but i think thats ok, we can perhaps show examples how to use it with other css frameworks I use the oob method and would like it available on PyPi. @bblanchon Do I have your permission to publish it on PyPi? (I'll start a separate repo) I'll obviously give credit to your blog and this repo
@abe-101, I give you my permission; thanks a lot for asking 👍
https://github.com/abe-101/django-htmx-messages
https://pypi.org/project/django-htmx-messages/