Django REST Envelope

April 9, 2023 | Tags: django django-rest-framework

In the list endpoints of a REST API, you usually send a list of objects. However, in the Django REST framework and, in particular, when using viewsets, the list method does return a list. But oftentimes it's very useful to return an object that has a key that contains that list. Why? Because you can send additional data, such as pagination, for example, without having to make breaking changes, among other things.

[Read more]

How do I manage python virtual environmental with multiple python versions.

Feb. 19, 2023 | Tags: Python virtualenv dev tools

Recently, no I've been working with different python versions for different projects at work. So far I used pyenv and pyenv-virtualenv with variously degrees of success. However, it become cumbersome quickly managing different python versions, tools that only work with a single python installation at a time and at some point something stopped working and got tired of it.

[Read more]

Django Simple Analytics

Aug. 29, 2022 | Tags: python django open source

Few months ago, on this very website, I implemented a very simple analytics tool to check how many people went into my website. A few days ago, I decided to move this out of my website and into its own separate package.

[Read more]

CSS Animation Dots

Aug. 24, 2022 | Tags: css TIL

I have always been intrigued by CSS animations. The other day on twitter I saw this post and today, I took the time to read it and try out the tutorial and came up with this:

[Read more]