A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
class DatabaseErrorWrapper: | |
""" | |
Context manager and decorator that reraises backend-specific database | |
exceptions using Django's common wrappers. | |
""" | |
def __init__(self, wrapper): | |
""" | |
wrapper is a database wrapper. |
class _SessionRequestContextManager: | |
__slots__ = ("_coro", "_resp", "_session") | |
def __init__( | |
self, | |
coro: Coroutine["asyncio.Future[Any]", None, ClientResponse], | |
session: ClientSession, | |
) -> None: | |
self._coro = coro |
Go to the Ubuntu latest version in WSL:
sudo apt-get -y update
sudo apt-get -y install podman
curl -sSL install.astronomer.io | sudo bash -s
cd /home/
ls
mkdir astronomer
cd astronomer/
podman machine init