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.4.tar.gz (21.9 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.4-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kraf-0.1.4.tar.gz
  • Upload date:
  • Size: 21.9 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.4.tar.gz
Algorithm Hash digest
SHA256 b15247428de807d2bf900054c090259e136cce4a046bb72210dc38cc27b8b1bd
MD5 e24373981db5d608603b41e9eeb0e6a4
BLAKE2b-256 ee7d895b956dc3e31b700f59201a3f2ea4e533c757672b21489365650c8bc811

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kraf-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 35.3 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5311bc6ef45096e1efb9e270580f6c0a2ad1bbde4da6df4b363ae44f51f43f32
MD5 e59211807c4f8087651761b13823a206
BLAKE2b-256 86811b78aa93d15121aa76db26024e040540d76f41a96f6efadbf08ea845e20f

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