python

Back Open Paginator
20.01.2026 20:49
ThePSF (@ThePSF@fosstodon.org)

Please congratulate our newest PSF Fellow Members for Q4, 2025! Their continued contributions to the Python ecosystem are so very important to our community. #python
pyfound.blogspot.com/2026/01/a




Show Original Post


20.01.2026 20:20
darbales (@darbales@rollenspiel.social)

Habe in #python meine erste Übung einfache Graphen erstellen gemacht.
Mit Pandas, interessant etwas graphisch vor mir zu sehen. Bin begeistert darüber. Macht echt Spaß das zu lernen.
Auch wenn des öfteren Frust dazu kommt. Wenn man nicht weiter weiß oder zu viel falsch läuft.
Aber da es sehr oft Spaß macht,mache ich mit dem lernen definitiv weiter.




Show Original Post


20.01.2026 19:43
treyhunner (@treyhunner@mastodon.social)

Python Tip #20 (of 365):

Do not use "range(len(...))".

Instead of this:

for i in range(len(items)):
...

Either use enumerate:

for i, item in enumerate(items):
...

Or, if you don't need to count upward while looping, just loop directly over your iterable:

for item in items:
...

🧵 (1/2)




Show Original Post


20.01.2026 19:41
2026 (@2026@complainthub.com)

Migrating to uv is amazing

I have been using pip and venv to do Python forever. I will never use them again.

I have a bunch of little scripts that I wrote to help me do work. I have one to quickly move a downloaded bill into the folder for the client it belongs to. I have one that takes those filed bills and combine them into a monthly report. I have others but they’re probably even less interesting to you. My strategy before had been to create a venv for each one, load it from a requirements file, and point the shebang line at the venv. I know, that makes zero sense if you don’t write Python code. It’s fine.

The problem with that is that after some period of time, the venvs fail. I don’t know why or what happens, but the solution is to delete and rebuild them. It’s annoying.

I just moved most of them to uv in five minutes. It was that easy. The requirements files are gone – uv moved them into the scripts themselves and reads them from there going forward. They’ll be even easier to migrate to a new computer or fresh operating system install.

Even better – Heroku has been yelling at me to move my website (not this one, my work website) to uv. I thought this was going to be hard. This is a Django website that basically manages my business – it’s pretty important that it works.

cd coldants
uv init
uv add -r requirements.txt

That was it. Check in a few new files to Git, remove requirements.txt, redeploy to Heroku. Done. I couldn’t believe it.

Anyway, if you do Python code, I highly recommend you check out uv.

#python #uv


Show Original Post


20.01.2026 19:32
techbot (@techbot@social.raytec.co)

VVS Discord Stealer Using Pyarmor for Obfuscation and Detection Evasion

This analysis examines the VVS stealer, a Python-based malware targeting Discord users to steal sensitive information like credentials and tokens. The stealer employs Pyarmor for obfuscation, hindering analysis and detection. Key capabilities include exfiltrating Discord data, injecting malicious code into Discord processes, extracting web browser data, achieving persistence, and displaying fake error messages. The malware uses AES-128-CTR encryption and leverages Discord webhooks for data exfiltration. Advanced obfuscation techniques like Pyarmor's BCC mode and string encryption are detailed. The analysis demonstrates how legitimate tools can be misused to create stealthy malware, highlighting the need for improved defenses against credential theft and account abuse.

Pulse ID: 696fb542ca2b7837e2e4aade
Pulse Link: otx.alienvault.com/pulse/696fb
Pulse Author: AlienVault
Created: 2026-01-20 17:02:58

Be advised, this data is unverified and should be considered preliminary. Always do further verification.

#Browser #CyberSecurity #Discord #Encryption #InfoSec #Malware #OTX #OpenThreatExchange #Python #RAT #bot #AlienVault




Show Original Post


20.01.2026 19:24
Toxic_Flange (@Toxic_Flange@infosec.exchange)

