arthurhenrique / cookiecutter-fastapi Goto Github PK
View Code? Open in Web Editor NEWCookiecutter template for FastAPI projects using: Machine Learning, Poetry, Github Actions and Pytests
License: MIT License
Cookiecutter template for FastAPI projects using: Machine Learning, Poetry, Github Actions and Pytests
License: MIT License
I build project next command
docker-compose build --no-cache
And get error
2.583 • Installing stack-data (0.6.2)
8.716
8.716 ChefBuildError
8.716
8.716 Backend 'setuptools.build_meta:__legacy__' is not available.
8.716
8.716 at /usr/local/lib/python3.12/site-packages/poetry/installation/chef.py:147 in _prepare
8.719 143│
8.719 144│ error = ChefBuildError("\n\n".join(message_parts))
8.719 145│
8.719 146│ if error is not None:
8.719 → 147│ raise error from None
8.719 148│
8.720 149│ return path
8.720 150│
8.720 151│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
8.720
8.720 Note: This error originates from the build backend, and is likely not a problem with poetry but with numpy (1.24.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "numpy (==1.24.1)"'.
8.720
------
failed to solve: process "/bin/sh -c if [ \"$DEV\" = \"true\" ] ; then poetry install --with dev ; else poetry install --only main ; fi" did not complete successfully: exit code: 1
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
{{cookiecutter.project_slug}}/docker-compose.yml
{{cookiecutter.project_slug}}/Dockerfile
python 3.11.0
.github/workflows/ci.yaml
actions/checkout v4
actions/cache v3
actions/setup-python v4
{{cookiecutter.project_slug}}/.github/workflows/ci.yaml
actions/checkout v3
actions/setup-python v3
{{cookiecutter.project_slug}}/pyproject.toml
poetry >=0.12
{{cookiecutter.project_slug}}/pyproject.toml
python ^3.9
fastapi ^0.103.0
uvicorn 0.23.2
pydantic ^2.0.0
requests ^2.22.0
loguru ^0.7.0
joblib ^1.2.0
scikit-learn ^1.2.0
pytest ^7.2
autopep8 ^2.0.0
ipdb ^0.13.0
pylint ^3.0.0
mangum ^0.17.0
| ModuleNotFoundError: No module named 'app'
Hi there,
I hope this message finds you well. I wanted to reach out and discuss a feature request that I believe would greatly enhance the functionality of Django Cookie Cutter.
Is your feature request related to a problem? Please describe.
I've encountered a recurring issue while working with Django Cookie Cutter. It currently lacks support for Django Tenant, which makes implementing multi-tenancy in Django quite challenging and frustrating.
Describe the solution you'd like
I would like to propose the addition of native support for Django Tenant in the Django Cookie Cutter template. It would be fantastic if the template could include all the necessary packages, configurations, and templates to seamlessly integrate Django Tenant into the project structure generated by Cookie Cutter.
Describe alternatives you've considered
In terms of alternatives, I have thought about manually integrating Django Tenant into the project after generating it with Django Cookie Cutter. However, this approach is time-consuming, error-prone, and adds an extra layer of complexity. It would be far more convenient and reliable to have native support for Django Tenant directly within the Cookie Cutter template.
Additional context
To provide some additional context, please consider the following points:
Thank you very much for considering this feature request. I truly appreciate your time and attention to this matter. Please let me know if there's any further information I can provide.
Transform on cookiecutter template, in order to use cookiecutter cli, like:
cookiecutter https://github.com/arthurhenrique/fastapi-boilerplate
Can you please add database managment support with migrations?
Error message:
Unable to create file '.github/workflows/ci.yaml'
Error message: 'matrix' is undefined
Context: {
"cookiecutter": {
"_extensions": [
"jinja2_time.TimeExtension"
],
"_template": "gh:arthurhenrique/cookiecutter-fastapi",
"email": "Your address email ([email protected])",
"full_name": "Your name",
"machine_learn_model_name": "model.pkl",
"machine_learn_model_path": "./ml/model/",
"project_name": "Name of the project",
"project_short_description": "A short description of the project",
"project_slug": "name-of-the-project",
"release_date": "2022-06-17",
"version": "0.1.0"
}
}
Steps to reproduce:
cookiecutter gh:arthurhenrique/cookiecutter-fastapi
You've downloaded /home/maciej/snap/cookiecutter/1/.cookiecutters/cookiecutter-fastapi before. Is it okay to delete and re-download it? [yes]: yes
project_name [Name of the project]:
project_slug [name-of-the-project]:
project_short_description [A short description of the project]:
machine_learn_model_path [./ml/model/]:
machine_learn_model_name [model.pkl]:
full_name [Your name]:
email [Your address email ([email protected])]:
release_date [2022-06-17]:
version [0.1.0]:
Enviroment:
Ubuntu 20.04.4 LTS
Python 3.10.4 (via pyenv 2.3.0-14-g0930533)
Cookiecutter 1.6.0 from /snap/cookiecutter/1/lib/python3.6/site-packages (Python 3.6)
Creation of project inside venv
Hello, thanks for putting this together :)
Sorry if there's a license somewhere, but I wasn't able to find one.
Would you be up for adding a LICENSE
file? For purely selfish reasons, I'd appreciate if it were permissive (e.g. Apache, MIT), but GPL would be better than nothing :)
Thanks again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.