Introducing runtime_introspect v0.2.0 !

github.com/neutrinoceros/runti

This versions introduces high level, portable APIs like

- FeatureSet.supports("free-threading")
- FeatureSet.supports("JIT")
- FeatureSet.supports("py-limited-api")

making it possible to inspect availability for specific features at runtime with *very* little code (turns out solving this problem in the general case is complicated enough that I only want to do it once).

For instance

from runtime_introspect import runtime_feature_set
fs = runtime_feature_set()
if fs.supports("free-threading"):
... # cool multi-threading stuff
else:
... # less cool, single threading stuff

every non-EOL version of (including unstable ones, ) are supported.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://ieji.de/users/neutrinoceros/statuses/115485582358813910 on your instance and quote it. (Note that quoting is not supported in Mastodon.)