python

Back Open Paginator
02.01.2026 21:45
smp (@smp@chaos.social)

Inspired by the #GPG key from @49016, which was shown in the very interesting gpg.fail talk at #39c3 I vibed a little #Python tool you can use to decorate your public GPG key.

Have fun with github.com/fuxx/GPG-ANSI-Art-I - It would be awesome if some people would add some new designs!

🫢





Show Original Post


02.01.2026 20:59
ubuntu_touch (@ubuntu_touch@mstdn.social)

Distritos con mas atropellados en 2024
Costa Rica

Se muestra el Canton - Distrito
San JosΓ© - Hospital
Desamparados - Desamparados
Cartago - San NicolΓ‘s
Alajuela - Alajuela
PΓ©rez ZeledΓ³n - San Isidro

Curso de Pandas-Excel
#Python #CostaRica





Show Original Post


02.01.2026 20:58
rhettallain (@rhettallain@mastodon.social)

Here are my models for the ball stick collisions





Show Original Post


02.01.2026 20:56
isazajuancarlos (@isazajuancarlos@mastodon.social)

Impulsa tu negocio con soluciones tecnolΓ³gicas legales. Como abogado y programador experto en Python y NiceGUI, ofrezco desarrollo de MVP, integraciΓ³n IA y automatizaciΓ³n. Β‘Transformemos tus ideas!

πŸ”— xiliux.com





Show Original Post


02.01.2026 20:52
habr (@habr@zhub.link)

Π‘Π°Π·ΠΎΠ²Ρ‹ΠΉ RAG-ΠΊΠΎΠΌΠΏΠΎΠ½Π΅Π½Ρ‚ для локального сСмантичСского поиска Π½Π° ΠŸΠΈΡ‚ΠΎΠ½Π΅

