---
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.
