falco logo

Falco

An opinionated toolkit for a modern Django development experience

[![CI](https://github.com/falcopackages/falco-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/falcopackages/falco-cli/actions/workflows/ci.yml) [![Publish Python Package](https://github.com/falcopackages/falco-cli/actions/workflows/publish.yml/badge.svg)](https://github.com/falcopackages/falco-cli/actions/workflows/publish.yml) [![Documentation](https://readthedocs.org/projects/falco-cli/badge/?version=latest&style=flat)](https://beta.readthedocs.org/projects/falco-cli/builds/?version=latest) [![pypi](https://badge.fury.io/py/falco-cli.svg)](https://pypi.org/project/falco-cli/) [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/falcopackages/falco-cli/blob/main/LICENSE) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/falco-cli)](https://pypi.org/project/falco-cli/) [![PyPI - Versions from Framework Classifiers](https://img.shields.io/pypi/frameworkversions/django/falco-cli)](https://pypi.org/project/falco-cli/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/falco-cli)](https://pypistats.org/packages/falco-cli) Falco is a Django-centric toolkit designed to enhance the development experience. The CLI offers commands for initiating new projects, generating simple CRUD views for rapid prototyping, and more. Additionally, it provides a collection of guides to address common issues in web development specifically tailored to Django. ## The CLI 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), [uv](https://github.com/astral-sh/uv), [tailwindcss](https://tailwindcss.com/), to generating CRUD views for your models and a few utilities that might help during deployment. For a brief introduction to the user experience of the CLI, visit this [page](https://falco.oluwatobi.dev/the_cli/usage.html). ```sh uv tool install falco-cli ``` - [start-project](https://falco.oluwatobi.dev/the_cli/start_project/index.html): Initialize a new django project the falco way. - [update-project](https://falco.oluwatobi.dev/the_cli/start_project/index.html): Update your project to get the latest falco features (**experimental**). - [start-app](https://falco.oluwatobi.dev/the_cli/start_app.html): Initialize a new django app the falco way. - [crud](https://falco.oluwatobi.dev/the_cli/crud.html): Generate CRUD (Create, Read, Update, Delete) views for a model. - [install-crud-utils](https://falco.oluwatobi.dev/the_cli/crud.html#install-crud-utils): Install utils necessary for CRUD views. - [work](https://falco.oluwatobi.dev/the_cli/work.html): Run all the services required to run your django project in parallel with a single command. (development only) - [htmx](https://falco.oluwatobi.dev/the_cli/htmx.html): Download a local copy of the latest version of htmx. - [htmx-ext](https://falco.oluwatobi.dev/the_cli/htmx.html#falco-htmx-ext): Download one of htmx extensions. - [sync-dotenv](https://falco.oluwatobi.dev/the_cli/sync_dotenv.html): Synchronize the `.env` file with the `.env.template` file. - [rm-migrations](https://falco.oluwatobi.dev/the_cli/migrations.html): Remove all migrations for the specified applications directory. (development only) - [reset-migrations](https://falco.oluwatobi.dev/the_cli/migrations.html#reset-migrations): Delete and recreate all migrations. (development only) **Templates** - [tailwind](https://github.com/falcopackages/starter-template) (default) - [bootstrap](https://github.com/Tobi-De/falco_bootstrap) ## The guides > [!NOTE] > These are currently a work in progress. Most of them are half-written or not written at all. I hope > to get them in a usable state ~~by the end of january 2024~~ as soon as I can. To receive updates [subscribe to this discussion](https://github.com/Tobi-De/falco/discussions/39) or > follow me on [x](https://twitter.com/tobidegnon) or [mastodon](https://fosstodon.org/@tobide) If you don't find any use of the CLI, I hope you will in these guides. This is a collection of guides that address common issues in web development, specifically tailored to Django. Each guide provides solutions, patterns, and approaches that are relevant to Django projects. It is similar to the [Django topic guides](https://docs.djangoproject.com/en/5.0/topics/), but instead of focusing on components of the framework like `forms`, `models`, `views`, etc., it focuses on more general topics like `task queues`, `deployment`, `realtime`, etc. - [Interactive user interfaces](https://falco.oluwatobi.dev/guides/interactive_user_interfaces.html) - [Task Queues and Schedulers](https://falco.oluwatobi.dev/guides/task_queues_and_schedulers.html) - [Writing documentation](https://falco.oluwatobi.dev/guides/writing_documentation.html) - [Writing tests](https://falco.oluwatobi.dev/guides/writing_tests.html) - [Logging and monitoring](https://falco.oluwatobi.dev/guides/logging_and_monitoring.html) - [The ultimate deployment guide](https://falco.oluwatobi.dev/guides/deployment.html) - [Optimizing Database Access](https://falco.oluwatobi.dev/guides/optimizing_database_access.html) - [Business logic in django](https://falco.oluwatobi.dev/guides/avoiding_god_models.html) - [Dynamic Model Schema](https://falco.oluwatobi.dev/guides/dynamic_model_schema.html) - [Realtime in Django: Websockets, SSE, Polling](https://falco.oluwatobi.dev/guides/realtime.html) - [Permissions and authorizations](https://falco.oluwatobi.dev/guides/permissions_and_authorization.html) - [Database Tips: Backup, Scaling, Triggers, and More](https://falco.oluwatobi.dev/guides/database_tips.html) - [Managing Multi-tenancy in Django](https://falco.oluwatobi.dev/guides/multitenancy.html) - [Async Coding in Django](https://falco.oluwatobi.dev/guides/writing_async_code.html) - [Use Sqlite in production](https://falco.oluwatobi.dev/guides/use_sqlite_in_production.html) - [Running your project in a single container](https://falco.oluwatobi.dev/guides/running_project_in_a_container.html) - [Tips and extra](https://falco.oluwatobi.dev/guides/tips_and_extra.html) ## Acknowledgements Falco is inspired by (and borrows elements from) some excellent open source projects: - [cookiecutter-django](https://github.com/cookiecutter/cookiecutter-django) - [fuzzy-couscous](https://github.com/Tobi-De/fuzzy-couscous) (predecessor of falco) - [django-unicorn](https://github.com/adamghill/django-unicorn) (Inspiration for the logo) - [neapolitan](https://github.com/carltongibson/neapolitan) - [django-base-site](https://github.com/epicserve/django-base-site) - [django-twc-project](https://github.com/westerveltco/django-twc-project) ## Contributors [![All Contributors](https://img.shields.io/badge/all_contributors-9-orange.svg?style=flat-square)](#contributors-) Thanks to the following wonderful people [emoji key](https://allcontributors.org/docs/en/emoji-key) who have helped build `falco`.
Tobi DEGNON
Tobi DEGNON

💻 📖 ⚠️
Muhammad Hammad
Muhammad Hammad

🤔
mathiasag7
mathiasag7

💻
Richard Shea
Richard Shea

📖
Waqar Khan
Waqar Khan

💻
tissieres
tissieres

💵
Hsiaoming Yang
Hsiaoming Yang

🐛
Aimé An-Nyong DEGBEY
Aimé An-Nyong DEGBEY

🤔
Hana Belay
Hana Belay

💻