Show HN: Python can make 3M+ WebSocket keys per second

{{ message }} This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. You can’t perform that action at this time.
Show HN: Python package for interfacing with ChatGPT with minimized complexity

{{ message }} This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. You can’t perform that action at this time.
Our Plan for Python 3.13

Author: Mark Shannon, Michael Droettboom Overview The plan for 3.13 is similar to early plans for 3.12. The big difference is that we have now finished the foundational work that we need: Low impact monitoring (PEP 669) is implemented. The bytecode compiler is a much better state. The interpreter generator is working. Experiments on the […]
Python GUIs

Take your first steps creating Python GUI applications with these simple step-by-step guides to Python & Qt. PyQt6 not installed? See our installation guides for Windows, macOS and Linux Once you’re set up you can get started by Creating your first GUI application with Python.
Valid Python syntax – by Nobody has time for Python

f”{0xBE_AF:.2f}” is what happens if you use “_” in hex, and interpolate it with a 2 decimal precision. [*(_ for [[][:], *_] in [((1, 2), “woops”)])] combines a generator, unpacking in a list, unpacking in a loop, and unpacking in a slice, for this delicious cryptic effect. (lambda *数字: __import__(‘math’).prod(数字))(*([2]*6)) == 2**6 leverages the splat operator * for variadic parameters […]
Ruff: A Fast Python Linter

Did you know…? LWN.net is a subscriber-supported publication; we rely on subscribers to keep the entire operation going. Please help out by buying a subscription and keeping LWN on the net. May 2, 2023 This article was contributed by Koen Vervloesem Linters are tools that analyze a program’s source code to detect various problems such […]
Make your Python functions return something meaningful, typed, and safe

Make your functions return something meaningful, typed, and safe! Brings functional programming to Python land Provides a bunch of primitives to write declarative business logic Enforces better architecture Fully typed with annotations and checked with mypy, PEP561 compatible Adds emulated Higher Kinded Types support Provides type-safe interfaces to create your own data-types with enforced laws […]
Show HN: The pure Python SaaS starter kit

FAQ Frequently Asked Questions What is PySaaS?PySaaS is a pure Python SaaS boilerplate that handles common functionality like user authentication, billing management, and a landing page and blog. With PySaaS, you save months of development time and can work solely in Python. We build on the Pynecone web framework to compile your frontend into a […]
Aura – Python source code auditing and static analysis on a large scale

{{ message }} This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. You can’t perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to […]
How Python virtual environments work

After needing to do a deep dive on the venv module (which I will explain later in this blog post as to why), I thought I would explain how virtual environments work to help demystify them. Why do virtual environments exist? Back in my the day, there was no concept of environments in Python: all […]