The Best Way to Share Code Between Python Apps

ArjanCodes October 24, 2025
Video Thumbnail

About

No channel description available.

Video Description

✅ Learn how to build robust and scalable software architecture: https://arjan.codes/checklist. In this video, I show you how to use uv workspaces to manage multiple Python apps—like a CLI tool and a FastAPI app—with shared dependencies and shared logic. You’ll learn how to structure a real-world project that fetches and summarizes headlines using OpenAI, while avoiding duplicated lockfiles, conflicting environments, and messy imports. 🔥 GitHub Repository: https://git.arjan.codes/2025/workspaces. 🎓 ArjanCodes Courses: https://www.arjancodes.com/courses. 💬 Join my Discord server: https://discord.arjan.codes 🔖 Chapters: 0:00 Intro 0:48 CLI and Fastapi App Without Any Workspace 3:27 Introduce the Global pyproject.toml 7:32 Extract Shared Logic to a Local Package 13:04 Adding Another Package 15:41 Extensibility 16:20 When Should You Use Workspaces? 17:58 Final Thoughts #arjancodes #softwaredesign #python