Media Summary: today I talk about the __import__ builtin in python and one example of how you might use it (as well as a tricky tip that you almost ... today I go over all the tools I use to set up my projects, as well as the differences between 1-file libraries, multi-file libraries, and ... today I talk about explicit relative imports in python -- how they work, what their syntax is, and why you might want to / might want ...
Implementing Version With Importlib Metadata Intermediate Anthony Explains 041 - Detailed Analysis & Overview
today I talk about the __import__ builtin in python and one example of how you might use it (as well as a tricky tip that you almost ... today I go over all the tools I use to set up my projects, as well as the differences between 1-file libraries, multi-file libraries, and ... today I talk about explicit relative imports in python -- how they work, what their syntax is, and why you might want to / might want ... and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) - pretty python ... today I show how to recursively import all modules in a directory and also show a few use cases I have for this! - the `__import__` ... today we go over the new syntax added in python 3.12 for generics and type aliases! - what's new in python 3.12?
today I talk about star imports in python and why you shouldn't use them! playlist: ... today I show how to import non-modules in python -- either with invalid module names or files which aren't .py at all! playlist: ... today I show the tools and processes I used to improve python startup in virtualenvs! - pretty python profiling: ... today I talk about namespace packages, what PEP 420 is, and why I don't use namespace packages playlist: ... today we talk about mypy's "implicit optional" and why I think it's better to not use it! - what is Optional: ... today I talk about packaging data / build files for python packages! This covers MANIFEST.in, include_package_data, ...
I often hear the assertion that python from imports are faster because they don't need to import the whole module (or that they ... today I go over a basic setup.py for packaging a python package. I then show a few tools you can use to migrate from classic ... today I talk about how to package up typed code -- either inline types or typing stubs and distribute it via pypi! - intro to typing: ... today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ... today I talk about how and why I sort my imports in python and the tooling I use to do it!