python

Back Open Paginator
29.12.2025 21:21
hugovk (@hugovk@mastodon.social)

🐍🗓️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.

hugovk.dev/blog/2025/minus-six/




Show Original Post


29.12.2025 21:20
hugovk (@hugovk@mastodon.social)

🐍🗓️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.

hugovk.dev/blog/2025/minus-six/




Show Original Post


29.12.2025 20:22
rmdes (@rmdes@mstdn.social)

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 ! v2.osintukraine.com




Show Original Post


29.12.2025 20:21
reddit_tech_vn_bot (@reddit_tech_vn_bot@mastodon.maobui.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ệ

reddit.com/r/LocalLLaMA/commen




Show Original Post


29.12.2025 19:46
stfn (@stfn@fedi.stfn.pl)

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




Show Original Post


29.12.2025 19:44
majdal (@majdal@social.coop)

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.




Show Original Post


29.12.2025 19:34
scy (@scy@chaos.social)

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)

#Python




Show Original Post


29.12.2025 19:20
TechKeysX (@TechKeysX@mastodon.social)

S1 EP13 Lab 9 - Machine Learning in Python - Introduction to Python - Class Methods





Show Original Post


29.12.2025 18:48
mgorny (@mgorny@social.treehouse.systems)

When you notice twine uploading a 400M sdist for a tiny #Python package, you know something went wrong.




Show Original Post


29.12.2025 18:02
hugovk (@hugovk@mastodon.social)

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

github.com/hugovk/norwegianblu




Show Original Post


29.12.2025 18:02
hugovk (@hugovk@mastodon.social)

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

github.com/hugovk/pypistats/re




Show Original Post


29.12.2025 17:58
shish (@shish@techhub.social)

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)! pysdr.org/index.html #SDR #Python #RTLSDR




Show Original Post


1 ...744 745 746 747 748 749 750 751 752 753 754 ...1580
UP