The curious case of Pydantic and the 1970s timestamps
https://dev.arie.bovenberg.net/blog/pydantic-timestamps/
https://dev.arie.bovenberg.net/blog/pydantic-timestamps/
Arie Bovenberg
The curious case of Pydantic and the 1970s timestamps
When parsing Unix timestamps, Pydantic guesses whether to interpret them in seconds or milliseconds. While this is certainly convenient and works most of the time, it can drastically (and silently) distort timestamps from a few decades ago.
Running Python on air-gapped systems
How to reproducibly run python code on a system with no internet access.
https://iahmed.me/post/python-air-gapped/
How to reproducibly run python code on a system with no internet access.
https://iahmed.me/post/python-air-gapped/
iahmed.me
Ibrahim Ahmed: Running python on air-gapped systems
In this post, I talk about running python code on a “soft” air-gapped system. For the final script, scroll to the end.
For research with the Department of Defense (DoD) and the University of Tennessee, Knoxville (UTK), I worked with restricted data. The DoD…
For research with the Department of Defense (DoD) and the University of Tennessee, Knoxville (UTK), I worked with restricted data. The DoD…
friuns2 / Leaked-GPTs
Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription.
https://github.com/friuns2/Leaked-GPTs
Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription.
https://github.com/friuns2/Leaked-GPTs
GitHub
GitHub - friuns2/Leaked-GPTs: Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription.
Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs without a Plus subscription. - GitHub - friuns2/Leaked-GPTs: Leaked GPTs Prompts Bypass the 25 message limit or to try out GPTs w...
Python Packaging, One Year Later: A Look Back at 2023 in Python Packaging
https://chriswarrick.com/blog/2024/01/15/python-packaging-one-year-later/
https://chriswarrick.com/blog/2024/01/15/python-packaging-one-year-later/
Chris Warrick
Python Packaging, One Year Later: A Look Back at 2023 in Python Packag
Are there still fourteen tools, or are there even more? Has Python packaging improved in a year?
4 Tips for Building a Production-Ready FastAPI Backend
This video talks about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend that’s used in a production setting.
https://www.youtube.com/watch?v=XlnmN4BfCxw
This video talks about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend that’s used in a production setting.
https://www.youtube.com/watch?v=XlnmN4BfCxw
YouTube
4 Tips for Building a Production-Ready FastAPI Backend
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
In this video, I’ll talk about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend…
In this video, I’ll talk about 4 things that you typically won’t find in most FastAPI tutorials online. These tips are really useful, especially if you want to create a backend…
How We Executed a Critical Supply Chain Attack on PyTorch
https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/
https://johnstawinski.com/2024/01/11/playing-with-fire-how-we-executed-a-critical-supply-chain-attack-on-pytorch/
John Stawinski IV
Playing with Fire – How We Executed a Critical Supply Chain Attack on PyTorch
Security tends to lag behind adoption, and AI/ML is no exception. Four months ago, Adnan Khan and I exploited a critical CI/CD vulnerability in PyTorch, one of the world’s leading ML platform…
Python-Redlines
Docx tracked change redlines for the Python ecosystem.
https://github.com/JSv4/Python-Redlines
Docx tracked change redlines for the Python ecosystem.
https://github.com/JSv4/Python-Redlines
GitHub
GitHub - JSv4/Python-Redlines: Docx tracked change redlines for the Python ecosystem.
Docx tracked change redlines for the Python ecosystem. - GitHub - JSv4/Python-Redlines: Docx tracked change redlines for the Python ecosystem.
Python Hub @ Whatsapp
Join Python Hub Whatsapp Channel
https://whatsapp.com/channel/0029VaJrpbhKWEKiXQ2tOT0q
Join Python Hub Whatsapp Channel
https://whatsapp.com/channel/0029VaJrpbhKWEKiXQ2tOT0q
WhatsApp.com
Python Hub
WhatsApp Channel Invite
microsoft / LLMLingua
To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which achieves up to 20x compression with minimal performance loss.
https://github.com/microsoft/LLMLingua
To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which achieves up to 20x compression with minimal performance loss.
https://github.com/microsoft/LLMLingua
GitHub
GitHub - microsoft/LLMLingua: [EMNLP'23, ACL'24] To speed up LLMs' inference and enhance LLM's perceive of key information, compress…
[EMNLP'23, ACL'24] To speed up LLMs' inference and enhance LLM's perceive of key information, compress the prompt and KV-Cache, which achieves up to 20x compression ...
surya
Accurate line-level text detection and recognition (OCR) in any language.
https://github.com/VikParuchuri/surya
Accurate line-level text detection and recognition (OCR) in any language.
https://github.com/VikParuchuri/surya
GitHub
GitHub - datalab-to/surya: OCR, layout analysis, reading order, table recognition in 90+ languages
OCR, layout analysis, reading order, table recognition in 90+ languages - datalab-to/surya
Type information for faster Python C extensions
PyPy is an alternative implementation of the Python language. PyPy’s C API compatibility layer has some performance issues. Carl Friedrich Bolz-Tereick and I are working on a way to make PyPy’s C API interactions much faster. It’s looking very promising. Here’s a sketch of how it works.
https://bernsteinbear.com/blog/typed-c-extensions/
PyPy is an alternative implementation of the Python language. PyPy’s C API compatibility layer has some performance issues. Carl Friedrich Bolz-Tereick and I are working on a way to make PyPy’s C API interactions much faster. It’s looking very promising. Here’s a sketch of how it works.
https://bernsteinbear.com/blog/typed-c-extensions/
Max Bernstein
Type information for faster Python C extensions
Update: The paper version of this post is accepted at PLDI SOAP 2024. Take a look at the preprint (PDF).
pathway
Pathway is a high-throughput, low-latency data processing framework that handles live data & streaming for you.
https://github.com/pathwaycom/pathway
Pathway is a high-throughput, low-latency data processing framework that handles live data & streaming for you.
https://github.com/pathwaycom/pathway
GitHub
GitHub - pathwaycom/pathway: Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.
Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG. - pathwaycom/pathway
Yet Another Password Reset Tutorial in Flask
Implementation of the password reset flow, with a twist.
https://freelancefootprints.substack.com/p/yet-another-password-reset-tutorial
Implementation of the password reset flow, with a twist.
https://freelancefootprints.substack.com/p/yet-another-password-reset-tutorial
Freelance Footprints
Yet Another Password Reset Tutorial in Flask
Implementation of the password reset flow, with a twist.
An Intuitive Guide to Self-attention in GPT: the Venetian Masquerade
https://twiecki.io/blog/2024/01/04
https://twiecki.io/blog/2024/01/04
twiecki.io
while my_mcmc: gently(samples) - An Intuitive Guide to Self-Attention in GPT: The Venetian Masquerade
1 TB of RAM saved with a single line of code
Anthony Sottile shows off a small change he made at work with a huge impact and explains how it works!
https://www.youtube.com/watch?v=Hgw_RlCaIds
Anthony Sottile shows off a small change he made at work with a huge impact and explains how it works!
https://www.youtube.com/watch?v=Hgw_RlCaIds
YouTube
ONE TERABYTE of RAM saved with a single line of code (advanced) anthony explains #566
today I show off a small change I made at work with huge impact and explain how it works!
- fork vs spawn https://youtu.be/hzBtsDPJ1dM
- python sucks at copy-on-write https://youtu.be/sdmcCQ7Em04
playlist: https://www.youtube.com/playlist?list=PLWBKAf8…
- fork vs spawn https://youtu.be/hzBtsDPJ1dM
- python sucks at copy-on-write https://youtu.be/sdmcCQ7Em04
playlist: https://www.youtube.com/playlist?list=PLWBKAf8…
How well-structured should your data code be?
The post explores the tradeoff between speed and system reliability, particularly in the context of data science. It delves into the challenges faced by those who prototype ML models, discussing the pressure to move quickly and the decision-making process between handing off work or taking on the role of a Machine Learning Engineer in production.
https://blog.dagworks.io/p/how-well-structured-should-your-data
The post explores the tradeoff between speed and system reliability, particularly in the context of data science. It delves into the challenges faced by those who prototype ML models, discussing the pressure to move quickly and the decision-making process between handing off work or taking on the role of a Machine Learning Engineer in production.
https://blog.dagworks.io/p/how-well-structured-should-your-data
blog.dagworks.io
How well-structured should your data code be?
You need more structure than you think but less than you fear.
Lamport's Bakery Algorithm, Demonstrated in Python
https://github.com/Dicklesworthstone/bakery_algorithm
https://github.com/Dicklesworthstone/bakery_algorithm
GitHub
GitHub - Dicklesworthstone/bakery_algorithm: Lamport's Bakery Algorithm Demonstrated in Python
Lamport's Bakery Algorithm Demonstrated in Python. Contribute to Dicklesworthstone/bakery_algorithm development by creating an account on GitHub.