fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#Python

496 posts384 participants32 posts today

🚨📝 New blog post alert 📝🚨

Wondering what happens after you submit your PyCon UK 2025 proposal? 👀

Our latest blog post shares how we review proposals, shortlist talks, and build a diverse and exciting schedule 🎤🧠✨

With so many brilliant ideas to choose from, it’s a tough job! You can read all about our process, from initial review to building the final programme, here: 2025.pyconuk.org/2025/04/propo

🗓️ Reminder: CfP closes on 11th May ⌛

2025.pyconuk.orgSo you've submitted your proposal, what happens next? – PyCon UK 2025PyCon UK Friday 19th September to Monday 22nd September 2025, CONTACT Manchester
Continued thread

Many ingredients are already here: there is a vast array of open source #python libraries that cover every imaginable #algorithm, from classic statistics to #machinelearning. And python is already a first class citizen in linux.

At the other end are end-user apps like the file manager, #libreoffice, sophisticated editors like #kate etc. that are already mature.

What is missing the orchestration of services, API's, UI's etc. that will effortlessly bring these superpowers to the average user.

Replied in thread

@javalps Also, though... I plan to totally re-write the thing *again* (splitting off components into stand-alone pieces) and still need to learn how to write idiomatic proper readable #Rust

I'm still not writing (native) Rust... it's still ported stuff with no regard to expected method names and conventions, just literally the same namespace I used previously in #Python (and even that wasn't pythonic) for the most part.

So, some downsides.

Replied in thread

@javalps

Possibly? I'm still learning, but started with porting a big project written in Python.

And it kinda worked really well - Python to prototype and pin down the exact implementation logic and then - at first painfully and with much cursing - port things from the bottom up to #Rust.

Might not be useful, but porting something I'd already done (at least) once and understood completely (in a good prototyping language like #Python) was a pretty nice way to start.

github.com/astral-sh/uv/releas

This release includes preliminary support for the pylock.toml file format, as standardized in PEP 751 (peps.python.org/pep-0751/).

pylock.toml is an alternative resolution output format intended to replace requirements.txt (e.g., in the context of uv pip compile, whereby a "locked" requirements.txt file is generated from a set of input requirements).

#python #uv 0.6.15 #PEP #PEP751

Release Notes
This release includes preliminary support for the pylock.toml file format, as standardized in PEP 751. pylock.toml is an alternative resolution output format intended to replace requi...
GitHubRelease 0.6.15 · astral-sh/uvRelease Notes This release includes preliminary support for the pylock.toml file format, as standardized in PEP 751. pylock.toml is an alternative resolution output format intended to replace requi...

Anyone out there wanting to use #libmagic on #Windows, and finding the situation quite unworkable, this seems like a decent parallel, I'll be taking it for a spin soon. github.com/cdgriffith/puremagic (and it's 100% #python !) I also like that you can kinda find polyglots by getting back all the ways a file could match, in confidence order.

Pure python implementation of identifying files based off their magic numbers - cdgriffith/puremagic
GitHubGitHub - cdgriffith/puremagic: Pure python implementation of identifying files based off their magic numbersPure python implementation of identifying files based off their magic numbers - cdgriffith/puremagic
Replied in thread

@stfn One solution for "all" ...

def check_the_list( the_list ):
if not isinstance( the_list, list ):
raise ValueError('Need a list, not whatever else was sent.')

if len( the_list ) < 1:
raise ValueError('Need a non-empty list for "all()" to work.')

return all( the_list )

- - -
No, I do not care for "all( [] )" to return "True" instead of "False". Anyone who would re-advocate on that point can also re-fuck off.

#Python FTW (mirrored around "T" with "WTF")

UI автотесты на Python с запуском на CI/CD и Allure отчетом. PageObject, PageComponent, PageFactory

Разбираем, как писать масштабируемые и читаемые UI автотесты на Python с использованием паттернов PageObject , PageFactory и PageComponent . Разберем на атомы как устроены эти подходы, когда их применять и чем они отличаются. Всё это — на примере тестового проекта UI Course с CI/CD и наглядными отчетами в Allure .

habr.com/ru/articles/896936/

ХабрUI автотесты на Python с запуском на CI/CD и Allure отчетом. PageObject, PageComponent, PageFactoryВступление В этой статье мы разберем, как писать UI автотесты на Python, используя проверенные подходы и лучшие практики автоматизации. Мы поэтапно рассмотрим ключевые паттерны, такие как PageObject,...