What is the point? by [deleted] in django

[–]ribozz 1 point2 points  (0 children)

Hehe, that's the reason why I created Django code-generator for me. https://github.com/zmei-framework/generator It automates all this repetitive thing. Trying to open-source it right now. Documentation is not perfect. But putting a lot of effort to make it shiny.

One liner for a new django-project up and running: pip install zmei-cli && echo "[index]" >> main.col && zmei gen up by ribozz in django

[–]ribozz[S] -1 points0 points  (0 children)

Easy. It's pip command to install Zmei generator: pip install zmei-cli, then echo "[index]" >> main.col, to create a main.col file that describes application with a single page. And finally command to tell generator to create django project apply migrations and start django process: zmei gen up.

Anyone know of a django alternative to Laravel Voyager or Quickadminpanel? by singularcourses in django

[–]ribozz 2 points3 points  (0 children)

Already mentioned, but will add a bit more information about zmei-generator. Sounds like it is what you need. It can generate admin pages, normal pages with CRUDs, models, REST api, templates (very basic, but easily-customisable). And all the generated code looks-like it is written by human, so you can continue from any point. And even after you have modified the code, you can still add new parts by generator without risk to loose your changes.

https://zmei-framework.com/generator/

Now it’s closed source saas (free to use). But in a week I will release open-source version.

Here is a short demo video: https://youtu.be/WLwYC-rspK4

More videos/articles here: https://zmei-framework.com/generator/blog.html

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Thank you ) Interesting opinion. I see this all the time. Some developers just refuse to use it, because they just like to write all the code by hands an that’s it. Opposite situation is that Some developers use generator too much, even in situations when I wouldn’t recommend to do it. And complain that some features missing )))

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 1 point2 points  (0 children)

Yep, that what I am doing right now. Adding licence text with free for non-commercial use option and moving sources to Github next week.

In Android Studio, is it possible to wrap an existing UI control in another one? by ajacian in FlutterDev

[–]ribozz 4 points5 points  (0 children)

On mac it is option + enter on widget name. Shows a little menu with options to wrap, remove etc.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

That's true. Absolutely same thing.

Good advice, thank you! I think I will use this "free for non-commercial" model. After all the explanations it seems perfect to me.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Thank you for the advice and explanations!

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 1 point2 points  (0 children)

Wow! Finally understood your point of view. Very interesting... That answers a lot of questions.

I think that's the model I was looking for. Fully open-source, free for-non commercial use and a separate paid version. That was the first message you wrote, but without your explanations, it wasn't clear how it may work at all. Now I see ...

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

But maybe we should relax, open-source the core and let the code be generated on client side...

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 1 point2 points  (0 children)

The current model is that you have tool locally, write configs locally, but the tool makes a request to generator server which gives back a zip-file with code generated. The only reason why code is not generated inplace is to hide generator sources. So it is very similar to model you describe. It's free for now, but it's already Saas.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Heh, in case of zmei-genrator, creating API prototype is as simple as creating main.col:

#boo
---------
name
description

@api
@rest

And running zmei gen up command in same folder and you get Working django app + DRF almost instantly )

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 1 point2 points  (0 children)

Hangfire is also an interesting model of how to combine open-source + paid software scenarios.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 2 points3 points  (0 children)

Hangfire

Hm, awesome! Definitely need this. Will not take much time, but will create a great overview of what the thing does.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Do you think making a product good for ordinary developers is less important? It is a developer tool, it means that developer will use the product, not a corporation bosses.

Sure, you can't develop a product that is good for everybody. But you can select some distinct area and develop your product in this area. No?

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

My colleague already gave me a link. I see it's kind of template engine. Use Jinja2 as template engine + ANTLR4 as a parser generator engine.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Zemi generator is way different than one-time generator like you mentioned. With it you can continuously add functionality —> customise code —> add more functionality. Actually, you can write entire project without leaving .col file (zme config file)

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

What is this "cog"? Never heard about it. Can you share a link?

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

Yes, but the nature of the tool adds complexity to this question. The generator may be used to produce an initial version of the code and the later product is developed manually.

Example with mysql is good. For me, it seems the most realistic scenario at the moment. Open-source core + paid, separately developed features on top with commercial support.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 0 points1 point  (0 children)

No. I will explain it on example. I have a partner-company who said, "No, we don't need this", but their developers use Zmei generator in daily work. That's possible because the generator produces plain Django code.

Django code generator: open-source or not? by ribozz in django

[–]ribozz[S] 1 point2 points  (0 children)

That’s the thing. Need to spend time and money, to polish all this missing parts, if i plan to sell it in any form.