django-htmx-messages-framework icon indicating copy to clipboard operation
django-htmx-messages-framework copied to clipboard

Consider publishing this as a package

Open abe-101 opened this issue 2 years ago • 7 comments

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?

abe-101 avatar Jan 14 '24 00:01 abe-101

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?

bblanchon avatar Jan 14 '24 08:01 bblanchon

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 avatar Jan 17 '24 07:01 offbyone

@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

bblanchon avatar Jan 18 '24 09:01 bblanchon

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?

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:

abe-101 avatar Jan 23 '24 00:01 abe-101

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 avatar Dec 31 '24 11:12 abe-101

@abe-101, I give you my permission; thanks a lot for asking 👍

bblanchon avatar Jan 02 '25 15:01 bblanchon

https://github.com/abe-101/django-htmx-messages

https://pypi.org/project/django-htmx-messages/

abe-101 avatar Jan 03 '25 04:01 abe-101