$ pip install fastapi-code-generator Usage Thefastapi-code-generatorcommand: Usage: fastapi-codegen [OPTIONS] Options: -i, --input FILENAME [required] -o, --output PATH [required] -t, --template-dir PATH -m, --model-file Specify generated model file path + name, if not default to mod...
Quick fix: In the source code/python3.9/site-packages/datamodel_code_generator/format.py: I have changed manually in line 45 path = root / "pyproject.toml" to path = root[0] / "pyproject.toml" The project was generated automatically after this change. ...