home.social

#jinja — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #jinja, aggregated by home.social.

  1. RE: mas.to/@davidism/1169308363400

    Acording to their own words: "Pallets is the open source community organization that develops and supports popular Python frameworks" (including #Flask or #Jinja )

    Good guys!

  2. RE: mas.to/@davidism/1169308363400

    Acording to their own words: "Pallets is the open source community organization that develops and supports popular Python frameworks" (including #Flask or #Jinja )

    Good guys!

  3. Just released the askama rust crate (jinja templating) 0.16.0 version!

    It comes with a lot of nice features and increased support of jinja features.

    You can see the full details here: github.com/askama-rs/askama/re

    crates.io/crates/askama

    Enjoy!

    #rust #jinja #jinja2

  4. Just released the askama rust crate (jinja templating) 0.16.0 version!

    It comes with a lot of nice features and increased support of jinja features.

    You can see the full details here: github.com/askama-rs/askama/re

    crates.io/crates/askama

    Enjoy!

    #rust #jinja #jinja2

  5. Totally normal workflow:

    I work on documenting #Jinja syntax used in #CondaForge recipes.

    github.com/conda-forge/conda-f

    I decide that the snippets would use Jinja syntax highlighting. However, #Prism doesn't have one. But Internets suggest Twig would work instead.

    github.com/PrismJS/prism/issue

    So I try Twig. Except that Twig highlighter crashes in #Docusaurus. But there's a workaround.

    github.com/facebook/docusaurus

    So I copy the code over to the project, fix it and while at it, rename it to "jinja" and adjust a bit.

    But then, highlighting Jinja expressions alone looks pretty bleak, so let's combine it with YAML… Hmm, that actually doesn't work that well, needs some more adjustments. And before you know it, I have a pretty new Jinja highlighter, and a recipe highlighter that combines Jinja expressions, YAML, v0 recipe selectors, v1 if:/skip: conditions, and also highlighting shell / cmd variables for a good measure.

    github.com/conda-forge/conda-f

  6. Totally normal workflow:

    I work on documenting #Jinja syntax used in #CondaForge recipes.

    github.com/conda-forge/conda-f

    I decide that the snippets would use Jinja syntax highlighting. However, #Prism doesn't have one. But Internets suggest Twig would work instead.

    github.com/PrismJS/prism/issue

    So I try Twig. Except that Twig highlighter crashes in #Docusaurus. But there's a workaround.

    github.com/facebook/docusaurus

    So I copy the code over to the project, fix it and while at it, rename it to "jinja" and adjust a bit.

    But then, highlighting Jinja expressions alone looks pretty bleak, so let's combine it with YAML… Hmm, that actually doesn't work that well, needs some more adjustments. And before you know it, I have a pretty new Jinja highlighter, and a recipe highlighter that combines Jinja expressions, YAML, v0 recipe selectors, v1 if:/skip: conditions, and also highlighting shell / cmd variables for a good measure.

    github.com/conda-forge/conda-f

  7. Apache Superset — боремся с фильтрами по дате. Часть 2

    В этой статье продолжаем борьбу с фильтрами по дате в Apache Superset. Сегодня разберем, как реализовать подобие логики remove_filter в старых версиях (до 5), чтобы виртуальный датасет не оборачивался фильтрами.

    habr.com/ru/articles/1016384/

    #apache_superset #jinja #фильтр #дата #танцы_с_бубном #визуализация #большие_данные

  8. bsky.app/profile/jinja.lightmo is such a queen 👑🔥
    Already loved the German original and the English version is a banger, too 🙂‍↕️❤️‍🔥

    youtube.com/watch?v=PgWfeO1KKAg

    #Jinja #Music #VTuber

  9. Like you, @carlton, I'm still recovering from the intense days we've had. I was able to publish the post timeline so quickly because I automated the process with Python, Pelican, Jinja and Mastodo.py ... the main job was just publishing posts consistently throughout the event. 🤖

  10. Like you, @carlton, I'm still recovering from the intense days we've had. I was able to publish the post timeline so quickly because I automated the process with Python, Pelican, Jinja and Mastodo.py ... the main job was just publishing posts consistently throughout the event. 🤖

    #Pelican #Python #MastodonPy #Jinja

  11. For pagekite.net, I am currently experimenting with bootstrapping and configuring servers using shell scripts built/configured using a #jinja static site generator.

    If this works well (so far, it does), it replaces #Ansible ...

    Servers are assigned an unguessable URL, from which they download both initial bootstrapping, updates and config. The web server is 100% static.

    A sweet touch: while developing, the files just live on my laptop and are downloaded over #pagekite. Because why not?

  12. For pagekite.net, I am currently experimenting with bootstrapping and configuring servers using shell scripts built/configured using a #jinja static site generator.

    If this works well (so far, it does), it replaces #Ansible ...

    Servers are assigned an unguessable URL, from which they download both initial bootstrapping, updates and config. The web server is 100% static.

    A sweet touch: while developing, the files just live on my laptop and are downloaded over #pagekite. Because why not?

  13. Salilla tein selkää ja rintaa. Jäljitin Home Assistantin Sleep as Android -integroinnin bugia, ja toisen HA-ongelman ratkaisutin ChatGPT:llä.

    https://marginaa.li/2025/09/17/17-syyskuuta-2025/

  14. Superset deep-linking: как Rison и Jinja превращают сводный дашборд в инструмент фокус-анализа

    За один клик из сводного дашборда — на «дочерний» с уже выставленными фильтрами. Разберём, как в Apache Superset прокидывать выбранные значения через URL-параметр native_filters в формате Rison и собирать ссылку Jinja-макросами.

    habr.com/ru/articles/946710/

    #superset #jinja2шаблоны #jinja #sql

  15. Разграничение доступа к данным дашборда в Superset с помощью фильтрации на основе логина (снова Jinja)

    Сегодня мы рассмотрим достаточное простое решение, как ограничить доступ к любому вашему дашборду на Суперсете, зная лишь емейл или логин пользователя , без использования стандартных не самых удобных прав пользователя «зашитых» в Superset.

    habr.com/ru/articles/938924/

    #superset #jinja #ограничение_прав #фильтрация #ограничение_доступа

  16. Column Level Security (CLS) в Apache Superset. Jinja + Handlebars

    🔒 Column Level Security (CLS) в Apache Superset: защита данных на уровне столбцов Узнайте, как гибко ограничивать доступ к конфиденциальным данным с помощью Jinja и Handlebars. Практические примеры и готовые решения для ваших дашбордов.

    habr.com/ru/articles/932184/

    #superset #jinja #handlebars #apache #cls #rls #rbac

  17. I came across the #Fail2Ban #docker image from #linuxserverio and thought to myself that it's finally time to set up Fail2Ban. I admit i never used it before and it was a bit difficult to add it to my #playbook as all of my #servers have different services and therefore different #logfile paths, but that's nothing #jinja #templating can't fix.

    Now that i've got #Discord notifications for banned #IPs, it's time to work on actual #IPblocking. I also want to use the #IPComplaint and #AbuseIPDB actions as i really like the idea of reporting abuse (even though i have no idea how effective that may be).

    I may also want to replace the discord #webhook with #email notifications later as that's mostly the reason i've set up a #mailserver ( #stalwart ) in the first place.

    I mean, most of my services are only accessible from #tailscale or my #homenetwork, but since #Ansible makes it so much easier to apply higher standards, i just can't resist. My #homelab is changing every day and i think setting up additional #security, even though i don't need it yet, is never a bad idea.

    #networking #badactors #firewall #automation #linux #selfhosting #homeserver

  18. I came across the #Fail2Ban #docker image from #linuxserverio and thought to myself that it's finally time to set up Fail2Ban. I admit i never used it before and it was a bit difficult to add it to my #playbook as all of my #servers have different services and therefore different #logfile paths, but that's nothing #jinja #templating can't fix.

    Now that i've got #Discord notifications for banned #IPs, it's time to work on actual #IPblocking. I also want to use the #IPComplaint and #AbuseIPDB actions as i really like the idea of reporting abuse (even though i have no idea how effective that may be).

    I may also want to replace the discord #webhook with #email notifications later as that's mostly the reason i've set up a #mailserver ( #stalwart ) in the first place.

    I mean, most of my services are only accessible from #tailscale or my #homenetwork, but since #Ansible makes it so much easier to apply higher standards, i just can't resist. My #homelab is changing every day and i think setting up additional #security, even though i don't need it yet, is never a bad idea.

    #networking #badactors #firewall #automation #linux #selfhosting #homeserver

  19. I might be overdoing this whole #RDF and #LinkedData thing, but… here's the first steps with #Trinja, a RDF-to-HTML mapper and #SSG:

    codeberg.org/Taganak/trinja/sr

    The idea is: Use *any* resource described as RDF (e.g. from #Wikidata or an #ActivityPub action), link a #Jinja template to it or its rdf:type in your own set of statements, and there you got your visualisation!

    Based on #TaganakNet, the #Rust #RDF development kit by @codecraft and me. We are collecting real-world examples at a good rate!

  20. I might be overdoing this whole #RDF and #LinkedData thing, but… here's the first steps with #Trinja, a RDF-to-HTML mapper and #SSG:

    codeberg.org/Taganak/trinja/sr

    The idea is: Use *any* resource described as RDF (e.g. from #Wikidata or an #ActivityPub action), link a #Jinja template to it or its rdf:type in your own set of statements, and there you got your visualisation!

    Based on #TaganakNet, the #Rust #RDF development kit by @codecraft and me. We are collecting real-world examples at a good rate!

  21. C’est aussi impressionnant qu’inquiétant de voir un des contributeurs #python le plus significatif (créateur de #Flask et de #jinja) mentionner comment l’IA c’est génial d’un point de vue fonctionnel (pourquoi pas, il a le droit) sans JAMAIS mentionner l’écologie.
    Même pas une allusion. Je ne comprends pas.
    hachyderm.io/@mitsuhiko/114623

  22. I made a thing!

    Jinja HTML, a Jinja HTML template code highlighting extension for Panic's Nova editor.

    If you use Nova to write Jinja HTML templates, you will know that there has long been only one language extension for Jinja in the Extension Library. You may also know that in the latest beta version, 13b1, that extension stops working properly.

    I looked into trying to update the existing extension, but the fix required a ground up rewrite. So I did that!

    I haven't submitted it to the Extension Library yet, because I want to dogfood it for a little while first, but if you are one of the (admittedly pretty small number of) people for whom this would be useful, you can grab it from GitHub right now!

    github.com/TRezendes/JinjaHTML

    #IMadeAThing #Panic #Nova #Jinja

  23. Let's see if I can get a list of the projects who are planning on sprinting at #PyConUS this week:

    * @beeware (Room 317)
    * @pyladiescon Web Portal
    * Pallets Projects (#Flask, #Jinja, etc.)
    * #GNU #Mailman (Room 310)
    * Project Mesa
    * Read The Docs
    * SOSW
    * @blackpythondevs Website
    * Core #CPython (2 rooms)
    * Python Community and Conference Organizers Kit (Room 310)
    * Python Packaging
    * @aio_libs / @aiohttp
    * Free Threaded Python Community Support

    (continued in replies)

    #PyConUS2025

  24. Let's see if I can get a list of the projects who are planning on sprinting at #PyConUS this week:

    * @beeware (Room 317)
    * @pyladiescon Web Portal
    * Pallets Projects (#Flask, #Jinja, etc.)
    * #GNU #Mailman (Room 310)
    * Project Mesa
    * Read The Docs
    * SOSW
    * @blackpythondevs Website
    * Core #CPython (2 rooms)
    * Python Community and Conference Organizers Kit (Room 310)
    * Python Packaging
    * @aio_libs / @aiohttp
    * Free Threaded Python Community Support

    (continued in replies)

    #PyConUS2025

  25. LitestarCatsCV. Тренируемся на кошках. Расширяем возможности и готовимся к продакшену. Часть 3

    Привет, котики и котолюбы! В первой части нашего кошачьего приключения мы выбрали инструменты (Litestar вместо FastAPI, Granian вместо Gunicorn, KeyDB вместо Redis), настроили uv и заложили фундамент проекта. Во второй части мы построили полноценное CRUD API для резюме котиков (или людей, если вам так ближе), подружили его с PostgreSQL через SQLAlchemy, настроили миграции с Alembic и написали тесты с Pytest. У нас уже есть стены и фундамент, но пора ставить крышу и готовиться к продакшену! 🏠 Сегодня мы сделаем наш API ещё круче: вынесем конфиги в отдельный модуль с помощью msgspec, добавим аутентификацию через встроенный JWT в Litestar, ускорим API с KeyDB, проверим покрытие тестами с coverage, упакуем всё в Docker и нарисуем резюме котиков с помощью Jinja. К концу статьи наш кошачий проект будет готов к реальной жизни — поехали! 🚀

    habr.com/ru/companies/ntechlab

    #api #python #tutorial #backend #uv #fastapi #litestar #granian #jinja #keydb

  26. 🚀 𝗖𝗮𝗹𝗹𝗶𝗻𝗴 𝗮𝗹𝗹 𝗛𝗼𝗺𝗲 𝗔𝘀𝘀𝗶𝘀𝘁𝗮𝗻𝘁 𝘁𝗲𝗺𝗽𝗹𝗮𝘁𝗲 𝘄𝗶𝘇𝗮𝗿𝗱𝘀! 🧙‍♂️

    I’m working on extending the template engine with some new functions, filters, and tests, for example:

    ✅ flatten(list_of_lists) – Flattens nested lists into a single list
    ✅ combine(dict1, dict2, ...) – Merges multiple dictionaries together

    Now, I need your input! 💡

    🔍 What template functions, filters, or tests would make your automations easier?
    💬 What repetitive Jinja gymnastics do you find yourself doing over and over?

    #HomeAssistant #Jinja

  27. You know, the _one_ time I'd have actually appreciated unsolicited advice, the fedi doesn't deliver.

    Because I'm indeed wondering if there are good alternatives to #Jinja in #Python.

  28. In order to fix a Jinja security issue (upgrade to 3.1.6 today!) I had to figure out a clever way to improve Python's `hasattr`: davidism.com/python-jinja-hasa #python #jinja

  29. Version 1.8.0 of jinja2-fragments is out!

    Release notes:
    - Adds support for rendering multiple blocks on Flask, Quart, Sanic and Litestar.
    - Fixes deprecated Litestar import.

    pypi.org/project/jinja2-fragme

    #jinja #flask #quart #sanic #litestar #htmx

  30. Version 1.8.0 of jinja2-fragments is out!

    Release notes:
    - Adds support for rendering multiple blocks on Flask, Quart, Sanic and Litestar.
    - Fixes deprecated Litestar import.

    pypi.org/project/jinja2-fragme

    #jinja #flask #quart #sanic #litestar #htmx

  31. How do you filter a list in #Jinja, to keep only elements that have a length >= 2?

  32. @JingleDJ Thanks! I've done a bit more reading and experimentation and (along with some other suggestions from folk) I'm fairly confident about things. But it's not natural is it?! Basically, I still agree with this guy: reddit.com/r/homeassistant/com

    Anyway, it is what it is. No changing it now - although installing PyScript or AppDaemon is appealing (even though I've never used Python in anger (yet...) - I'd still be a lot more productive I think)...
    #HomeAssistant #Jinja #Python #WhyWhyWhy #HoHum

  33. Ok, I've got a #cloudengineer spicy 🌶️ take that will lose some followers.

    (Preface: I've used #terraform and built up some moderately complex infra with it. Nothing crazy. I'm not an expert, but definitely not new to it either.)

    I will take #ansible every day of the week over TF for any task that's not just spinning up vanilla, CSP-specific infra. That's the one place where TF shines, and everything else imo is just unnecessarily irritating.

    Ansible is cleaner, easier to reason about, and just makes sense to my brain.

    I think it's TF's syntax. It reminds me of #jinja or #golang template language with the unintuitive way of evaluating conditions and calling functions.

    I said what I said.

  34. Hey #Ansible and/or #Jinja crowd: Any idea how I can, reasonably easily, transform the 'records_in' data into 'records_out'?

    What I basically need is to merge these records by _two_ keys: prefix and type. If it was only one key, this would probably be a candidate for the mergeby filter (docs.ansible.com/ansible/lates), but no, it should only merge items where both of these keys are identical.

    Note that I'm converting 'value' into a list on the fly here, too, where necessary. That's only nice-to-have.

  35. Nota, Typst и Evidence. Языки программирования для генерации документов

    Все настолько привыкли к Markdown, что считают его неким стандартом для оформления документов в вебе. Но это не конечная истина, высеченная на камне, а просто популярный язык разметки, как HTML и TeX. В то же время появляется всё больше новых языков, которые позиционируют себя как замену, альтернативу или дополнение к Markdown и TeX. В некоторых случаях они включают функции программирования, то есть позволяют добавить в документ исполняемый код. Веб-редакторы нового поколения можно использовать даже вместо Google Docs.

    habr.com/ru/companies/ruvds/ar

    #ruvds_статьи #Nota #Evidence #LaTeX #Typst #Markdown #бизнесаналитика #Google_Docs #IDE #VSCode #HTML #SGML #KML #KMZ #MathML #SVG #TeX #викиразметка #MediaWiki #Extensible_3D #X3D #XHTML #XML #XHTML_Basic #WML #CHTML #XHTML_MP #Markdoc #Quarto #MDX #Jinja #Liquid #шаблонизаторы #базовое_счисление #Living_Papers