quad_rag_core β€” Π»Ρ‘Π³ΠΊΠΎΠ΅ Python-ядро для локального RAG, ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠ΅ автоматичСски отслСТиваСт измСнСния Π² ΠΏΠ°ΠΏΠΊΠ°Ρ…, индСксируСт ΠΈΡ… Π² Qdrant ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΈΠ²Π°Π΅Ρ‚ эмбСддинги Π² Π°ΠΊΡ‚ΡƒΠ°Π»ΡŒΠ½ΠΎΠΌ состоянии. Π˜Π·Π½Π°Ρ‡Π°Π»ΡŒΠ½ΠΎ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚ задумывался ΠΊΠ°ΠΊ ΠΏΠ»Π°Π³ΠΈΠ½ для MCP (Model Context Protocol), Π½ΠΎ стал ΡƒΠ½ΠΈΠ²Π΅Ρ€ΡΠ°Π»ΡŒΠ½ΠΎΠΉ основой для любой систСмы локального сСмантичСского поиска. Π—Π°Ρ‡Π΅ΠΌ это Π½ΡƒΠΆΠ½ΠΎ Π’ процСссС Ρ€Π°Π±ΠΎΡ‚Ρ‹ с ΠΊΠΎΠ΄ΠΎΠ²ΠΎΠΉ Π±Π°Π·ΠΎΠΉ Ρ‡Π΅Ρ€Π΅Π· LLM-Π°Π³Π΅Π½Ρ‚ΠΎΠ² ΠΈ ΠΏΡ€ΠΈ нСобходимости локального сСмантичСского поиска ΠΏΠΎ Ρ„Π°ΠΉΠ»Π°ΠΌ ΠΏΡ€ΠΎΠ΅ΠΊΡ‚Π° ΠΎΠ±Π½Π°Ρ€ΡƒΠΆΠΈΠ»Π°ΡΡŒ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΠ°. Π˜Π½ΡΡ‚Ρ€ΡƒΠΌΠ΅Π½Ρ‚Ρ‹ агСнтской Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠΈ Π²Ρ€ΠΎΠ΄Π΅ Kilo Code ΠΏΡ€Π΅Π΄ΠΎΡΡ‚Π°Π²Π»ΡΡŽΡ‚ Π²ΡΡ‚Ρ€ΠΎΠ΅Π½Π½ΡƒΡŽ Ρ„ΡƒΠ½ΠΊΡ†ΠΈΡŽ сСмантичСского поиска, Π½ΠΎ Π² ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ Π·Π°ΡΠ²Π»ΡΡŽΡ‚ Ρ‡Ρ‚ΠΎ Π² Π±ΡƒΠ΄ΡƒΡ‰Π΅ΠΌ эта Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½ΠΎΡΡ‚ΡŒ ΠΌΠΎΠΆΠ΅Ρ‚ ΡΡ‚Π°Ρ‚ΡŒ ΠΏΠ»Π°Ρ‚Π½ΠΎΠΉ. Π‘Ρ€Π°Π·Ρƒ задумался ΠΎ Ρ‚ΠΎΠΌ Ρ‡Ρ‚ΠΎΠ±Ρ‹ ΡΠ΄Π΅Π»Π°Ρ‚ΡŒ свою подсистСму поиска. ΠŸΡ€ΠΎΡΡ‚Ρ‹Π΅ запросы ΠΊ MCP-сСрвСру Π½Π° поиск ΠΈ ΠΎΠ±Π½ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ Ρ‚ΡƒΡ‚ Π½Π΅ ΠΏΠΎΠ΄ΠΎΠΉΠ΄ΡƒΡ‚ - систСма поиска Π΄ΠΎΠ»ΠΆΠ½Π° ΠΈΠΌΠ΅Ρ‚ΡŒ ΠΏΠΎΠ»Π½Ρ‹ΠΉ ΠΊΠΎΠ½Ρ‚Ρ€ΠΎΠ»ΡŒ Π½Π°Π΄ контСкстом - ΠΎΠ½Π° Π΄ΠΎΠ»ΠΆΠ½Π° автоматичСски ΡƒΠ·Π½Π°Π²Π°Ρ‚ΡŒ, Ρ‡Ρ‚ΠΎ Ρ„Π°ΠΉΠ» ΡƒΠ΄Π°Π»Ρ‘Π½, функция ΠΈΠ·ΠΌΠ΅Π½Π΅Π½Π° ΠΈΠ»ΠΈ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ Π½ΠΎΠ²Ρ‹ΠΉ Π΄ΠΎΠΊΡƒΠΌΠ΅Π½Ρ‚, Π±Π΅Π· нСобходимости пСрСзапуска индСксации. ΠžΡ‚ ΠΈΠ΄Π΅ΠΈ ΠΊ Π°Ρ€Ρ…ΠΈΡ‚Π΅ΠΊΡ‚ΡƒΡ€Π΅ Π’ Π½Π°Ρ‡Π°Π»Π΅ планировался простой MCP-сСрвСр, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ ΠΏΡ€ΠΈΠ½ΠΈΠΌΠ°Π΅Ρ‚ ΠΊΠΎΠΌΠ°Π½Π΄Ρ‹ поиска ΠΈ обновлСния, индСксируСт тСкстовыС Ρ„Π°ΠΉΠ»Ρ‹ ΠΈ PDF, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅Ρ‚ Qdrant ΠΊΠ°ΠΊ Π²Π΅ΠΊΡ‚ΠΎΡ€Π½ΠΎΠ΅ Ρ…Ρ€Π°Π½ΠΈΠ»ΠΈΡ‰Π΅ ΠΈ эмбСддит локально. Π’ Ρ…ΠΎΠ΄Π΅ проСктирования стало понятно: вся Π»ΠΎΠ³ΠΈΠΊΠ° отслСТивания Ρ„Π°ΠΉΠ»ΠΎΠ², парсинга, Ρ‡Π°Π½ΠΊΠΈΠ½Π³Π° ΠΈ синхронизации с Qdrant β€” это ΠΏΠ΅Ρ€Π΅ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌΠΎΠ΅ ядро, Π° Π½Π΅ Ρ‡Π°ΡΡ‚ΡŒ MCP-ΠΏΡ€ΠΎΡ‚ΠΎΠΊΠΎΠ»Π°. Π’Π°ΠΊ появился quad_rag_core β€” ΠΎΡ‚Π΄Π΅Π»ΡŒΠ½Ρ‹ΠΉ Python-ΠΌΠΎΠ΄ΡƒΠ»ΡŒ, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ Π½Π΅ Π·Π½Π°Π΅Ρ‚ Π½ΠΈΡ‡Π΅Π³ΠΎ ΠΏΡ€ΠΎ MCP ΠΈΠ»ΠΈ Π΄Ρ€ΡƒΠ³ΠΈΠ΅ внСшниС интСрфСйсы, Π½ΠΎ Π³ΠΎΡ‚ΠΎΠ² ΠΊ Π½ΠΈΠΌ ΠΏΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π°Ρ‚ΡŒΡΡ.

