chrisphan.com

Mastodon posts for 2025-W44

An analog clock reading 1:00 2025-11-06 / 2025-W45-4T13:00:00-06:00 / 0x690cf030

Categories: Mastodon

I agree with @emilydoesastro : uv is really awesome for #python environment and package management. I have been using it a lot recently.

emily.space/posts/251023-uv

Chris Phan (@chrisphan@hackyderm.io) 2025-10-31 23:00

@emilydoesastro One neat thing that uv allows is for you to make standalone scripts that specify the external packages needed.

docs.astral.sh/uv/guides/scripts

Screen shot of the start of a Python script: file: build.py #!/usr/bin/env -S uv run --script # # /// script # requires-python = ">=3.11" # dependencies = ["requests", "psycopg[binary]"] # /// # # SPDX-License-Identifier: MIT """Build the U.S. Population Chains database.""" from __future__ import annotations __author__ = "Christopher L. Phan, Ph.D." __copyright__ = "Copyright 2025, Christopher L. Phan, Ph.D." __credits__ = {__author__} __date__ = "2025-10-29" __license__ = """ Copyright 2025 Christopher L. Phan, Ph.D. Screenshot cuts of there.

Chris Phan (@chrisphan@hackyderm.io) 2025-10-31 23:06