home.social

#markupsafe — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #markupsafe, aggregated by home.social.

  1. slsa-github-generator v2 now uses upload/download-artifact v4, so I can update those in all the Pallets projects. Turns out the publish workflow for most projects didn't need any changes at all. Only MarkupSafe, with multiple build jobs, needed a little change to use different upload names and combine their downloads. github.com/pallets/markupsafe/ #Python #Flask #MarkupSafe #GitHub #SLSA

  2. MarkupSafe speedup saga continues: my coworker contributed a PR to implement them in Rust now. It uses some pretty clever speedups based on other serialization libraries they surveyed. If anyone is comfortable with Rust, we would appreciate reviews and feedback: github.com/pallets/markupsafe/ #Python #RustLang #PyO3 #Flask #MarkupSafe

  3. Update on my "remove MarkupSafe's C speedups" post: @tonybaloney swooped in and found a simple change that make the speedups ~40% faster in the cases where they had become slower. Turns out, if plain strings are the most probable thing you'll be escaping, you should check for that first, not last. So the speedups remain in place. github.com/pallets/markupsafe/ #Python #MarkupSafe #Flask

  4. Python has seen significant performance improvements in the last few releases. MarkupSafe has a C extension to speed up operations, but it's now *slower* in many cases than the plain Python implementation. Having a C extension increases the difficulty of maintenance, builds, releases, and installs. I'm wondering if it's time to drop the speedups. github.com/pallets/markupsafe/ #Python #MarkupSafe #Flask

  5. Got this error with Ansible on my Mac:
    ERROR: No module named 'markupsafe'

    Found this: ansiblepilot.medium.com/ansibl

    Solved it by (re)installing python-markupsafe: ansible; brew uninstall ansible python-markupsafe; brew install ansible python-markupsafe; ansible

    #ansible #homebrew #markupsafe