Found 215 bookmarks
Newest
Subinterpreters and Asyncio
Subinterpreters and Asyncio
PEP-734 subinterpreters in the stdlib has officially been included in the Python 3.14 as a very late addition. subinterpreters now has a new home...
·blog.changs.co.uk·
Subinterpreters and Asyncio
Python: capture stdout and stderr in unittest - Adam Johnson
Python: capture stdout and stderr in unittest - Adam Johnson
When testing code that outputs to the terminal through either standard out (stdout) or standard error (stderr), you might want to capture that output and make assertions on it. To do so, use contextlib.redirect_stdout() and contextlib.redirect_stderr() to redirect the respective output streams to in-memory buffers that you can then inspect and assert on.
·adamj.eu·
Python: capture stdout and stderr in unittest - Adam Johnson
14 Advanced Python Features
14 Advanced Python Features
A collection of advanced Python features that I've found interesting, underrated, or unique - as someone who's seen a lot of Python code.
·blog.edward-li.com·
14 Advanced Python Features
Exploring flexicache
Exploring flexicache
An exploration of using flexicache for caching in Python.
·daniel.feldroy.com·
Exploring flexicache
Mastering Fuzzy Logic in Python
Mastering Fuzzy Logic in Python
Mastering fuzzy logic in Python involves understanding the principles of fuzzy logic and how to implement them using Python libraries…
·oleg-dubetcky.medium.com·
Mastering Fuzzy Logic in Python
FastAPI JWT Tutorial | How to add User Authentication
FastAPI JWT Tutorial | How to add User Authentication
In this tutorial, we will walk you through the process of integrating JWT (JSON Web Tokens) with FastAPI to secure user authentication. If you want to add JWT authentication to your FastAPI application, this video is for you! If you are new to FastAPI or JWT, don't worry. We will cover the basics and gradually move towards more advanced topics. You'll get to understand not only how to implement JWT but also why it is important. FastAPI JWT authentication is what you want to use for your JWT Python project 🎥 React + FastAPI: https://youtu.be/0zb2kohYZIM 🎥 AWS Lambda + FastAPI: https://youtu.be/7-CvGFJNE_o 🎥 MongoDB + FastAPI: https://youtu.be/QkGqjPFIGCA 🎥 MySQL + FastAPI: https://youtu.be/zzOwU41UjTM 🎥 PostgreSQL + FastAPI: https://youtu.be/398DuQbQJq0 =========================== 🎓 Courses can be found: FastAPI Beginner & Advanced: https://www.udemy.com/course/fastapi-the-complete-course/?referralCode=4F4A35C1A243D23A1A59 Learn Chatbot Development: https://www.udemy.com/course/the-complete-chatbot-bootcamp/?referralCode=2654798EE9F9998023B9 =========================== 🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/codingwithroby 👨‍💻 Hi, I am Eric!👨‍💻 Hey! I’m a seasoned developer and cloud enthusiast. I love sharing my knowledge and helping others to discover the exciting world of programming and cloud technologies. For more tutorials, tips, and tech magic, don’t forget to hit that subscribe button and ring the bell for notifications! 🙏 Support The Channel 🙏 If you found this tutorial helpful, please give it a thumbs up 👍, comment, and share it with your network 🌍 #fastapi #python #programming
·youtube.com·
FastAPI JWT Tutorial | How to add User Authentication
Please don't hijack my Python root logger
Please don't hijack my Python root logger
With the recent explosion of LLM tools, I often like to kill time fiddling with different LLM client libraries and SDKs in one-off scripts. Lately, I’ve noticed that some newer tools frequently mess up the logger settings, meddling with my application logs. While it’s less common in more seasoned libraries, I guess it’s worth rehashing why hijacking the root logger isn’t a good idea when writing libraries or other forms of reusable code.
·rednafi.com·
Please don't hijack my Python root logger
Asyncio gather() In The Background - Super Fast Python
Asyncio gather() In The Background - Super Fast Python
We can run asyncio.gather() in the background by not awaiting the call to asyncio.gather(). The asyncio.gather() returns an asyncio.Future that does not have to be awaited. It is scheduled for execution in the asyncio event loop, along with all coroutines provided to the gather. Therefore, the caller is free to proceed with other activities and […]
·superfastpython.com·
Asyncio gather() In The Background - Super Fast Python
GitHub - fastapi/full-stack-fastapi-template: Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
GitHub - fastapi/full-stack-fastapi-template: Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more. - fastapi/full-stack-fastapi-template
·github.com·
GitHub - fastapi/full-stack-fastapi-template: Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
Asyncio Event Loop in Separate Thread - Super Fast Python
Asyncio Event Loop in Separate Thread - Super Fast Python
We can run an asyncio event loop in a new thread by starting a new thread and configuring it to start or run an event loop. There are many approaches we can use to run an event loop in a new thread. The simplest is to configure a new thread to start an event loop […]
·superfastpython.com·
Asyncio Event Loop in Separate Thread - Super Fast Python
Asyncio gather() Handle Exceptions - Super Fast Python
Asyncio gather() Handle Exceptions - Super Fast Python
We can automatically handle exceptions in coroutines executed via asyncio.gather() by setting the “return_exceptions” argument to True. By default, if a coroutine is executed by asyncio.gather() fails with an unhandled exception, it will be propagated to the caller. Setting the “return_exceptions” argument to True will trap any unhandled exceptions and provide them as return values, […]
·superfastpython.com·
Asyncio gather() Handle Exceptions - Super Fast Python