Managing Environment Variables and App Secrets in Python
Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.
When you start building applications that connect to APIs, databases, or external services, you’ll need a way to store sensitive values like API keys and passwords. Hardcoding them directly in your source code is one of the most common and dangerous mistakes new developers make — it means those secrets end up in your Git history, visible to anyone who can read your repository. Environment variables solve this by moving sensitive configuration out of your code entirely, into a separate layer that stays on your machine and off GitHub.
The solution
Environment variables let you keep secrets separate from your code. This section covers two approaches that work together:
Environment variables
Understand what they are and how Python reads them
Using .env files
The easy, practical way to manage secrets locally
Most Python projects use .env files — they’re simple, universally understood, and work seamlessly with Python’s python-dotenv library. That’s the approach you’ll use throughout this course.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"Python for AI \u0026 FastAPI","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"favicon":"https://mintcdn.com/fastapi2day/o2Jso_KhqkR4_ilm/favicon.svg?fit=max\u0026auto=format\u0026n=o2Jso_KhqkR4_ilm\u0026q=85\u0026s=d4ea6ac51fe137dae217309616455228","navbar":{"primary":{"type":"button","label":"Start Learning","href":"https://sgrinfo.tech"}},"footer":{},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"fastapi2day","hasAudioNarration":false,"actualSubdomain":"fastapi2day","customDomains":["fastapi2day.codewithsiva.dev"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-sgrinfotech-31e4544d","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6aea217d8509c0a36927aa68:success","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Data \u0026 APIs","count":31},{"language":"default","tag":"Python","count":24},{"language":"default","tag":"Getting Started","count":21},{"language":"default","tag":"Projects \u0026 Tools","count":19},{"language":"default","tag":"FastAPI","count":15},{"language":"default","tag":"Advanced","count":12},{"language":"default","tag":"Basics","count":7},{"language":"default","tag":"Environments \u0026 Packages","count":7},{"language":"default","tag":"VS Code","count":6},{"language":"default","tag":"Python Setup","count":6}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"tools/environment","slug":"/tools/environment","pageMetadata":{"title":"Managing Environment Variables and App Secrets in Python","sidebarTitle":"Overview","description":"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.","href":"/tools/environment/index"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Card,CardGroup,Heading,Tip}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`When you start building applications that connect to APIs, databases, or external services, you’ll need a way to store sensitive values like API keys and passwords. Hardcoding them directly in your source code is one of the most common and dangerous mistakes new developers make — it means those secrets end up in your Git history, visible to anyone who can read your repository. Environment variables solve this by moving sensitive configuration out of your code entirely, into a separate layer that stays on your machine and off GitHub.`}),`\n`,_jsx(Heading,{level:`2`,id:`the-solution`,children:`The solution`}),`\n`,_jsx(_components.p,{children:`Environment variables let you keep secrets separate from your code. This section covers two approaches that work together:`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Environment variables`,icon:`gear`,href:`/tools/environment/variables`,children:_jsx(_components.p,{children:`Understand what they are and how Python reads them`})}),_jsx(Card,{title:`Using .env files`,icon:`file-shield`,href:`/tools/environment/dotenv`,children:_jsx(_components.p,{children:`The easy, practical way to manage secrets locally`})})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Most Python projects use `,_jsx(_components.code,{children:`.env`}),` files — they’re simple, universally understood, and work seamlessly with Python’s `,_jsx(_components.code,{children:`python-dotenv`}),` library. That’s the approach you’ll use throughout this course.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Managing Environment Variables and App Secrets in Python","sidebarTitle":"Overview","description":"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.","href":"/tools/environment/index"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"The solution","slug":"the-solution","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"fastapi2day","siteName":"Python for AI \u0026 FastAPI","title":"Managing Environment Variables and App Secrets in Python - Python for AI \u0026 FastAPI","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-03T17:36:35.688Z","originalFileLocation":"tools/environment/index.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Python for AI \u0026amp; FastAPI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/svg+xml\" sizes=\"180x180\" href=\"https://mintcdn.com/fastapi2day/o2Jso_KhqkR4_ilm/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=o2Jso_KhqkR4_ilm\u0026amp;q=85\u0026amp;s=d4ea6ac51fe137dae217309616455228\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"32x32\" href=\"https://mintcdn.com/fastapi2day/o2Jso_KhqkR4_ilm/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=o2Jso_KhqkR4_ilm\u0026amp;q=85\u0026amp;s=d4ea6ac51fe137dae217309616455228\">\u003clink data-mint-head rel=\"icon\" type=\"image/svg+xml\" sizes=\"16x16\" href=\"https://mintcdn.com/fastapi2day/o2Jso_KhqkR4_ilm/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=o2Jso_KhqkR4_ilm\u0026amp;q=85\u0026amp;s=d4ea6ac51fe137dae217309616455228\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/svg+xml\" href=\"https://mintcdn.com/fastapi2day/o2Jso_KhqkR4_ilm/favicon.svg?fit=max\u0026amp;auto=format\u0026amp;n=o2Jso_KhqkR4_ilm\u0026amp;q=85\u0026amp;s=d4ea6ac51fe137dae217309616455228\">\u003cmeta data-mint-head property=\"og:title\" content=\"Managing Environment Variables and App Secrets in Python - Python for AI \u0026amp; FastAPI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Python for AI \u0026amp; FastAPI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://fastapi2day.codewithsiva.dev/tools/environment\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://fastapi2day.mintlify.site/_mintlify/api/og/v2?division=Environment+%26+Secrets\u0026amp;title=Managing+Environment+Variables+and+App+Secrets+in+Python\u0026amp;description=Learn+how+to+keep+API+keys%2C+passwords%2C+and+configuration+values+out+of+your+source+code+using+environment+variables+and+.env+files+safely.\u0026amp;theme=be394bdd824f66fd2549706a\u0026amp;signature=6a8bc6e4c0e2380d5d761d74b10d28fbe54c03a7c5ba4b1a0ce15c39d78a5c36\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Managing Environment Variables and App Secrets in Python - Python for AI \u0026amp; FastAPI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://fastapi2day.mintlify.site/_mintlify/api/og/v2?division=Environment+%26+Secrets\u0026amp;title=Managing+Environment+Variables+and+App+Secrets+in+Python\u0026amp;description=Learn+how+to+keep+API+keys%2C+passwords%2C+and+configuration+values+out+of+your+source+code+using+environment+variables+and+.env+files+safely.\u0026amp;theme=be394bdd824f66fd2549706a\u0026amp;signature=6a8bc6e4c0e2380d5d761d74b10d28fbe54c03a7c5ba4b1a0ce15c39d78a5c36\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/fastapi2day/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Python for AI \u0026amp; FastAPI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://fastapi2day.codewithsiva.dev/tools/environment\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tools/environment.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://fastapi2day.codewithsiva.dev/#organization\",\"name\":\"Python for AI \u0026 FastAPI\",\"url\":\"https://fastapi2day.codewithsiva.dev\"},{\"@type\":\"WebSite\",\"@id\":\"https://fastapi2day.codewithsiva.dev#website\",\"name\":\"Python for AI \u0026 FastAPI\",\"url\":\"https://fastapi2day.codewithsiva.dev\",\"publisher\":{\"@id\":\"https://fastapi2day.codewithsiva.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://fastapi2day.codewithsiva.dev/tools/environment#webpage\",\"url\":\"https://fastapi2day.codewithsiva.dev/tools/environment\",\"name\":\"Managing Environment Variables and App Secrets in Python\",\"description\":\"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\",\"dateModified\":\"2026-08-03T17:36:35.688Z\",\"isPartOf\":{\"@id\":\"https://fastapi2day.codewithsiva.dev#website\"},\"breadcrumb\":{\"@id\":\"https://fastapi2day.codewithsiva.dev/tools/environment#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://fastapi2day.codewithsiva.dev/tools/environment#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python for AI \u0026 FastAPI\",\"item\":\"https://fastapi2day.codewithsiva.dev\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Managing Environment Variables and App Secrets in Python\",\"item\":\"https://fastapi2day.codewithsiva.dev/tools/environment\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://fastapi2day.codewithsiva.dev/tools/environment#article\",\"headline\":\"Managing Environment Variables and App Secrets in Python\",\"name\":\"Managing Environment Variables and App Secrets in Python\",\"description\":\"Learn how to keep API keys, passwords, and configuration values out of your source code using environment variables and .env files safely.\",\"url\":\"https://fastapi2day.codewithsiva.dev/tools/environment\",\"mainEntityOfPage\":{\"@id\":\"https://fastapi2day.codewithsiva.dev/tools/environment#webpage\"},\"dateModified\":\"2026-08-03T17:36:35.688Z\",\"publisher\":{\"@id\":\"https://fastapi2day.codewithsiva.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://fastapi2day.codewithsiva.dev#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Python for AI \u0026 FastAPI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Python for AI \u0026 FastAPI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/tools/environment.md","siteName":"Python for AI \u0026 FastAPI","nav":{"global":null,"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":""}]},{"tab":"Getting Started","pages":[{"title":"Getting Started","href":"/getting-started"}]},{"tab":"Python","pages":[{"title":"Python","href":"/basic-python/python-basics"}]},{"tab":"Projects \u0026 Tools","groups":[{"group":"Developer Tools","pages":[{"title":"Essential Developer Tools for Python and AI Projects","sidebarTitle":"Overview","href":"/tools"},{"title":"Git \u0026 GitHub: Version Control for Python Developers","sidebarTitle":"Git Overview","href":"/tools/git/index"},{"title":"Understanding Version Control with Git: Core Concepts","sidebarTitle":"Version Control","href":"/tools/git/version-control"},{"title":"Setting Up Your GitHub Account and Local Git Config","sidebarTitle":"GitHub Setup","href":"/tools/git/github-setup"},{"title":"How to Clone and Create Your Own GitHub Repositories","sidebarTitle":"Clone \u0026 Create","href":"/tools/git/clone-create"},{"title":"Using Git Visually in VS Code's Source Control Panel","sidebarTitle":"Git in VS Code","description":"Stage, commit, push, and pull your code using VS Code's built-in Source Control panel — no terminal commands required for everyday Git tasks.","href":"/tools/git/vscode-git"}]},{"group":"Environment \u0026 Secrets","pages":[{"title":"Managing Environment Variables and App Secrets in Python","sidebarTitle":"Overview","href":"/tools/environment/index"},{"title":"Understanding Environment Variables in Python Projects","sidebarTitle":"Env Variables","description":"Learn what environment variables are, why they matter for keeping secrets safe, and how to read and set them from Python using the os module.","href":"/tools/environment/variables"},{"title":"Managing Secrets with .env Files in Python Projects","sidebarTitle":".env Files","href":"/tools/environment/dotenv"}]},{"group":"Project Structure","pages":[{"title":"Practical Python: Building Real, Organized Programs","sidebarTitle":"Overview","href":"/practical-python/index"},{"title":"Structuring Your First Multi-File Python Project","sidebarTitle":"Project Structure","href":"/practical-python/project-structure"},{"title":"How Python Finds Files and Modules: Paths Explained","sidebarTitle":"Python Paths","href":"/practical-python/python-paths"},{"title":"Organizing Python Code into Reusable Functions","sidebarTitle":"Organizing Code","href":"/practical-python/organizing-code"},{"title":"Professional Python Project Handling Guidelines","sidebarTitle":"Project Handling","href":"/practical-python/project-handling"}]},{"group":"Weather Project","pages":[{"title":"Modern Python Development with uv","sidebarTitle":"Overview","href":"/weather-project/index"},{"title":"Why uv Is the Future of Python Packaging","sidebarTitle":"uv Intro","href":"/weather-project/uv-intro"},{"title":"Creating and Managing Python Projects with uv","sidebarTitle":"Virtual Env","href":"/weather-project/virtual-env"},{"title":"Complete Python Project Setup: A Step-by-Step Guide","sidebarTitle":"Complete Setup","href":"/weather-project/complete-setup"},{"title":"Weather Data Analysis Project with APIs and Python","sidebarTitle":"Data Analysis","href":"/weather-project/weather-data-analysis-project"}]}]},{"tab":"Data \u0026 APIs","pages":[{"title":"Data \u0026 APIs","href":"/sql/intro"}]}]},"basePath":"","title":"Managing Environment Variables and App Secrets in Python - Python for AI \u0026 FastAPI","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}