Compare commits

...

10 Commits

Author SHA1 Message Date
1e5ef0443e Fix handling of empty blog posts in get_latest_posts function
Some checks failed
Python application / build (push) Has been cancelled
2026-05-29 17:33:36 -05:00
19aba001dc Update rafnixg version constraint in requirements.txt 2026-05-29 17:06:44 -05:00
77539143b1 [BOT] Update README with latest info 2026-03-29 15:07:42 +00:00
df0c0480c7 [BOT] Update README with latest info 2025-05-14 22:07:38 +00:00
9da9905ec7 Update README.template 2025-05-14 17:07:26 -05:00
d430b8fdf9 [BOT] Update README with latest info 2025-05-14 22:01:00 +00:00
402373726e Update README.template 2025-05-14 17:00:49 -05:00
c8fc711edd [BOT] Update README with latest info 2025-04-18 10:03:08 +00:00
3f66e2907b [BOT] Update README with latest info 2025-04-18 05:03:05 +00:00
24ef62cbd0 [BOT] Update README with latest info 2025-04-17 05:03:07 +00:00
4 changed files with 15 additions and 11 deletions

View File

@@ -1,7 +1,9 @@
## Hi, I'm Rafnix Guzmán a Python Software Developer
![](https://raw.githubusercontent.com/rafnixg/rafnixg/master/rafnix_header.jpeg)
![Python application](https://github.com/rafnixg/rafnixg/workflows/Python%20application/badge.svg?branch=master&event=schedule) ![Visitors](https://visitor-badge.laobi.icu/badge?page_id=rafnixg.rafnixg)
![Python application](https://github.com/rafnixg/rafnixg/workflows/Python%20application/badge.svg)
![Visitors](https://visitor-badge.laobi.icu/badge?page_id=rafnixg.rafnixg)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rafnixg/rafnixg)
```python
class RafnixG:
@@ -46,12 +48,12 @@ if __name__ == '__main__':
## Latest Posts (Spanish)
- [Cómo publicar tu propia librería de Python: Guía paso a paso](https://blog.rafnixg.dev/como-publicar-tu-propia-libreria-de-python-guia-paso-a-paso)
- [Nanobot: Arquitectura y Funcionamiento del Agente IA Ultra-ligero](https://blog.rafnixg.dev/nanobot-arquitectura-y-funcionamiento-del-agente-ia-ultra-ligero)
- [⚙️ Como automatizar tu librería en PyPI con GitHub Actions](https://blog.rafnixg.dev/como-automatizar-tu-libreria-en-pypi-con-github-actions)
- [🏗️ Cómo publicar tu propia librería de Python: Guía paso a paso](https://blog.rafnixg.dev/como-publicar-tu-propia-libreria-de-python-guia-paso-a-paso)
- [Shell de Odoo: Domina Operaciones Avanzadas, Integración de Librerías y Automatización de Tareas](https://blog.rafnixg.dev/shell-de-odoo-domina-operaciones-avanzadas-integracion-de-librerias-y-automatizacion-de-tareas)
- [Explorando Odoo a fondo: Cómo trabajar con la shell de la CLI y configurar IPython como REPL](https://blog.rafnixg.dev/explorando-odoo-a-fondo-como-trabajar-con-la-shell-de-la-cli-y-configurar-ipython-como-repl)
- [Crea tu propio chatbot con la API de OpenAI y Gradio en Python](https://blog.rafnixg.dev/crea-tu-propio-chatbot-con-la-api-de-openai-y-gradio-en-python)
- [Los servicios que uso en mi HomeLab server: virtualización, contenedores y más.](https://blog.rafnixg.dev/los-servicios-que-uso-en-mi-homelab-server-virtualizacion-contenedores-y-mas)

View File

@@ -1,7 +1,9 @@
## Hi, I'm Rafnix Guzmán a Python Software Developer
![](https://raw.githubusercontent.com/rafnixg/rafnixg/master/rafnix_header.jpeg)
![Python application](https://github.com/rafnixg/rafnixg/workflows/Python%20application/badge.svg?branch=master&event=schedule) ![Visitors](https://visitor-badge.laobi.icu/badge?page_id=rafnixg.rafnixg)
![Python application](https://github.com/rafnixg/rafnixg/workflows/Python%20application/badge.svg)
![Visitors](https://visitor-badge.laobi.icu/badge?page_id=rafnixg.rafnixg)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/rafnixg/rafnixg)
```python
class RafnixG:

6
app.py
View File

@@ -23,6 +23,9 @@ def get_latest_posts(max_posts: int) -> list:
max_posts = MAX_POSTS
# Get the latest blog posts
data = BlogPosts().posts
# Return an empty list when the source returns None or no posts.
if not data:
return []
return data[0:max_posts]
def render_readme(data: dict) -> None:
@@ -45,9 +48,6 @@ def main():
# Get the latest blog posts
latest_posts = get_latest_posts(MAX_POSTS)
print("Latest posts: ", latest_posts)
# Check if latest_posts is None
if not latest_posts:
raise ValueError("Latest posts are None")
# Data to render
data = {
'latest_post': latest_posts

View File

@@ -1,2 +1,2 @@
Jinja2==3.1.6
rafnixg==1.7.5
rafnixg>=1.7.5