🐍🗓️6️⃣ The dateutil library is a popular and powerful Python library for dealing with dates and times.
However, it still supports Python 2.7 by depending on the six compatibility shim, and I’d prefer not to install it for Python 3.10+.
Here’s how I replaced three uses of its relativedelta in a couple of CLIs that didn’t really need to use it.
https://hugovk.dev/blog/2025/minus-six/
#Python #dateutil #six
🐍🗓️6️⃣ The dateutil library is a popular and powerful Python library for dealing with dates and times.
However, it still supports Python 2.7 by depending on the six compatibility shim, and I’d prefer not to install it for Python 3.10+.
Here’s how I replaced three uses of its relativedelta in a couple of CLIs that didn’t really need to use it.
https://hugovk.dev/blog/2025/minus-six/
#Python #dateutil #six
So … I have been busy contributing to this
tldr: real-time #telegram archive of the Russian War against Ukraine.
It’s 100% built with Claude Code in a bit more than 2 months
it’s near 200.000 lines of #python code, without counting with documentation of course.
check it out ! http://v2.osintukraine.com
`EmbeddingAdapters` là thư viện Python giúp chuyển đổi embedding giữa các mô hình khác nhau (ví dụ: MiniLM sang OpenAI). Điều này hữu ích để tiết kiệm chi phí, truy vấn chỉ mục vector cũ mà không cần nhúng lại dữ liệu, và chạy RAG trong môi trường offline.
#AI #Python #MachineLearning #RAG #Tech #Công nghệ
Pyriodic Backend version 0.2.0 has been released to PyPi!
Pyriodic Backend, The Backend For The Small Web is my Python project aimed at creating a simple and light backend service for websites written in pure HTML. The only requirements are Python and cron, and it can run on SBCs like the Raspberry Pi or other very low lower devices.
Updates and new features for version 0.2.0:
-- gracefully handle missing HTML files
-- gracefully handle insufficient permissions to modify HTML files
-- logs now give more information and make more sense
-- files are opened and written once per run, even if there is more than one tag update method assigned to them.
Examples of usage and configuration are described in project's page in PyPi:
https://pypi.org/project/pyriodic-backend/
#python #foss #backend #webdevelopment #pypi #smallweb #raspberry_pi
This could be as simple as a #django based #python app, a well-indexed #postgresql table, and some simple GUI elements.
The Omeka UI is mostly ok once you get used to it, but it's very rigid, and very difficult to extend.
#Baserow gets close, but it's not semantic.
sigh.
TIL: Instead of the standard pattern of
if k not in mydict:
mydict[k] = []
mydict[k].append(foo)
Python comes with a subclass of dict that will automatically create missing elements from a factory function as soon as you try to access them:
from collections import defaultdict
mydict = defaultdict(list)
mydict[k].append(foo)
S1 EP13 Lab 9 - Machine Learning in Python - Introduction to Python - Class Methods #softwaredeveloper #learnpython #machinelearningtutorial #datascienceforbeginners #mlforbeginners #dataengineering #statistics #datascience #machinelearningbasics #algorithims #machinelearningmodels #codingforbeginners #jupyterlabs #machinelearning #jupyternotebook #PythonForDataScience #pythoncoding #python #vscode
When you notice twine uploading a 400M sdist for a tiny #Python package, you know something went wrong.
Just released! 🚀
norwegianblue 0.24.0
CLI to show end-of-life dates
show spinner when querying
support 3.15
replace dateutil+six dependencies with stdlib
replace httpx with urllib3
replace pre-commit with prek
https://github.com/hugovk/norwegianblue/releases/tag/0.24.0
#Python #release #norwegianblue #CLI
Just released! 🚀
pypistats 1.12.0
CLI for PyPI download stats
support 3.15
drop 3.9
improve verbose output
declare type hints
replace dateutil+six dependencies with stdlib
replace httpx with urllib
replace pre-commit with prek
https://github.com/hugovk/pypistats/releases/tag/1.12.0
#Python #release #pypistats #CLI
Just bookmarked #PySDR: A Guide to SDR & DSP using #Python. it’s an awesome free online textbook for digging into DSP, wireless communications, & Python code for SDRs (including #RTLSDR setups)! https://pysdr.org/index.html #SDR #Python #RTLSDR