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.

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.2.tar.gz (16.7 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.2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kraf-0.1.2.tar.gz
  • Upload date:
  • Size: 16.7 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.2.tar.gz
Algorithm Hash digest
SHA256 b17b68208baff23e8fc04c06162023fed1ad40d106850d3d6d19318edc828a82
MD5 3720e6a8a61977166e52d486c524b954
BLAKE2b-256 7711c9366ec1ba37ee137067ced7e6eb25e63362d1f185a6956479fe2040c697

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kraf-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7539cde1e565b3034abc132464b83607f67b4634ea8cbf257549cc2f3e5ad400
MD5 003f011683bbcc4051036625275f2eaa
BLAKE2b-256 1d15cbcf6ac2ded25e96a8fcee2e47b7814a72f2dd3e62d7d456e6d16afedef8

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