habr.com/ru/articles/982476/

#rag #rag_ai #сСмантичСский_поиск #middleware #python #qdrant #embeddings




Show Original Post


02.01.2026 20:43
mick_the_linux_geek (@mick_the_linux_geek@mastodon.social)

πŸš€ New Blog Post: Rebooting for 2026: Tracking Issues and Breaking New Ground

I’m kicking off the year with a fresh look for my website and a clear roadmap for my projects:

- Finishing the DITS web app πŸ–₯️

- Building a lightweight TUI version ⌨️

- Taming the home-lab "mess" 🏠

- Diving into and πŸ“š

Check out the full update here: [mickgeeklabs.org/blog/happy-ne]





Show Original Post


02.01.2026 20:12
rhettallain (@rhettallain@mastodon.social)

New post - a ball of clay hits a stick in the center and then on the edge. Which one has a greater recoil speed? included (of course).

rjallain.medium.com/the-physic




Show Original Post


02.01.2026 19:33
ukscone (@ukscone@cupoftea.social)

#python question.

on the #RaspberryPi running PiOS bookworm or trixie do people use the builtin venv, virtualenv, pipenv or poetry for their python development virtual environments? pros and cons for using any of them?




Show Original Post


02.01.2026 19:11
blotosmetek (@blotosmetek@circumstances.run)

@Reuven What is very misleading to newcomers to #Python is:

>>> for x,y in zip(range(300), range(300)):
... if x is not y:
... print(x)
... break
...
257

Apparently all integers bigger than 2**8 are created as new objects every time, but small integers are pre-instantiated by the interpreter and reused; I saw an explanation somewhere but can't be bothered to find it right now.

And there's a very good use for is in algorithms operating on graphs, for example looking for a shortest path or minimal spanning tree - instead of manually putting unique identifiers into vertices and checking if x.ident == y.ident, you can use x is y, which is just a shortcut for id(x) == id(y).




Show Original Post


02.01.2026 19:04
steko (@steko@scholar.social)

Does anybody have experience with #xarray for #numpy labeled arrays?

My use case is rather simple with a 2d ndarray and I'm mostly after easier development for myself and contributors if it's possible to switch from ndarray[:, 0] and ndarray[:, 1] to ndarray[fieldname]

#python




Show Original Post


02.01.2026 18:32
treyhunner (@treyhunner@mastodon.social)

Python Tip #2 (of 365): Prefer string interpolation over concatenation in all but simple cases.

I recommend using this f-string:

message = f"My name is {name}"

Instead of this string concatenation:

message = "My name is " + name

String concatenation models our code as "smoosh together this string and this string and this string".

But string interpolation models our code as "build up this big string by putting these smaller strings inside it". 🧡




Show Original Post


02.01.2026 18:30
pytexas (@pytexas@fosstodon.org)

Two keynotes. Global 🐍 impact.

Join us to hear from Dawn Wages (Director of Community & DevRel at Anaconda, former PSF Chair) and Hynek Schlawack (PSF Fellow, security & infrastructure expert).

If #Python shapes your career, #PyTexasConference2026 belongs on your calendar. ⭐

Be sure to get your ticket at: pytexas.org/2026





Show Original Post


1 ...720 721 722 723 724 725 726 727 728 729 730 ...1581
UP