I just realized something.. I used to love learning new things, i could get engrossed in something because it was simple to learn and easy to use.

New "tech stack" doesn't seem to be like that anymore. It feels needlessly complex and invents a new 'standard' every time. It makes me angry and I hate learning, cause its no longer fun.

Learning #borland #TurboPascal #pascal was fun and easy in High School. Moving to #C and #Perl in university was great and easy enough as well. Not that I was any kind of competent in C, but I felt I learned enough that it set me up on a trajectory to learn the finer details and gotchas.

Things like #Python are annoying AF. Oh, your python program only works on 3.11 and not 3.12 or 3.13? That shouldn't be at all. From 2->3 sure I expect changes, 3->4, i would expect great changes as well. But not a minor change!

Dabbling in #Go was fine actually, it didn't anger me much, and #Rustlang / #rust I'm still doing rustlings so I can't say much there.

CLI tools are weird today too. Do they want to be a TUI, a true CLI tool or what?

The #Unix philosophy made learning new tools nice and easy, at least I think so. Do one thing, do it well, make it so your output can be used as the input to another program and great!

Things don't seem to follow that idea anymore.

Or am I just old and biased cause my brain lost its elasticity?? I don't want to think i'm so egocentric as to not rule that out.

#programming #OldManYellsAtClouds




Show Original Post


20.01.2026 18:54
karlhaensel (@karlhaensel@norden.social)

RE: hachyderm.io/@itworldcup/11592

#Python people, where are you?! #ITWorldCup #Coding




Show Original Post


20.01.2026 18:34
TechKeysX (@TechKeysX@mastodon.social)

S1 EP17 Lab 7 - Machine Learning in Python - Removing Items from - Python Sets





Show Original Post


20.01.2026 18:32
Bredroll (@Bredroll@mas.to)

@b0rk sqlite is brilliant! I didn't understand why more people don't use it until I realized that with #flask, using the builtin sqlite in #python that it doesn't support threading and concurrency properly!




Show Original Post


20.01.2026 18:22
reddit_tech_vn_bot (@reddit_tech_vn_bot@mastodon.maobui.com)

Tôi đã xây dựng JitAPI, một máy chủ MCP chuyển spec OpenAPI thành đồ thị phụ thuộc, giúp LLM tự động giải quyết chuỗi gọi API (ví dụ GitHub) mà không cần nạp toàn bộ 1000+ endpoint. Sử dụng NetworkX, ChromaDB, sắp xếp topological để xác định thứ tự gọi, giảm chi phí và tăng tốc. Mã nguồn mở, cài đặt pip install jitapi. #AI #LLM #OpenAPI #RAG #Graph #Python #MCP #JitAPI #trí_tiêng_nhân_tạo #API #đồ_thị

reddit.com/r/LocalLLaMA/commen




Show Original Post


20.01.2026 17:30
Reuven (@Reuven@fosstodon.org)

Want to turn an online CSV file into a #Python #Pandas data frame?

Just pass a URL to read_csv:

df = pd.read_csv('mydata.com/data.csv')

options such as usecols and index_col work!

This works on all read_* methods, including read_excel, read_json, and read_parquet.





Show Original Post


20.01.2026 17:29
billinkc (@billinkc@beige.party)

As an #introduction since the migration doesn't bring my history over. Hi all and #BeigeBless I am delighted to join this eclectic server and hope that I can live up to the high standards.

I am a medium old (re-entered the prime decades) white guy living in the middle of the US but don't hold that against me. Married, two kids that aren't exactly "kids". I used to talk a lot about #SSIS, #SQLServer, #python, C#, #Databricks but anymore I think just chat about what's going on in my life.

My newest joy has been my backyard chickens and not maintaining the website 816chickens.com/

Undecided on me? Here's my easy follow criteria for you

Tea not coffee
Trans rights are human rights
The president is a bag of dicks




Show Original Post


1 ...619 620 621 622 623 624 625 626 627 628 629 ...1585
UP