murata100

Results 6 comments of murata100

yes preparation ------------ - sample.py ``` python from abc import ABC, abstractmethod class Sample1(ABC): ''' Sample class 1 ''' @abstractmethod def sample_method_abstract(self): ''' sample abstract ''' pass def sample_method_implement(self): '''...

I edited the above comment and wrote the actual and expected.

Thank you @byrman I saw the definition of the SQLModel class metadata is a class variable `metadata: ClassVar[MetaData]` Is the only way to handle multiple metadata is to extend the...

For now, I use it [with alembic](https://alembic.sqlalchemy.org/en/latest/autogenerate.html?highlight=target_metadata#autogenerating-multiple-metadata-collections). I don't use `create_all` in production. env.py ``` python from myapp import mymodel target_metadata = { 'engine1': mymodel.metadata1, 'engine2': mymodel.metadata2 } ``` Probably,...

Here's why I need disabled_algorithms: [RSA key auth failing from paramiko 2.9.x client to dropbear server](https://github.com/paramiko/paramiko/issues/1961)

I tried this https://ipython.readthedocs.io/en/stable/api/generated/IPython.html#IPython.start_ipython ``` import os, sys, threading, IPython if os.isatty(sys.stdin.fileno()) and os.isatty(sys.stdout.fileno()): threading.Thread(target=IPython.start_ipython).start() # uvicorn.run only works in main thread uvicorn.run( # ... ``` in ipython shell. example...