Skip to main content

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

Metadata

Release files for kraf 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kraf 0.1.4
File Size Uploaded
kraf-0.1.4.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kraf 0.1.4
File Interpreter ABI Platform
kraf-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 57.2 kB

Release files / kraf-0.1.4.tar.gz

Download URL kraf-0.1.4.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b15247428de807d2bf900054c090259e136cce4a046bb72210dc38cc27b8b1bd
BLAKE2b-256 checksum
How to use checksums
ee7d895b956dc3e31b700f59201a3f2ea4e533c757672b21489365650c8bc811
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / kraf-0.1.4-py3-none-any.whl

Download URL kraf-0.1.4-py3-none-any.whl
Size 35.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5311bc6ef45096e1efb9e270580f6c0a2ad1bbde4da6df4b363ae44f51f43f32
BLAKE2b-256 checksum
How to use checksums
86811b78aa93d15121aa76db26024e040540d76f41a96f6efadbf08ea845e20f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page