December meeting

Date: Monday, December 8th @ 7pm

Links:

How Should the Linux Kernel Handle AI-Generated Contributions? [submitted by Jörg]
https://linux.slashdot.org/story/25/11/17/0444234/how-should-the-linux-kernel-handle-ai-generated-contributions

Relativistic Heavy Ion Collider [since it came up last time]
https://www.bnl.gov/rhic/

hyperflask
full-stack web framework where all the tech choices have been made. Hyperflask combines multiple Flask extensions and frontend libraries into a seamless experience.
https://github.com/hyperflask/hyperflask

caniscrape [can i scrape]
planning to use this soon
https://github.com/ZA1815/caniscrape

Lore
A man with a watch knows what time it is. A man with two watches is never sure.
At surface level, the adage emphasizes the consistency that arises when information comes from a single source and points out the potential pitfalls of having too much conflicting information. 
However, the underlying message is to question the apparent certainty of anyone who only has one source of information. The man with one watch has no way to identify error or uncertainty.
https://rednafi.com/lore/

Faker: Generate Realistic Test Data in Python with One Line of Code
this lib got me into momentary trouble years ago...
https://codecut.ai/faker-python-generate-test-data/

GraalPy is a Python language implementation, built on top of GraalVM. It is a Python 3 compliant runtime, implemented using the Truffle framework, and can be used to embed Python code in Java applications.
noticed that this is installable via uv, wondered what it was; apparently it's the new ironPython
https://docs.oracle.com/en/graalvm/jdk/23/docs/reference-manual/graalpy/
GraalVM: Write efficient, more secure, and highly-scalable cloud native Java applications
https://www.graalvm.org

logging libraries: Logfire, Loguru, or just Python's built-in logging?
the reddit thread oscillates btw stick with builtin logging if possible vs ooh library X is really awesome 
maybe a future opener or talk will explore how to implement the most popular 3rd party lib features in the builtin logging module.  volunteers welcome  : )
https://old.reddit.com/r/Python/comments/1o4uyrv/advice_on_logging_libraries_logfire_loguru_or/

loguru
https://github.com/Delgan/loguru
not sure what this means, wanna look into it: not multiprocess-safe, but you can enqueue the messages to ensure logs integrity.

logfire
Logfire is built on OpenTelemetry, and supports monitoring your application from any language, with particularly great support for Python
https://logfire.pydantic.dev/docs/why/

Rich is a Python library for writing rich text (with color and style) to the terminal, and for displaying advanced content such as tables, markdown, and syntax highlighted code.
from the textual guy; but this is cool:
To check if Rich was installed correctly, and to see a little of what Rich can do, run the following from the command line:
python -m rich
https://rich.readthedocs.io/en/stable/introduction.html

__init__ vs __main__
__init__.py is run when you import a package into a running python program.
__main__.py is run as '__main__' when you run a package as the main program.
https://stackoverflow.com/questions/31327762/what-is-the-difference-between-init-py-and-main-py#31329365

lazy imports
https://pythontest.com/python-lazy-imports-now/
eg Speeding up test collection with lazy imports during testing
duplicate imports are no-ops
python -X importtime to find slow imports
$ python -X importtime mycode.py 2>&1 | sort -r | head -10              
two() called
somelib imported
one() called
import time: self [us] | cumulative | imported package
import time:   1002021 |    1002021 | somelib
import time:      1206 |       1206 |     _collections_abc
import time:      1095 |       4836 | site
import time:       974 |       1882 | _frozen_importlib_external
import time:       897 |       2327 | encodings
import time:       718 |       2555 |   os