@mdk@mamot.fr
@mdk@mamot.fr avatar

mdk

@mdk@mamot.fr

Core dev Python, je passe mon temps libre sur des projets libres :

  • sysadmin de l'AFPy
  • co-organisateur des PyConFr
  • Traducteur de la doc de Python
  • https://hackinscience.org
  • Mainteneur de sphinx-lint
  • Mainteneur de docs.python.org

This profile is from a federated server and may be incomplete. Browse more on the original instance.

isagalaev, to python
@isagalaev@mastodon.social avatar

My biggest gripe about docs and modern search engines: the query "python f-string" finds a lot of trash instead of what I always look for: a reference. https://docs.python.org/3/library/string.html#formatstrings

mdk,
@mdk@mamot.fr avatar

@isagalaev Does Google prefers delivering page with ads sold by Google?

mdk, to orgmode French
@mdk@mamot.fr avatar

Haha :

| mdk.fr | 6.763/6.763/6.763/0.000 ms |
| afpy.org | 7.165/7.165/7.165/0.000 ms |
| reflets.info | 3.920/3.920/3.920/0.000 ms |
#+TBLFM: $2='(shell-command-to-string (concat "ping -c 1 " $1 " | tail -n 1 | cut -d= -f2 | tr -d '\n'"))

Oui c'est un tableau qui ping des noms de domaines,

mdk, to python French
@mdk@mamot.fr avatar

TIL setuptool est capable d'indiquer tout seul au build-backend qu'il à besoin de wheel pour constuire une wheel:

https://github.com/pypa/setuptools/blob/0156e248e777eebff9250d83603611585d0c8f12/setuptools/build_meta.py#L325

donc pas besoin de :

[build-system]
requires = ["setuptools", "wheel"]

[build-system]
requires = ["setuptools"]

scy, to webdev
@scy@chaos.social avatar

I need to convert to and I'm looking for a tool to do that.

The output should

