Python 🐍: HowTos: Serve an Angular SPA Application via Subprocess Here’s an example of running/serving an Angular application via subprocess. It includes an example of using a class and static method as well. The command used creates a new external process window. This action can be done via batch file, PowerShell script, Go executable and other ways as well. #python #pythonhowtos #spa #angular #subprocess #powershell #pythonclasses
Running Angular SPA via Subprocess with Python
More Relevant Posts
-
🐍 Python Developer Nuggets — Day 11 Context Managers — Safe Resource Handling How does with open(...) auto-close files? Manual handling is error-prone (missed close(), leaks) with ensures automatic cleanup, even on exceptions Powered by __enter__ & __exit__ under the hood Why it matters ✔ Cleaner code ✔ Safer error handling ✔ No resource leaks Think of it as Wrap your logic with setup + guaranteed cleanup. Small Python tricks, Big Developer Impact! #Python #Django #CleanCode #BackendDevelopment #DeveloperTips
To view or add a comment, sign in
-
-
Learn Python web development with our comprehensive guide, covering setting up a development environment, choosing a framework, and building a simple web application with Python https://lnkd.in/gTDFTgpV #PythonWebDevelopment Read the full article https://lnkd.in/gTDFTgpV
To view or add a comment, sign in
-
-
🐍 Python Developer Nuggets — Day 17 Retries in APIs Why do APIs fail even when everything looks correct? Because failures happen… and your system doesn’t retry smartly. The problem: Request fails once and stops User sees an error Even though it might have worked on retry The solution: Retry the request Add delay between retries Limit number of retries request = call_api() # retried on failure What changes: First attempt → may fail Retry → succeeds Better user experience Fewer visible failures Don’t retry everything Retry only when: Retry when: Network issues Timeout Temporary failures Don’t retry when: Wrong input Validation errors Golden rule: Retry only when failure is temporary Retry turns small failures into success #Python #Django #BackendEngineering #SystemDesign #CleanCode #Performance #DeveloperTips
To view or add a comment, sign in
-
-
🐍 Python Developer Nuggets — Day 16 Idempotency in APIs Why do duplicate orders or notifications happen? Because retries happen… and your API isn’t idempotent. • The problem - Same request processed multiple times - Duplicate orders / double payments • The solution - Use Idempotency-Key - Return same response for repeated requests orders = create_order(request) # handled with idempotency key • What changes - First request → processed - Retry → same response returned - No duplicates • Golden rule - Same request + same key = same result Small Python tricks, Big Developer Impact! 🚀 #Python #Django #BackendEngineering #SystemDesign #CleanCode #Performance #DeveloperTips
To view or add a comment, sign in
-
-
Docker tip that every Python developer should know: 🐳 Always use multi-stage builds for production Python images. Stage 1 (builder): Install all deps, compile extensions Stage 2 (runtime): Copy only what you need Result: My AI agent image went from 1.2GB to 180MB. Smaller images mean faster deploys and smaller attack surface. Bonus: combine with `uv` instead of pip for 10x faster dependency resolution. What Docker optimization has saved you the most time? #Docker #Python #DevOps #CloudNative #BackendDev
To view or add a comment, sign in
-
🔗 Built a Simple URL Shortener using Django similar to bitly. it is a simple logic, but powerful at scale. 🎥 Sharing a quick 50-sec demo of how it works 💻 Code (GitHub): https://lnkd.in/g6VmhPa6 This is just the starting point — planning to extend it further. Architecture in comments. #Django #BackendDevelopment #SystemDesign #Python #LearningByBuilding
To view or add a comment, sign in
-
I learned about JWT Authentication in Django 🔐 Session Token vs JWT Token Session Token – Server stores the session data and checks it for every request. JWT Token – The token contains the data and is verified by the server, making it more secure and scalable for APIs. The server gives an access token for authentication and a refresh token to get a new access token when it expires. #Python #Django #WebDevelopment #BackendDeveloper #Learning
To view or add a comment, sign in
-
-
If you’re still manually editing your settings in your Django project for every deployment, you’re doing it the hard way. Inheritance isn't just for models and views—it belongs in your configuration too. 🏗️ Check out my latest guide on splitting Django settings into Base, Dev, and Prod environments to save time and prevent "forgotten line" disasters. Check the guide below! 📄👇 #Django #Python #SoftwareEngineering #BackendDevelopment #CleanCode
To view or add a comment, sign in
-
💡 𝗧𝗶𝗽 𝗼𝗳 𝘁𝗵𝗲 𝗗𝗮𝘆 — 𝗗𝗷𝗮𝗻𝗴𝗼 𝗗𝗶𝗱 𝘆𝗼𝘂 𝗸𝗻𝗼𝘄? Django’s "F()" 𝗲𝘅𝗽𝗿𝗲𝘀𝘀𝗶𝗼𝗻𝘀 let you perform 𝗱𝗮𝘁𝗮𝗯𝗮𝘀𝗲-𝗹𝗲𝘃𝗲𝗹 𝗼𝗽𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀 𝘄𝗶𝘁𝗵𝗼𝘂𝘁 𝗳𝗲𝘁𝗰𝗵𝗶𝗻𝗴 𝗱𝗮𝘁𝗮 𝗶𝗻𝘁𝗼 𝗣𝘆𝘁𝗵𝗼𝗻. Instead of this: - Fetch object - Modify value - Save it back You can update directly in the database. 🔧 𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝘂𝘀𝗲 𝗰𝗮𝘀𝗲𝘀: - Incrementing counters ("views", "likes") - Updating balances safely - Avoiding race conditions in concurrent updates Less round trips = faster and safer operations. #Django #Python #BackendDevelopment #WebDevelopment #PerformanceOptimization #SoftwareEngineering #CodingTips #DatabaseOptimization #FullstackDeveloper
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development