falco-cli 0.6.4__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {falco_cli-0.6.4 → falco_cli-0.7.0}/PKG-INFO +2 -1
- {falco_cli-0.6.4 → falco_cli-0.7.0}/README.md +1 -0
- falco_cli-0.7.0/docs/the_cli/usage.rst +99 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/__about__.py +1 -1
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/crud/python/views.py.jinja +4 -4
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/.git +0 -1
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/.github/workflows/ci.yml +0 -25
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/.github/workflows/pre-commit-auto-update.yml +0 -47
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/LICENSE +0 -21
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/README.md +0 -10
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/cookiecutter.json +0 -5
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.env.template +0 -15
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.github/dependabot.yml +0 -11
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.github/workflows/ci.yml +0 -79
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.gitignore +0 -132
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.pre-commit-config.yaml +0 -56
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/README.md +0 -58
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/config/asgi.py +0 -7
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/config/settings.py +0 -215
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/config/urls.py +0 -19
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/config/wsgi.py +0 -7
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/deploy/Dockerfile +0 -38
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/deploy/entrypoint.sh +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/deploy/gunicorn.conf.py +0 -13
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/manage.py +0 -24
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/playground.ipynb +0 -41
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/pyproject.toml +0 -139
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/tests/test_assert_true.py +0 -2
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/core/apps.py +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/static/vendors/htmx/htmx.min.js +0 -1
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/templates/base.html +0 -26
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/templates/home.html +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/admin.py +0 -62
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/apps.py +0 -5
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/forms.py +0 -12
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/migrations/0001_initial.py +0 -80
- falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/models.py +0 -53
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/.git +0 -1
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/.github/workflows/ci.yml +0 -25
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/.github/workflows/pre-commit-auto-update.yml +0 -47
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/LICENSE +0 -21
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/README.md +0 -15
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/cookiecutter.json +0 -8
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/.env.template +0 -15
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/.github/dependabot.yml +0 -11
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/.github/workflows/ci.yml +0 -79
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/.gitignore +0 -132
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/.pre-commit-config.yaml +0 -56
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/README.md +0 -58
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/config/asgi.py +0 -7
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/config/settings.py +0 -215
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/config/urls.py +0 -19
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/config/wsgi.py +0 -7
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/deploy/Dockerfile +0 -36
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/deploy/entrypoint.sh +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/deploy/gunicorn.conf.py +0 -13
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/manage.py +0 -24
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/playground.ipynb +0 -41
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/pyproject.toml +0 -138
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/tests/test_assert_true.py +0 -2
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/core/apps.py +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/static/vendors/htmx/htmx.min.js +0 -1
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/templates/base.html +0 -27
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/templates/home.html +0 -6
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/__init__.py +0 -0
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/admin.py +0 -62
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/apps.py +0 -5
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/forms.py +0 -12
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/migrations/0001_initial.py +0 -80
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/migrations/__init__.py +0 -0
- falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/models.py +0 -53
- falco_cli-0.6.4/demo/config/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/core/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/orders/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/orders/migrations/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/products/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/products/migrations/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/users/__init__.py +0 -0
- falco_cli-0.6.4/demo/demo/users/migrations/__init__.py +0 -0
- falco_cli-0.6.4/docs/the_cli/usage.rst +0 -97
- falco_cli-0.6.4/src/falco/crud/html/create.html +0 -20
- falco_cli-0.6.4/src/falco/crud/html/detail.html +0 -29
- falco_cli-0.6.4/src/falco/crud/html/list.html +0 -131
- falco_cli-0.6.4/src/falco/crud/html/update.html +0 -26
- falco_cli-0.6.4/tests/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.all-contributorsrc +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.editorconfig +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.github/workflows/documentation.yml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.github/workflows/pre-commit-auto-update.yml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.github/workflows/publish.yml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.gitignore +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.gitmodules +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.pre-commit-config.yaml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/.vscode/settings.json +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/CODE_OF_CONDUCT.md +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/LICENSE +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/all-contributorsrc +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/assets/falco-logo.svg +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }} → falco_cli-0.7.0/demo}/config/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/config/asgi.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/config/settings.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/config/urls.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/config/wsgi.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/tests → falco_cli-0.7.0/demo/demo}/__init__.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }} → falco_cli-0.7.0/demo/demo/core}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/core/apps.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/core/types.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/core/utils.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/core → falco_cli-0.7.0/demo/demo/orders}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/orders/apps.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/orders/migrations/0001_initial.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users → falco_cli-0.7.0/demo/demo/orders/migrations}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/orders/models.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/users/migrations → falco_cli-0.7.0/demo/demo/products}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/admin.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/apps.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/forms.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/migrations/0001_initial.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/config → falco_cli-0.7.0/demo/demo/products/migrations}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/models.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/tests.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/urls.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/products/views.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/tests → falco_cli-0.7.0/demo/demo/users}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/users/admin.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/users/apps.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/users/migrations/0001_initial.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }} → falco_cli-0.7.0/demo/demo/users/migrations}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/demo/users/models.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/manage.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/pyproject.toml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/requirements.txt +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/templates/base.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/templates/products/product_create.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/templates/products/product_detail.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/templates/products/product_list.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/demo/templates/products/product_update.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/.rich-codex.yml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/Makefile +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/_static/custom.css +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/_templates/partials/globaltoc-above.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/changelog.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/codeofconduct.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/conf.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/contributing.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/avoiding_god_models.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/database_tips.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/deployment.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/dynamic_model_schema.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/index.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/interactive_user_interfaces.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/logging_and_monitoring.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/multitenancy.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/optimizing_database_access.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/permissions_and_authorization.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/realtime.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/running_project_in_a_container.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/task_queues_and_schedulers.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/tips_and_extra.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/use_sqlite_in_production.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/writing_async_code.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/writing_documentation.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/guides/writing_tests.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/images/deployment.png +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/images/logo_with_text.svg +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/images/project-tree.svg +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/images/task_queue.png +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/index.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/install.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/license.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/make.bat +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/crud.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/htmx.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/index.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/migrations.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/setup_admin.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/start_app.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/start_project.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/sync_dotenv.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/docs/the_cli/work.rst +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/pyproject.toml +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/scripts/project_tree.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/scripts/update_readme_guides.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/__main__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/checks.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/crud/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/crud/install_crud_utils.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/crud/model_crud.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/crud/utils.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/htmx.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/htmx_extension.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/reset_migrations.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/rm_migrations.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/setup_admin.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/start_app.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/start_project.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/sync_dotenv.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/commands/work.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/blueprints → falco_cli-0.7.0/src/falco/crud/html}/create.html +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/blueprints → falco_cli-0.7.0/src/falco/crud/html}/detail.html +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/blueprints → falco_cli-0.7.0/src/falco/crud/html}/list.html +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/blueprints → falco_cli-0.7.0/src/falco/crud/html}/update.html +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/crud/python/forms.py.jinja +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/crud/utils/types.py.jinja +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/crud/utils/utils.py.jinja +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/src/falco/utils.py +0 -0
- {falco_cli-0.6.4/blueprints/falco_blueprint_basic_bootstrap/{{ cookiecutter.project_name }}/{{ cookiecutter.project_name }}/core → falco_cli-0.7.0/tests}/__init__.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_crud.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_htmx.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_htmx_extension.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_install_crud_utils.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_reset_migrations.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_rm_migrations.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_setup_admin.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_start_app.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_start_project.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/commands/test_sync_dotenv.py +0 -0
- {falco_cli-0.6.4 → falco_cli-0.7.0}/tests/conftest.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: falco-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Enhance your Django developer experience: CLI and Guides for the Modern Developer.
|
|
5
5
|
Project-URL: Homepage, https://falco.oluwatobi.dev/
|
|
6
6
|
Project-URL: Documentation, https://falco.oluwatobi.dev/
|
|
@@ -68,6 +68,7 @@ Falco is a Django-centric toolkit designed to enhance the development experience
|
|
|
68
68
|
|
|
69
69
|
This is a set of commands to help you throughout the lifecycle of your django project development, from bootstrapping a new project using modern tools like [htmx](https://htmx.org), [hatch](https://github.com/pypa/hatch), [tailwindcss](https://tailwindcss.com/), to generating CRUD views for your models and a few utilities that might help during deployment.
|
|
70
70
|
|
|
71
|
+
For a brief introduction to the user experience of the CLI, visit this [page](https://falco.oluwatobi.dev/the_cli/usage.html).
|
|
71
72
|
<!-- [](https://falco.oluwatobi.dev/the_cli/) -->
|
|
72
73
|
|
|
73
74
|
|
|
@@ -27,6 +27,7 @@ Falco is a Django-centric toolkit designed to enhance the development experience
|
|
|
27
27
|
|
|
28
28
|
This is a set of commands to help you throughout the lifecycle of your django project development, from bootstrapping a new project using modern tools like [htmx](https://htmx.org), [hatch](https://github.com/pypa/hatch), [tailwindcss](https://tailwindcss.com/), to generating CRUD views for your models and a few utilities that might help during deployment.
|
|
29
29
|
|
|
30
|
+
For a brief introduction to the user experience of the CLI, visit this [page](https://falco.oluwatobi.dev/the_cli/usage.html).
|
|
30
31
|
<!-- [](https://falco.oluwatobi.dev/the_cli/) -->
|
|
31
32
|
|
|
32
33
|
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
:image: https://raw.githubusercontent.com/Tobi-De/falco/main/assets/falco-logo.svg
|
|
2
|
+
:description: A demonstration of the essential workflow of the Falco CLI, from generating a new project to creating CRUD views for a model.
|
|
3
|
+
|
|
4
|
+
Usage / Overview
|
|
5
|
+
================
|
|
6
|
+
|
|
7
|
+
This page outlines the optimal workflow for the initial setup of a project using the Falco CLI. This includes creating a new project,
|
|
8
|
+
initializing a Django application, adding a model, and generating CRUD views for the model
|
|
9
|
+
This workflow represents the expected experience for a new Falco CLI user. If you encounter any issues reproducing this workflow,
|
|
10
|
+
please create a `new issue <https://github.com/Tobi-De/falco/issues/new>`_.
|
|
11
|
+
|
|
12
|
+
Let's create a new project called **myjourney**. This will be a journaling app and its main app will be **entries**.
|
|
13
|
+
Each **entry** represents a journal entry within the **myjourney** app.
|
|
14
|
+
|
|
15
|
+
**1. Generate a new project and cd (change directory) into it**
|
|
16
|
+
|
|
17
|
+
.. code-block:: bash
|
|
18
|
+
|
|
19
|
+
falco start-project myjourney && cd myjourney
|
|
20
|
+
|
|
21
|
+
**2. Create a new virtual environment for the project and install dependencies**
|
|
22
|
+
|
|
23
|
+
.. code-block:: bash
|
|
24
|
+
|
|
25
|
+
hatch shell
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
**3. Initialize git and install pre-commit hooks**
|
|
29
|
+
|
|
30
|
+
.. code-block:: bash
|
|
31
|
+
|
|
32
|
+
git init && pre-commit install
|
|
33
|
+
|
|
34
|
+
If necessary, adjust the python_version value in the ``.pre-commit-config.yaml`` file.
|
|
35
|
+
|
|
36
|
+
**4. Create a new .env file**
|
|
37
|
+
|
|
38
|
+
.. code-block:: bash
|
|
39
|
+
|
|
40
|
+
falco sync-dotenv
|
|
41
|
+
|
|
42
|
+
**5. Fill in some values for the admin user**
|
|
43
|
+
|
|
44
|
+
.. code-block:: text
|
|
45
|
+
:caption: .env
|
|
46
|
+
|
|
47
|
+
DJANGO_SUPERUSER_EMAIL=admin@mail.com
|
|
48
|
+
DJANGO_SUPERUSER_PASSWORD=admin
|
|
49
|
+
|
|
50
|
+
**6. Migrate, and create the admin user**
|
|
51
|
+
|
|
52
|
+
.. code-block:: bash
|
|
53
|
+
|
|
54
|
+
hatch run migrate && falco setup-admin
|
|
55
|
+
|
|
56
|
+
**7. Create the new app, entries**
|
|
57
|
+
|
|
58
|
+
.. code-block:: bash
|
|
59
|
+
|
|
60
|
+
hatch run start-app entries && falco start-app entries
|
|
61
|
+
|
|
62
|
+
**8. Add some fields to your Entry model**
|
|
63
|
+
|
|
64
|
+
.. code-block:: python
|
|
65
|
+
|
|
66
|
+
class Entry(TimeStampedModel):
|
|
67
|
+
# the TimeStampedModel adds the fields `created` and `modified` so we don't need to add them
|
|
68
|
+
title = models.CharField(max_length=255)
|
|
69
|
+
content = models.TextField()
|
|
70
|
+
created_by = models.ForeignKey("users.User", on_delete=models.CASCADE)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
**9. Make migrations for the new model and run them**
|
|
74
|
+
|
|
75
|
+
.. code-block:: bash
|
|
76
|
+
|
|
77
|
+
hatch run makemigrations && hatch run migrate**
|
|
78
|
+
|
|
79
|
+
**10. Generate CRUD views for the Entry model**
|
|
80
|
+
|
|
81
|
+
.. code-block:: bash
|
|
82
|
+
|
|
83
|
+
falco crud entries.entry --entry-point --skip-git-check
|
|
84
|
+
|
|
85
|
+
**11. Run the project**
|
|
86
|
+
|
|
87
|
+
.. code-block:: bash
|
|
88
|
+
|
|
89
|
+
falco work
|
|
90
|
+
|
|
91
|
+
Now, check out http://127.0.0.1:8000/entries to see your running app.
|
|
92
|
+
|
|
93
|
+
This process currently requires 11 commands. Considering the outcome, it's not too shabby! However, I'm confident there's still plenty of room for improvement.
|
|
94
|
+
If you have any suggestions on how to improve this workflow, feel free to open a discussion at https://github.com/Tobi-De/falco/discussions.
|
|
95
|
+
|
|
96
|
+
.. todo::
|
|
97
|
+
|
|
98
|
+
Add screenshots (or gif) or a walkthrough of the process and the resulting running app here.
|
|
99
|
+
|
|
@@ -30,7 +30,7 @@ def {{model_name|lower}}_list(request: AuthenticatedHttpRequest):
|
|
|
30
30
|
def {{model_name|lower}}_list(request: HttpRequest):
|
|
31
31
|
{% endif %}
|
|
32
32
|
{{model_name|lower}}s = {{model_name}}.objects.order_by("id")
|
|
33
|
-
template_name = "{{
|
|
33
|
+
template_name = "{{app_label}}/{{model_name|lower}}_list.html#table" if request.htmx else "{{app_label}}/{{model_name|lower}}_list.html"
|
|
34
34
|
return TemplateResponse(
|
|
35
35
|
request,
|
|
36
36
|
template_name,
|
|
@@ -46,7 +46,7 @@ def {{model_name|lower}}_detail(request: HttpRequest, pk: int):
|
|
|
46
46
|
{{model_name|lower}} = get_object_or_404({{model_name}}.objects, pk=pk)
|
|
47
47
|
return TemplateResponse(
|
|
48
48
|
request,
|
|
49
|
-
"{{
|
|
49
|
+
"{{app_label}}/{{model_name|lower}}_detail.html",
|
|
50
50
|
context={"{{model_name|lower}}": {{model_name|lower}}},
|
|
51
51
|
)
|
|
52
52
|
|
|
@@ -62,7 +62,7 @@ def {{model_name|lower}}_create(request: HttpRequest):
|
|
|
62
62
|
return redirect("{{app_label}}:{{model_name|lower}}_list")
|
|
63
63
|
return TemplateResponse(
|
|
64
64
|
request,
|
|
65
|
-
"{{
|
|
65
|
+
"{{app_label}}/{{model_name|lower}}_create.html",
|
|
66
66
|
context={"form": form},
|
|
67
67
|
)
|
|
68
68
|
|
|
@@ -79,7 +79,7 @@ def {{model_name|lower}}_update(request: HttpRequest, pk: int):
|
|
|
79
79
|
return redirect("{{app_label}}:{{model_name|lower}}_detail", pk=pk)
|
|
80
80
|
return TemplateResponse(
|
|
81
81
|
request,
|
|
82
|
-
"{{
|
|
82
|
+
"{{app_label}}/{{model_name|lower}}_update.html",
|
|
83
83
|
context={"{{model_name|lower}}": {{model_name|lower}}, "form": form},
|
|
84
84
|
)
|
|
85
85
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
gitdir: ../../.git/modules/blueprints/falco_blueprint_basic
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches: ['master', 'main']
|
|
6
|
-
|
|
7
|
-
push:
|
|
8
|
-
branches: ['master', 'main']
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
test:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
|
-
steps:
|
|
15
|
-
- name: Set up Python
|
|
16
|
-
uses: actions/setup-python@v4
|
|
17
|
-
with:
|
|
18
|
-
python-version: '3.11'
|
|
19
|
-
|
|
20
|
-
- name: Install falco
|
|
21
|
-
run: |
|
|
22
|
-
pip install falco-cli
|
|
23
|
-
|
|
24
|
-
- name: Generate a project
|
|
25
|
-
run: falco start-project test-project
|
falco_cli-0.6.4/blueprints/falco_blueprint_basic/.github/workflows/pre-commit-auto-update.yml
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Run pre-commit autoupdate every day at midnight
|
|
2
|
-
# and create a pull request if any changes
|
|
3
|
-
|
|
4
|
-
name: Pre-commit auto-update
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
schedule:
|
|
8
|
-
- cron: "15 2 * * *"
|
|
9
|
-
workflow_dispatch: # to trigger manually
|
|
10
|
-
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
auto-update:
|
|
16
|
-
# Disables this workflow from running in a repository that is not part of the indicated organization/user
|
|
17
|
-
if: github.repository_owner == 'Tobi-De'
|
|
18
|
-
permissions:
|
|
19
|
-
contents: write # for peter-evans/create-pull-request to create branch
|
|
20
|
-
pull-requests: write # for peter-evans/create-pull-request to create a PR
|
|
21
|
-
|
|
22
|
-
runs-on: ubuntu-latest
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v4
|
|
25
|
-
- uses: actions/setup-python@v4
|
|
26
|
-
with:
|
|
27
|
-
python-version: "3.11"
|
|
28
|
-
|
|
29
|
-
- name: Install pre-commit
|
|
30
|
-
run: pip install pre-commit
|
|
31
|
-
|
|
32
|
-
- name: Autoupdate template
|
|
33
|
-
run: pre-commit autoupdate
|
|
34
|
-
|
|
35
|
-
- name: Autoupdate generated projects
|
|
36
|
-
working-directory: "{{ cookiecutter.project_name }}"
|
|
37
|
-
run: pre-commit autoupdate
|
|
38
|
-
|
|
39
|
-
- name: Create Pull Request
|
|
40
|
-
uses: peter-evans/create-pull-request@v5
|
|
41
|
-
with:
|
|
42
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
43
|
-
branch: update/pre-commit-autoupdate
|
|
44
|
-
title: Auto-update pre-commit hooks
|
|
45
|
-
commit-message: Auto-update pre-commit hooks
|
|
46
|
-
body: Update versions of tools in pre-commit configs to latest version
|
|
47
|
-
labels: update
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Tobi DEGNON
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# falco blueprint basic
|
|
2
|
-
|
|
3
|
-
[](https://github.com/Tobi-De/falco_blueprint_basic/actions/workflows/ci.yml)
|
|
4
|
-
|
|
5
|
-
Project blueprint for https://github.com/Tobi-De/falco, run with:
|
|
6
|
-
|
|
7
|
-
```shell
|
|
8
|
-
pip install falco-cli
|
|
9
|
-
falco start-project my_awesome_project
|
|
10
|
-
```
|
falco_cli-0.6.4/blueprints/falco_blueprint_basic/{{ cookiecutter.project_name }}/.env.template
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
DJANGO_SECRET_KEY=
|
|
2
|
-
DJANGO_ENV=
|
|
3
|
-
DJANGO_DEBUG=
|
|
4
|
-
DJANGO_ALLOWED_HOSTS=
|
|
5
|
-
DATABASE_URL=
|
|
6
|
-
|
|
7
|
-
ADMIN_URL=
|
|
8
|
-
DJANGO_CSRF_TRUSTED_ORIGINS=
|
|
9
|
-
DJANGO_AWS_ACCESS_KEY_ID=
|
|
10
|
-
DJANGO_AWS_SECRET_ACCESS_KEY=
|
|
11
|
-
DJANGO_AWS_S3_REGION_NAME=
|
|
12
|
-
SENTRY_DSN=
|
|
13
|
-
|
|
14
|
-
DJANGO_SUPERUSER_EMAIL=
|
|
15
|
-
DJANGO_SUPERUSER_PASSWORD=
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
# To get started with Dependabot version updates, you'll need to specify which
|
|
2
|
-
# package ecosystems to update and where the package manifests are located.
|
|
3
|
-
# Please see the documentation for all configuration options:
|
|
4
|
-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
5
|
-
|
|
6
|
-
version: 2
|
|
7
|
-
updates:
|
|
8
|
-
- package-ecosystem: "pip" # See documentation for possible values
|
|
9
|
-
directory: "/" # Location of package manifests
|
|
10
|
-
schedule:
|
|
11
|
-
interval: "weekly"
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
# Enable Buildkit and let compose use it to speed up image building
|
|
4
|
-
env:
|
|
5
|
-
DOCKER_BUILDKIT: 1
|
|
6
|
-
COMPOSE_DOCKER_CLI_BUILD: 1
|
|
7
|
-
|
|
8
|
-
on:
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: ['master', 'main']
|
|
11
|
-
paths-ignore: ['docs/**']
|
|
12
|
-
|
|
13
|
-
push:
|
|
14
|
-
branches: ['master', 'main']
|
|
15
|
-
paths-ignore: ['docs/**']
|
|
16
|
-
|
|
17
|
-
concurrency:
|
|
18
|
-
group: {% raw %}${{ github.head_ref || github.run_id }}{% endraw %}
|
|
19
|
-
cancel-in-progress: true
|
|
20
|
-
|
|
21
|
-
jobs:
|
|
22
|
-
linter:
|
|
23
|
-
runs-on: ubuntu-latest
|
|
24
|
-
|
|
25
|
-
steps:
|
|
26
|
-
- name: Checkout Code Repository
|
|
27
|
-
uses: actions/checkout@v4
|
|
28
|
-
|
|
29
|
-
- name: Set up Python
|
|
30
|
-
uses: actions/setup-python@v4
|
|
31
|
-
with:
|
|
32
|
-
python-version: '3.11'
|
|
33
|
-
- name: Install hatch
|
|
34
|
-
run: |
|
|
35
|
-
pip install hatch
|
|
36
|
-
- name: Create static analysis environment # this step creates the static analysis environment ahead of time to handle cases where hatch fmt fails in pre-commit
|
|
37
|
-
run: |
|
|
38
|
-
hatch fmt
|
|
39
|
-
- name: Add .env file # mypy fails without this
|
|
40
|
-
run: |
|
|
41
|
-
pip install falco-cli && falco sync-dotenv
|
|
42
|
-
- name: Run pre-commit
|
|
43
|
-
run: |
|
|
44
|
-
hatch run pre-commit run --all-files
|
|
45
|
-
|
|
46
|
-
# With no caching at all the entire ci process takes 4m 30s to complete!
|
|
47
|
-
pytest:
|
|
48
|
-
runs-on: ubuntu-latest
|
|
49
|
-
|
|
50
|
-
services:
|
|
51
|
-
postgres:
|
|
52
|
-
image: postgres:15
|
|
53
|
-
ports:
|
|
54
|
-
- 5432:5432
|
|
55
|
-
env:
|
|
56
|
-
POSTGRES_PASSWORD: postgres
|
|
57
|
-
|
|
58
|
-
env:
|
|
59
|
-
# postgres://user:password@host:port/database
|
|
60
|
-
DATABASE_URL: 'postgres://postgres:postgres@localhost:5432/postgres'
|
|
61
|
-
|
|
62
|
-
steps:
|
|
63
|
-
- name: Checkout Code Repository
|
|
64
|
-
uses: actions/checkout@v4
|
|
65
|
-
|
|
66
|
-
- name: Set up Python
|
|
67
|
-
uses: actions/setup-python@v4
|
|
68
|
-
with:
|
|
69
|
-
python-version: '3.11'
|
|
70
|
-
cache: pip
|
|
71
|
-
cache-dependency-path: |
|
|
72
|
-
pyproject.toml
|
|
73
|
-
|
|
74
|
-
- name: Install hatch
|
|
75
|
-
run: |
|
|
76
|
-
pip install hatch
|
|
77
|
-
|
|
78
|
-
- name: Test with pytest
|
|
79
|
-
run: hatch run test:test
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
pip-wheel-metadata/
|
|
24
|
-
share/python-wheels/
|
|
25
|
-
*.egg-info/
|
|
26
|
-
.installed.cfg
|
|
27
|
-
*.egg
|
|
28
|
-
MANIFEST
|
|
29
|
-
|
|
30
|
-
# PyInstaller
|
|
31
|
-
# Usually these files are written by a python script from a template
|
|
32
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
-
*.manifest
|
|
34
|
-
*.spec
|
|
35
|
-
|
|
36
|
-
# Installer logs
|
|
37
|
-
pip-log.txt
|
|
38
|
-
pip-delete-this-directory.txt
|
|
39
|
-
|
|
40
|
-
# Unit test / coverage reports
|
|
41
|
-
htmlcov/
|
|
42
|
-
.tox/
|
|
43
|
-
.nox/
|
|
44
|
-
.coverage
|
|
45
|
-
.coverage.*
|
|
46
|
-
.cache
|
|
47
|
-
nosetests.xml
|
|
48
|
-
coverage.xml
|
|
49
|
-
*.cover
|
|
50
|
-
*.py,cover
|
|
51
|
-
.hypothesis/
|
|
52
|
-
.pytest_cache/
|
|
53
|
-
|
|
54
|
-
# Translations
|
|
55
|
-
*.mo
|
|
56
|
-
*.pot
|
|
57
|
-
|
|
58
|
-
# Django stuff:
|
|
59
|
-
*.log
|
|
60
|
-
local_settings.py
|
|
61
|
-
db.sqlite3
|
|
62
|
-
db.sqlite3-journal
|
|
63
|
-
|
|
64
|
-
# Flask stuff:
|
|
65
|
-
instance/
|
|
66
|
-
.webassets-cache
|
|
67
|
-
|
|
68
|
-
# Scrapy stuff:
|
|
69
|
-
.scrapy
|
|
70
|
-
|
|
71
|
-
# Sphinx documentation
|
|
72
|
-
docs/_build/
|
|
73
|
-
|
|
74
|
-
# PyBuilder
|
|
75
|
-
target/
|
|
76
|
-
|
|
77
|
-
# Jupyter Notebook
|
|
78
|
-
.ipynb_checkpoints
|
|
79
|
-
|
|
80
|
-
# IPython
|
|
81
|
-
profile_default/
|
|
82
|
-
ipython_config.py
|
|
83
|
-
|
|
84
|
-
# pyenv
|
|
85
|
-
.python-version
|
|
86
|
-
|
|
87
|
-
# pipenv
|
|
88
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
89
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
90
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
91
|
-
# install all needed dependencies.
|
|
92
|
-
#Pipfile.lock
|
|
93
|
-
|
|
94
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
95
|
-
__pypackages__/
|
|
96
|
-
|
|
97
|
-
# Celery stuff
|
|
98
|
-
celerybeat-schedule
|
|
99
|
-
celerybeat.pid
|
|
100
|
-
|
|
101
|
-
# SageMath parsed files
|
|
102
|
-
*.sage.py
|
|
103
|
-
|
|
104
|
-
# Environments
|
|
105
|
-
.env
|
|
106
|
-
.venv
|
|
107
|
-
env/
|
|
108
|
-
venv/
|
|
109
|
-
ENV/
|
|
110
|
-
env.bak/
|
|
111
|
-
venv.bak/
|
|
112
|
-
|
|
113
|
-
# Spyder project settings
|
|
114
|
-
.spyderproject
|
|
115
|
-
.spyproject
|
|
116
|
-
|
|
117
|
-
# Rope project settings
|
|
118
|
-
.ropeproject
|
|
119
|
-
|
|
120
|
-
# mkdocs documentation
|
|
121
|
-
/site
|
|
122
|
-
|
|
123
|
-
# mypy
|
|
124
|
-
.mypy_cache/
|
|
125
|
-
.dmypy.json
|
|
126
|
-
dmypy.json
|
|
127
|
-
|
|
128
|
-
# Pyre type checker
|
|
129
|
-
.pyre/
|
|
130
|
-
|
|
131
|
-
# Pycharm
|
|
132
|
-
.idea/
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# See https://pre-commit.com for more information
|
|
2
|
-
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
-
default_language_version:
|
|
4
|
-
python: python3.11 # TODO: change this to your virtualenv's Python version
|
|
5
|
-
|
|
6
|
-
repos:
|
|
7
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
8
|
-
rev: v4.5.0
|
|
9
|
-
hooks:
|
|
10
|
-
- id: trailing-whitespace
|
|
11
|
-
- id: end-of-file-fixer
|
|
12
|
-
- id: check-yaml
|
|
13
|
-
- id: check-toml
|
|
14
|
-
- id: check-added-large-files
|
|
15
|
-
- id: check-merge-conflict
|
|
16
|
-
- id: check-case-conflict
|
|
17
|
-
- id: check-symlinks
|
|
18
|
-
- id: check-json
|
|
19
|
-
|
|
20
|
-
- repo: https://github.com/asottile/reorder_python_imports
|
|
21
|
-
rev: v3.12.0
|
|
22
|
-
hooks:
|
|
23
|
-
- id: reorder-python-imports
|
|
24
|
-
args:
|
|
25
|
-
- "--application-directories={{ cookiecutter.project_name }}"
|
|
26
|
-
|
|
27
|
-
- repo: https://github.com/Riverside-Healthcare/djLint
|
|
28
|
-
rev: v1.34.1
|
|
29
|
-
hooks:
|
|
30
|
-
- id: djlint-reformat-django
|
|
31
|
-
- id: djlint-django
|
|
32
|
-
|
|
33
|
-
- repo: https://github.com/adamchainz/django-upgrade
|
|
34
|
-
rev: "1.15.0"
|
|
35
|
-
hooks:
|
|
36
|
-
- id: django-upgrade
|
|
37
|
-
args: [--target-version, "5.0"]
|
|
38
|
-
|
|
39
|
-
- repo: https://github.com/tox-dev/pyproject-fmt
|
|
40
|
-
rev: "1.6.0"
|
|
41
|
-
hooks:
|
|
42
|
-
- id: pyproject-fmt
|
|
43
|
-
|
|
44
|
-
- repo: local
|
|
45
|
-
hooks:
|
|
46
|
-
- id: mypy
|
|
47
|
-
name: Run mypy
|
|
48
|
-
entry: hatch run mypy
|
|
49
|
-
language: system
|
|
50
|
-
files: \.py$
|
|
51
|
-
|
|
52
|
-
- id: hatch fmt
|
|
53
|
-
name: run hatch fmt
|
|
54
|
-
entry: hatch fmt
|
|
55
|
-
language: system
|
|
56
|
-
files: \.py
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# {{ cookiecutter.project_name }}
|
|
2
|
-
|
|
3
|
-
[](https://github.com/Tobi-De/falco)
|
|
4
|
-
[](https://github.com/astral-sh/ruff)
|
|
5
|
-
[](https://github.com/PyCQA/pylint)
|
|
6
|
-
[](https://github.com/pypa/hatch)
|
|
7
|
-
|
|
8
|
-
## Prerequisites
|
|
9
|
-
|
|
10
|
-
- `Python 3.11+`
|
|
11
|
-
- `hatch 1.9.1+`
|
|
12
|
-
- `Postgresql 13+`
|
|
13
|
-
|
|
14
|
-
## Development
|
|
15
|
-
|
|
16
|
-
### Create a new virtual environment
|
|
17
|
-
|
|
18
|
-
```shell
|
|
19
|
-
hatch shell
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
### Install pre-commit
|
|
23
|
-
|
|
24
|
-
```shell
|
|
25
|
-
git init && pre-commit install
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
Ensure that the Python version specified in your `.pre-commit-config.yaml` file aligns with the Python version installed on your system.
|
|
29
|
-
|
|
30
|
-
### Create a `.env` file
|
|
31
|
-
|
|
32
|
-
```shell
|
|
33
|
-
falco sync-dotenv
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### Apply migrations
|
|
37
|
-
|
|
38
|
-
```shell
|
|
39
|
-
hatch run migrate
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
### Create a superuser
|
|
43
|
-
|
|
44
|
-
Fill the `SUPERUSER_EMAIL` and `SUPERUSER_PASSWORD` in your `.env` file and run:
|
|
45
|
-
|
|
46
|
-
```shell
|
|
47
|
-
falco make-superuser
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Run the django development server
|
|
51
|
-
|
|
52
|
-
```shell
|
|
53
|
-
hatch run runserver
|
|
54
|
-
# if you've aliased `hatch run` to `hr``
|
|
55
|
-
hr runserver
|
|
56
|
-
# if you've added falco-cli as a dependency to your project
|
|
57
|
-
falco work
|
|
58
|
-
```
|