• preserve line breaks in paragraphs
• not contain additional, unnecessary linebreaks (e.g. 4 empty lines between paragraphs)
• be configurable (e.g. whether to use * or _ for emphasis, or * vs - for unordered lists)
• if possible, allow me to hook into details (e.g. to convert <pre class="shell"> to ```sh)

or . Alternatively, what's a really configurable prettifier?

:BoostOK:

mdk,
@mdk@mamot.fr avatar

@scy I haven't looked at the configurability details of html2text, but it converts html to Markdown. Yes the one from Aaron Swartz: https://github.com/Alir3z4/html2text/

mdk, to python French
@mdk@mamot.fr avatar
mdk,
@mdk@mamot.fr avatar

@foxmask Pas étudié non. Mais bon c'est les CI.

Varpie, to random
@Varpie@peculiar.florist avatar

GitHub a supprimé le repo de xz et banni le mainteneur principal (qui n'était pas responsable des failles de sécurité) en plus du gars qui a introduit les failles de sécurité.

J'ai comme une impression de déjà vu...
Une petite piqûre de rappel que vos projets ne sont pas en sécurité chez GitHub, toujours avoir un miroir officiel où aller si Microsoft décide de vous supprimer.

mdk,
@mdk@mamot.fr avatar

@incroyable_anis @Varpie À l'AFPy on s'est montés git.afpy.org il y a qq temps pour essayer de migrer hors GH. On a pas foule, mais au moins ça c'est fait.

mdk, to python French
@mdk@mamot.fr avatar
mdk, to python French
@mdk@mamot.fr avatar

Ça y est je commence ma recherche de sponsors pour la !

https://www.pycon.fr/2024/fr/sponsors.html

Si tu pense que ta boite pourrait sponsoriser, fais moi signe, sinon retoot.

Challenge cette année on aimerait des interprètes LSF, si on veut réussir il va falloir taper fort niveau sponsors :D

berkes, to python
@berkes@mastodon.nl avatar

I'm truly baffled by how insane the map/reduce/filter iterator API for is. Most languages, even JavaScript, have some sort of "other_list = the_list.map().filter()" API. Except Python (and PHP?).

Now, I can imagine that a language that primarily deals with string manipulation or DOM management or so, to have a crappy API for handling large lists of data. But python's entire success comes from "handleing large lists of data", yet the tools to do so are infuriating.

mdk,
@mdk@mamot.fr avatar

@berkes @freemo In Python they are functions, not methods, because they work with any iterable (strings, lists, tuples, bytes, literraly any containers, even the ones you create). It's easier than having to implement a map and a reduce method on every container.

But in Python we don't even use map and filter, comprehensions are (very often) more readable:

>>> sum(map(abs, filter(lambda x: x > 10, the_iterable)))

vs

>>> sum(abs(x) for x in the_iterable if x > 10)

treyhunner, to python
@treyhunner@mastodon.social avatar

What's an coding habit you picked up while learning ?

mdk,
@mdk@mamot.fr avatar

@treyhunner euh. hum. ... hard to tell in public, but: writing tests.

mdk, to random French
@mdk@mamot.fr avatar

Wow boom, @codelutin qui m'annonce que c'est pas 1k€ mais 1666€ qu'ils me versent pour continuer à maintenir https://hackinscience.org au titre de la @copiepublique ♥♥♥

En passant j’apprends cette initiative géniale qu'est la Copie Publique, beau pied-de-nez, j'adore, vous êtes des génies, bisous !

fcodvpt, to python French
@fcodvpt@framapiaf.org avatar

I made some code to extract the backends declared in the pyproject.toml files (1)

I used @sethmlarson great article : "Querying every file in every release on the Python Package Index" (2)

I called the gist (3) to dowload the files and everything worked fine.

-backends

(1) https://gitlab.liris.cnrs.fr/fconil-small-programs/packaging/get-pypi-packages-backends
(2) https://sethmlarson.dev/security-developer-in-residence-weekly-report-18
(3) https://gist.github.com/sethmlarson/852341a9b7899eda7d22d8c362c0a095

Here is the resulting bar chart (1/2)

mdk,
@mdk@mamot.fr avatar

@fcodvpt @sethmlarson That's not what I see on github:

path:pyproject.toml "setuptools.build_meta" : 28.7k files

path:pyproject.toml "poetry.core.masonry.api" : 96.8k files

mdk,
@mdk@mamot.fr avatar

@fcodvpt @sethmlarson Thanks for the ping! Yeah this looks more like what I expected.

What would be very interesting (to my eyes) is to see evolution over time. a bit like in https://git.afpy.org/mdk/python-versions, to see "migrations" from one backend to another, to see "birth" (or deaths?) of backends, and so on... Last time I did this kind of things I crawled github instead of PyPI, for a talk: https://git.afpy.org/mdk/talks/src/branch/main/2018-pyconfr-emergence.md (it took ages :D)

codelutin, to python French
@codelutin@mastodon.libre-entreprise.com avatar

📢 Code Lutin verse 1000 € au projet pour faciliter l'apprentissage de la programmation par tous 👩‍🏫

Chaque année, nous versons 1% de notre chiffre d’affaires au en tant que membre de @copiepublique 🐧💰

Merci @mdk de faire vivre le projet 👍

https://www.hackinscience.org/

mdk,
@mdk@mamot.fr avatar

@codelutin @copiepublique Wow merci beaucoup !

Ma « procédure habituelle » (genre j'ai l'habitude qu'on me file 1k€) c'est afficher ça ici : https://www.hackinscience.org/sponsor/ pour être transparent.

Ça vous convient comme tournure et comme lien ?

mdk, to python French
@mdk@mamot.fr avatar

Je viens de mettre à jour https://git.afpy.org/mdk/python-versions

3.9 égalise avec Python 3.7, enfin, presque.

Oh coucou Python 3.12 ! 1% d'utilisateurs dès le premier mois, wow !

mdk, to python French
@mdk@mamot.fr avatar

Oh on est vraiment en 2023, y'a 3 fois plus d'utilisateurs de Python 3.11 que de 2.7.

https://git.afpy.org/mdk/python-versions

foxmask, to random French
@foxmask@framapiaf.org avatar

Je crois que j'ai rêvé mais un jour j'ai croisé une application 2FA intégrée a une application keepass. Je remets pas la main dessus.
Une idée ?
KeepassDX n'a pas ça domache

mdk,
@mdk@mamot.fr avatar

@foxmask 2fa integre a passwordstore y'a sur pypi.

aral, to random
@aral@mastodon.ar.al avatar

Encrypted messaging provider: “We make our money selling this to the police.”

Tech folks: This is cool and normal.

mdk,
@mdk@mamot.fr avatar

@aral If the police consider it secure for their own usage, it's a good point.

Cloudguy, to random

deleted_by_author

  • Loading...
  • mdk,
    @mdk@mamot.fr avatar

    @Cloudguy Haha I'm happy to not own an Amazon account :)))

    mdk,
    @mdk@mamot.fr avatar

    @Cloudguy I'm not sure my non-native-english brain is missing something in your sentense. I just try to avoid having GAFAM accounts (except for Github, hard to avoid) (oh and a Linkedin one I removed once and re-created a few years ago to help managing a page for a non-profit, I should remove it again.). Why? I just feel that's not ethical to have one.

    mdk,
    @mdk@mamot.fr avatar

    @Cloudguy Yeah, no. I live in France, here Amazon does a lot of bad: work conditions are very bad, massive tax fraud, that sort of things.

    Maybe in your country it's better?

    mdk,
    @mdk@mamot.fr avatar

    @Cloudguy The french finance inspection calls it « massive fraud » maybe Amazon should try to tell them it's defamatory...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • mdbf
  • magazineikmin
  • InstantRegret
  • hgfsjryuu7
  • Durango
  • Youngstown
  • slotface
  • everett
  • thenastyranch
  • rosin
  • kavyap
  • khanakhh
  • PowerRangers
  • Leos
  • DreamBathrooms
  • vwfavf
  • ethstaker
  • tacticalgear
  • cubers
  • ngwrru68w68
  • modclub
  • cisconetworking
  • osvaldo12
  • GTA5RPClips
  • normalnudes
  • tester
  • provamag3
  • All magazines