A febbraio abbiamo fatto il primo evento dell’anno di #PyVenice !

🗣️ Due interventi sui #framework del momento, #flask e #django
⚖️ Un confronto tra #python e #javascript, in termini di #ServerSide e #ClientSide rendering
🚀 Come #DjangoNinja ha reso veloce le #REST di Django, mostrando il codice in azione !!!

🕖 Noi ci vediamo il 16 aprile 2026, con il #workshop su #n8n ‼️
Info e prenotazioni 👇
https://www.meetup.com/pyvenice/events/312919609/
💾 NON mancate !

#PyVenice #3 @pythonitalia #Python #Flask & #DjangoNinja

PyVenice #3 - #Flask & #DjangoNinja

Continuiamo il nostro viaggio itinerante 🚀 per il #Veneto a Mestre, in collaborazione con il #GDGVenezia, un evento alla scoperta dei #framework in #Python !

🕢 Ci troviamo in #presenza giovedì 19 febbraio alle ore 19:00.
📍 Saremo ospitati da Anda Venice Hostel a Mestre, e per chi non potesse raggiungerci, si terrà anche su YouTube in #streaming.

Info e prenotazioni 👇
https://www.meetup.com/pyvenice/events/312919598/
💾 NON mancate !

#PyVenice #3 @pythonitalia

API frameworks for Python Benchmark: FastAPI vs Litestar vs Django Ninja vs Django Bolt vs Django REST Framework
https://github.com/tanrax/python-api-frameworks-benchmark

#python #fastapi #litestar #djangoninja #djangobolt #djangorestframework
Django Ninja

Django Ninja - Django REST framework with high performance, easy to learn, fast to code.

Yo #django friends in the timeline, between #djangoninja and #drf, which one you prefer and why? #tips #python #api

I wrote about them earlier in the year: https://micro.webology.dev/2024/03/06/importing-data-with.html

Even changing the shape of a CSV or JSON file is so much easier with a ModelSchema.

@lacey and I have a large data import project and I only had to change one line of python code (from a schema) to map out another source of data yesterday.

#Django #PyDantic #DjangoNinja

Importing data with Django Ninja's ModelSchema

I have recently been playing with Django Ninja for small APIs and for leveraging Schema. Specifically, ModelSchema is worth checking out because it’s a hidden gem for working with Django models, even if you aren’t interested in building a Rest API. Schemas are very useful to define your validation rules and responses, but sometimes you need to reflect your database models into schemas and keep changes in sync. https://django-ninja.dev/guides/response/django-pydantic/

@ben I think more specifically, you need #Django + #DjangoNinja folks.

Wish I could help more, but most of my APIs have been in DRF.

Here's a generic response for object creation with django-ninja:

```python
class GenericCreatedSchema(Schema, Generic[EmbeddedType]):
success: bool
created_object: EmbeddedType
```

= use the same generic response template for ALL object creation endpoints.

But even better: I can use different response types in the same API endpoint, using HTTP status codes - depending on which fields are exposed to the user.

All of this translates to OpenAPI spec automatically 💯

#django #djangoninja

Planning to work on something comparing FastAPI and Django Ninja ⚡️🥷
Any questions you have you'd want to be covered?
#PythonWeb #FastAPI #DjangoNinja #Django

I wrote a very long script...

It auto-generates an entire Django project from an OpenAPI specification.

It also generates all the API endpoints automatically. Endpoints are Create-Read-Update-Delete-List.

This is pretty awesome for bootstrapping a project that was conceptualized by software architects, but also pretty cool if you need a wiremock that stays up2date with an OpenAPI spec that changes often.

This is only possible because #Django and #djangoninja are awesome.