---
title: "💭 TIL: Loading .env files with uv run"
description: "!https://daniel.feldroy.com/posts/til-2025-09-env-files-with-uv-run"
date: 2025-09-29
published: true
tags:
  - python
  - thought
template: link
---


<div class="embed-card embed-card-external">
  <a href="https://daniel.feldroy.com/posts/til-2025-09-env-files-with-uv-run" class="embed-card-link" target="_blank" rel="noopener noreferrer">
    <div class="embed-card-image">
      <img src="https://f004.backblazeb2.com/file/daniel-feldroy-com/public/logos/til-1.png" alt="TIL: Loading .env files with uv run — Replacing python-dotenv with uv" loading="lazy">
    </div>
    <div class="embed-card-content">
      <div class="embed-card-title">TIL: Loading .env files with uv run</div>
      <div class="embed-card-description">Replacing python-dotenv with uv</div>
      <div class="embed-card-meta">https://daniel.feldroy.com &middot; daniel.feldroy.com</div>
    </div>
  </a>
</div>


I smell a dependency to `python-dotenv` dying in my workflow.  I originally read the title of the post and thought, "I know how to manage .env and almost skipped it".  I'm leaning more and more on `uv run` these days, so this should <a href="/just/" class="wikilink" data-title="just" data-description="I just never quite understood why the word can send people over the top. I get it when you don&#39;t know someone, you don&#39;t have history with them, and they..." data-date="2025-06-23">just</a> go in my [[ just file ]] to make it easy to run.

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
