Everything You Can Do with Python's textwrap Module
Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.
https://martinheinz.dev/blog/108
Python has many options for formatting strings and text, including f-strings, format() function, templates and more. There's however one module that few people know about and it's called textwrap. This module is specifically built to help you with line-wrapping, indentation, trimming and more, and in this article we will look at all the things you can use it for.
https://martinheinz.dev/blog/108
martinheinz.dev
Everything You Can Do with Python's textwrap Module
<p>
Python has many options for formatting strings and text, including f-strings, <code class="inline">format()</code> function, templates and more. There'...
Python has many options for formatting strings and text, including f-strings, <code class="inline">format()</code> function, templates and more. There'...
Not just NVIDIA: GPU programming that runs everywhere
If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.
https://pythonspeed.com/articles/gpu-without-cuda/
If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.
https://pythonspeed.com/articles/gpu-without-cuda/
Python⇒Speed
Not just NVIDIA: GPU programming that runs everywhere
If you want to run GPU programs in CI, on Macs, and more, wgu-py is a good option.
Everything You Can Do with Python’s textwrap Module
https://towardsdatascience.com/everything-you-can-do-with-pythons-textwrap-module-0d82c377a4c8
https://towardsdatascience.com/everything-you-can-do-with-pythons-textwrap-module-0d82c377a4c8
Medium
Everything You Can Do with Python’s textwrap Module
Learn about all the things you can do with Python’s textwrap module, including formatting, text wrapping, trimming and more
Codium-ai / AlphaCodium
Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering""
https://github.com/Codium-ai/AlphaCodium
Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering""
https://github.com/Codium-ai/AlphaCodium
GitHub
GitHub - Codium-ai/AlphaCodium: Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering…
Official implementation for the paper: "Code Generation with AlphaCodium: From Prompt Engineering to Flow Engineering"" - Codium-ai/AlphaCodium
Recording and visualising the 20k system calls it takes to "import seaborn"
https://www.reddit.com/r/Python/comments/1asjcnm/recording_and_visualising_the_20k_system_calls_it/
https://www.reddit.com/r/Python/comments/1asjcnm/recording_and_visualising_the_20k_system_calls_it/
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
Engineering Practices for LLM Application Development
LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applicat...
https://martinfowler.com/articles/engineering-practices-llm.html
LLM engineering involves much more than just prompt design or prompt engineering. In this article, we share a set of engineering practices that helped us deliver a prototype LLM application rapidly and reliably in a recent project. We'll share techniques for automated testing and adversarial testing of LLM applications, refactoring, as well as considerations for architecting LLM applicat...
https://martinfowler.com/articles/engineering-practices-llm.html
martinfowler.com
Engineering Practices for LLM Application Development
Experiences of using ChatGPT on a range of technical writing
Adopt-ruff: find uncobfigured rules easily
Adopt ruff faster into your existing repo: find the easiest rules to start with
https://github.com/ScDor/adopt-ruff
Adopt ruff faster into your existing repo: find the easiest rules to start with
https://github.com/ScDor/adopt-ruff
GitHub
GitHub - ScDor/adopt-ruff: Adopt Ruff easily
Adopt Ruff easily. Contribute to ScDor/adopt-ruff development by creating an account on GitHub.
Meta loves Python
Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source
https://engineering.fb.com/2024/02/12/developer-tools/meta-loves-python/
Meta engineers discuss their contributions to Python 3.12, including new features such as custom JIT hooks, Immortal Objects, type system improvements, and faster comprehensions, highlighting their collaboration with the Python community and the company's support for open source
https://engineering.fb.com/2024/02/12/developer-tools/meta-loves-python/
Engineering at Meta
Meta loves Python
By now you’re already aware that Python 3.12 has been released. But did you know that several of its new features were developed by Meta? Meta engineer Pascal Hartig (@passy) is joined on the Meta …
How to avoid a count query in Django if you can
https://www.peterbe.com/plog/how-to-avoid-a-count-query-in-django-if-you-can
https://www.peterbe.com/plog/how-to-avoid-a-count-query-in-django-if-you-can
Peterbe
How to avoid a count query in Django if you can - Peterbe.com
ml-mgie
Apple's new open-source AI model that can edit images based on natural language instructions.
https://github.com/apple/ml-mgie
Apple's new open-source AI model that can edit images based on natural language instructions.
https://github.com/apple/ml-mgie
GitHub
GitHub - apple/ml-mgie
Contribute to apple/ml-mgie development by creating an account on GitHub.
modguard
A Python tool to enforce a modular, decoupled package architecture.
https://github.com/Never-Over/modguard
A Python tool to enforce a modular, decoupled package architecture.
https://github.com/Never-Over/modguard
GitHub
GitHub - gauge-sh/tach: A Python tool to visualize + enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable…
A Python tool to visualize + enforce dependencies, using modular architecture 🌎 Open source 🐍 Installable via pip 🔧 Able to be adopted incrementally - ⚡ Implemented with no runtime impact ♾️ Intero...
Counting CPU Instructions in Python
Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn?
https://blog.mattstuchlik.com/2024/02/08/counting-cpu-instructions-in-python.html
Did you know it takes about 17,000 CPU instructions to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn?
https://blog.mattstuchlik.com/2024/02/08/counting-cpu-instructions-in-python.html
Matt Stuchlik
Counting CPU Instructions in Python
Did you know it takes about 17,000 CPU instructions1 to print("Hello") in Python? And that it takes ~2 billion of them to import seaborn? Since writting this I have upgraded Cirron to substract its own overhead; it now measures print at ~9,000 instructions. ↩
Toolong
A terminal application to view, tail, merge, and search log files (plus JSONL).
https://github.com/textualize/toolong
A terminal application to view, tail, merge, and search log files (plus JSONL).
https://github.com/textualize/toolong
GitHub
GitHub - Textualize/toolong: A terminal application to view, tail, merge, and search log files (plus JSONL).
A terminal application to view, tail, merge, and search log files (plus JSONL). - Textualize/toolong
Why AI has a Python Problem
Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.
https://www.youtube.com/watch?v=cGgTvMmtzNU
Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python poses for AI's evolution, backed by real-world examples and technical insights.
https://www.youtube.com/watch?v=cGgTvMmtzNU
YouTube
Why AI has a Python Problem
Artificial Intelligence (AI) has propelled Python to unprecedented popularity, making it the go-to language for developers and researchers worldwide. Yet, beneath the surface, a significant challenge looms. Let's get into the specific difficulties Python…
HypoFuzz
Open source smart fuzzing for Python's best testing workflow.
https://github.com/Zac-HD/hypofuzz
Open source smart fuzzing for Python's best testing workflow.
https://github.com/Zac-HD/hypofuzz
GitHub
GitHub - Zac-HD/hypofuzz: Adaptive fuzzing of Hypothesis tests
Adaptive fuzzing of Hypothesis tests. Contribute to Zac-HD/hypofuzz development by creating an account on GitHub.