questionlp’s avatarquestionlp’s Twitter Archive—№ 38,561

    1. Hello, #Python 3.10.0 running on macOS Monterey Beta! Eventually, I'll install it on my primary laptop 😅
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @questionlp
    Okay, so I installed 3.10.0 on my primary MacBook Pro. I then cloned libwwdtm into a temporary directory, set the Python version to 3.10.0 using pyenv, and was able to get the required packages to build and install on macOS Big Sur (including numpy and mysql-connector-python)
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @questionlp
      With Python 3.10.0, the MySQL Connector package is using the pure Python implementation due to not having a compiled version for the C Extension yet. The test script for the project ran without errors. Compared to Python 3.8.11 and MySQL Connector C Ext, it's a bit slower...
      oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
      1. …in reply to @questionlp
        ...but I'm okay with it being slower as the apps that use that library don't hit the database as hard as the test script does; and, I also use NGINX caching to reduce the hit on the web application anyway.
        1. …in reply to @questionlp
          If I set use_pure to True in the config file, which contains a dictionary that's pulled in by MySQL Connector for database connection settings, I ran the test again under Python 3.8.11 and the performance is on par with Python 3.10.0. So, that's a really good sign!
          oh my god twitter doesn’t include alt text from images in their API
          1. …in reply to @questionlp
            Not shocked at perf of pure Python implementation. I was futzing around with an AWS Graviton instance running Ubuntu 20.04. Since there isn't a version of the library with C Extensions compiled for ARM, the performance was little worse w/ local MySQL instance vs local machine.
            1. …in reply to @questionlp
              What I don't have time to test right now is how Flask and FastAPI fare with Python 3.10.0, at least for the web apps that I have. If I have spare time this weekend (ha!), I'll give it a shot.