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!

Photo Gallery

implementing --version with importlib.metadata (intermediate) anthony explains #041
using the python __import__ builtin correctly (intermediate) anthony explains #064
my python project setup (+ all tools) (intermediate) anthony explains #396
python: explicit relative imports (intermediate) anthony explains #298
a python plugin system via entrypoints (intermediate) anthony explains #128
how I made my import sorter 7x faster (intermediate) anthony explains #457
recursively import python modules (intermediate) anthony explains #372
NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561
python star imports (beginner - intermediate) anthony explains #061
importing non-module python files (intermediate) anthony explains #309
how I sped up python by 20ms (intermediate) anthony explains #417
I don't need `__init__.py`? PEP 420 and namespace packages (intermediate) anthony explains #420
View Detailed Profile
implementing --version with importlib.metadata (intermediate) anthony explains #041

implementing --version with importlib.metadata (intermediate) anthony explains #041

Today I show how to

using the python __import__ builtin correctly (intermediate) anthony explains #064

using the python __import__ builtin correctly (intermediate) anthony explains #064

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 ...

my python project setup (+ all tools) (intermediate) anthony explains #396

my python project setup (+ all tools) (intermediate) anthony explains #396

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 ...

python: explicit relative imports (intermediate) anthony explains #298

python: explicit relative imports (intermediate) anthony explains #298

today I talk about explicit relative imports in python -- how they work, what their syntax is, and why you might want to / might want ...

a python plugin system via entrypoints (intermediate) anthony explains #128

a python plugin system via entrypoints (intermediate) anthony explains #128

today I show how to use

how I made my import sorter 7x faster (intermediate) anthony explains #457

how I made my import sorter 7x faster (intermediate) anthony explains #457

and I actually went a bit further after recording! (it now can reorder all of pre-commit faster than `isort` can import!) - pretty python ...

recursively import python modules (intermediate) anthony explains #372

recursively import python modules (intermediate) anthony explains #372

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__` ...

NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561

NEW generic / alias syntax for python 3.12 (PEP 695) (intermediate) anthony explains #561

today we go over the new syntax added in python 3.12 for generics and type aliases! - what's new in python 3.12?

python star imports (beginner - intermediate) anthony explains #061

python star imports (beginner - intermediate) anthony explains #061

today I talk about star imports in python and why you shouldn't use them! playlist: ...

importing non-module python files (intermediate) anthony explains #309

importing non-module python files (intermediate) anthony explains #309

today I show how to import non-modules in python -- either with invalid module names or files which aren't .py at all! playlist: ...

how I sped up python by 20ms (intermediate) anthony explains #417

how I sped up python by 20ms (intermediate) anthony explains #417

today I show the tools and processes I used to improve python startup in virtualenvs! - pretty python profiling: ...

I don't need `__init__.py`? PEP 420 and namespace packages (intermediate) anthony explains #420

I don't need `__init__.py`? PEP 420 and namespace packages (intermediate) anthony explains #420

today I talk about namespace packages, what PEP 420 is, and why I don't use namespace packages playlist: ...

mypy's "implicit optional" (and why I disable it) (intermediate) anthony explains #147

mypy's "implicit optional" (and why I disable it) (intermediate) anthony explains #147

today we talk about mypy's "implicit optional" and why I think it's better to not use it! - what is Optional: ...

python packaging: data files (intermediate) anthony explains #071

python packaging: data files (intermediate) anthony explains #071

today I talk about packaging data / build files for python packages! This covers MANIFEST.in, include_package_data, ...

from imports aren't faster! (beginner - intermediate) anthony explains #398

from imports aren't faster! (beginner - intermediate) anthony explains #398

I often hear the assertion that python from imports are faster because they don't need to import the whole module (or that they ...

python packaging: basic setup.py and declarative metadata (intermediate) anthony explains #057

python packaging: basic setup.py and declarative metadata (intermediate) anthony explains #057

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 ...

packaging python typed code (intermediate) anthony explains #252

packaging python typed code (intermediate) anthony explains #252

today I talk about how to package up typed code -- either inline types or typing stubs and distribute it via pypi! - intro to typing: ...

python Generics (intermediate) anthony explains #430

python Generics (intermediate) anthony explains #430

today we introduce another typing / mypy concept: generics! I show a few examples of how to write generic functions and generic ...

sort your imports! (beginner - intermediate) anthony explains #085

sort your imports! (beginner - intermediate) anthony explains #085

today I talk about how and why I sort my imports in python and the tooling I use to do it!

virtualenv vs. venv (beginner - intermediate) anthony explains #040

virtualenv vs. venv (beginner - intermediate) anthony explains #040

today I