Skip to main content

Interactive Python web project initializer for Django, Django REST Framework, and FastAPI.

Project description

kraf

Interactive Python web project initializer for Django, Django REST Framework, and FastAPI.

Install

pipx install kraf

Usage

kraf init

The CLI asks for:

  • Project name
  • Project type: Django, Django with DRF, or FastAPI
  • Database: no database, SQLite, or PostgreSQL
  • FastAPI ORM and migration choices
  • Tooling choices: pytest, Ruff, and Docker

Generated projects include:

  • Makefile
  • .env.example
  • .gitignore
  • README.md
  • Runtime dependencies in requirements.txt
  • Development dependencies in requirements-dev.txt

Common generated commands:

make venv
make install
make run
make test
make lint
make format
make migrations
make migrate

Migration commands are generated only for database-backed projects. make migrations creates a migration, while make migrate applies migrations. Alembic projects also provide make revision; both revision creation commands prompt for a migration message.

Development

python -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
pytest
ruff check src tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kraf-0.1.3.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kraf-0.1.3-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file kraf-0.1.3.tar.gz.

File metadata

  • Download URL: kraf-0.1.3.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kraf-0.1.3.tar.gz
Algorithm Hash digest
SHA256 5be64f310f5a3548c84390321a9db55d6eb656ad9c2be2773374e131ae15bc16
MD5 3f862803b3a6b65ef5957effa665b115
BLAKE2b-256 edc9280649b55c578f8900b94d4de26a2f5e7a16332551703b8ce9391e23b8fd

See more details on using hashes here.

File details

Details for the file kraf-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kraf-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for kraf-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7fca237dab904c0e3e38b4d08b0984b419d878d8b085d96468873da9c912f438
MD5 d7c5db15f8fcec45d7740e6b195b1fa4
BLAKE2b-256 d3435616c30258d758193a4e365670a15ef16a3d92948628eeff422e62295e26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page