Open main menu

PBN

Close main menu
  • About
  • Blog
  • Contact

Python By Night

Login

Twenty Twenty-Two

Year in Review
author Mario Munoz
Dec
15
2022
est. read time 5 min

So I have this blog here which doesn't get quite as much love as it should. But here we are, end of the year, and a perfect opportunity to look back and ask: What the hell just happened?

  • Share on twitter
  • General
  • Ruminations

My First DjangoCon

Reflections
author Mario Munoz
Oct
27
2022
est. read time 7 min

Last week, I had the opportunity to attend my very first DjangoCon in San Diego (October 16 - 21, 2022). It was a lovely event, highlighting the best Python feature of all: Community!

  • Share on twitter
  • DjangoCon

Using PDM for Your Next Python Project

Packaging, Dependencies, PEPs, Oh My!
author Mario Munoz
Aug
10
2022
est. read time 8 min

I decided to dive into a topic perhaps all too complex for me at the moment, but I couldn't help myself. With my ever increasing number of side-projects, I've been testing some deployment and build strategies. This has led me down the dark path of Python dependency management.

  • Share on twitter
  • Dependency
  • PDM

Building a Decorator for a FastAPI Route

Simplify and Beautify Your App Routes
author Mario Munoz
Sep
7
2022
est. read time 8 min

I've been working on yet another side project, once again built with FastAPI. I'm taking the opportunity to learn a few new skills and work with some new tools. Along the way, I found a way to use a decorator on my FastAPI routes when sending an HTML response, so I thought to write about it.

  • Share on twitter
  • FastAPI
  • Jinja

Starting A Python Project

Organization and Structure
author Mario Munoz
Jul
11
2022
est. read time 7 min

When starting a new Python project, it can be tempting to open up a code editor and start writing some code. This is all well and good if you're just testing something out. But ideally, if you want your code to solve some specific need, then you'll want to structure your project accordingly.

  • Share on twitter
  • General

My First PyCon

Reflections: Extended
author Mario Munoz
May
18
2022
est. read time 8 min

I'm just now getting the chance to reflect on my experience at my very first PyCon. It was held at the Salt Palace Convention Center in Salt Lake City, UT, spanning the dates of April 27 - May 3, 2022. My family and I drove up from Southern California, and after the conference, took a couple of extra weeks on the road. I'm finally home and (somewhat settled). So, time to reflect...

  • Share on twitter
  • PyCon

A Large Wooden Horse

An Army of Doubt
author Mario Munoz
Mar
7
2022
est. read time 4 min

So I intended to code some Python tonight. But, unfortunately for me, I also happened to finish listening to an exhilarating, fantastic, and somewhat infuriating podcast series while doing the dishes—the podcast at fault is The Trojan Horse Affair, from Serial Productions and The New York Times.

  • Share on twitter
  • Ruminations

Going to PyCon for the First Time

And I'll Be Teaching a Tutorial!
author Mario Munoz
Feb
27
2022
est. read time 5 min

This time last year, I didn't really know there was such a thing as PyCon. My mind at the time was pondering the plausibility of making a little blog about what I was learning, but somewhat unsure if I could even do it.

  • Share on twitter
  • Ruminations
  • PyCon

Adding an RSS Feed With Python

Yes, It Still Lives On In Our Hearts
author Mario Munoz
Jan
31
2022
est. read time 6 min

The decline of RSS usage in the late aughts and its eventual near-demise has left many a tech-geek deflated, but not entirely hopeless. The reality is that RSS still exists out there in the wild, and some folks still depend on it for accessible, personalized, and syndicated content. So I decided to add it to my site!

  • Share on twitter
  • FastAPI
  • Jinja

Sharpen Your Code

Using the Right Tool (And a Note on Logging)
author Mario Munoz
Jan
29
2022
est. read time 7 min

Coding can feel quite daunting—specially with the wealth of information out there to consume. Sometimes, as I stare at the code on my screen, I feel particularly stuck or unmotivated.

  • Share on twitter
  • FastAPI
  • Rich
  • Logging

Writing About Writing

Coding Doesn't Have To Involve Coding
author Mario Munoz
Dec
22
2021
est. read time 3 min

Ever since launching this blog, I've been spending a lot of time writing and not as much time coding. I've felt a little bad about that, because I genuinely enjoy working with code when focusing on an interesting feature. On the other hand, I have also been hesitant about posting on this site anything that doesn't feel connected to actual Python code.

  • Share on twitter
  • General
  • Ruminations

Using Beanie With FastAPI and MongoDB

Let's Do A Weighted Text Search with... PyMongo?
author Mario Munoz
Dec
13
2021
est. read time 7 min
I decided to use MongoDB as the backend database solution for my blog, and as a result, there weren't quite as many resources to refer to when trying to find a specific solution. Ergo, how do I search weighted text fields in MongoDB with Python?
  • Share on twitter
  • MongoDB
  • Beanie

Finding Python Models

Loading Document Objects to Beanie Dynamically
author Mario Munoz
Dec
6
2021
est. read time 10 min

I have a feeling this post is going to be quite dense. The idea to write it came from an episode of Talk Python where Michael Kennedy interviewed Roman Right, the creator of Beanie, my Python object-document mapper (ODM) of choice for MongoDB.

  • Share on twitter
  • Beanie

Save Your Environment

Why Is It So Dang Hard to Get Started With Python?
author Mario Munoz
Dec
6
2021
est. read time 5 min
A common critique of getting started with Python is how hard it can be to get up and running. It would be great if you could download a thing, code some stuff, hit a button, and voila!
  • Share on twitter
  • Environment

From Flask to Fast

Why I Switched Frameworks Mid-Journey
author Mario Munoz
Dec
5
2021
est. read time 5 min
So I switched frameworks from Flask to FastAPI. I'm not totally sure why. It just kind of happened. So maybe I'm kind of jumping the gun here. Talking about switching Python frameworks mid-development hardly seems like an introductory topic for a tiny little blog like this one.
  • Share on twitter
  • FastAPI
  • Flask

Hello... World?

Ugh! Not Another Programming Tutorial Blog
author Mario Munoz
Dec
5
2021
est. read time 4 min
Welcome to my blog. If you're reading this... Yay, I did it! Chances are I was able to overcome the challenge of having an actual day job that has nothing to do with full-stack Python web development and deploying a web app built with Python, MongoDB, HTML, and CSS. Going forward, I plan to write about things I've learned (and things I'm learning).
  • Share on twitter
  • General

PBN

Python by Night is what happens when there's not enough time during the day. It is a Pythonic journey for a non-developer with lessons learned along the way.

search

topics

  • General
  • FastAPI
  • MongoDB
  • Flask
  • Environment
  • Beanie
  • Ruminations
  • Rich
  • Logging
  • Jinja
  • PyCon
  • Dependency
  • PDM
  • DjangoCon

support

Buy Me a Coffee

keep in touch

Follow
Recent Posts
  • Twenty Twenty-Two
  • My First DjangoCon
  • Using PDM for Your Next Python Project
  • Building a Decorator for a FastAPI Route

PBN

© 2021 - Python By Night