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 migrate

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.0.tar.gz (16.2 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.0-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kraf-0.1.0.tar.gz
  • Upload date:
  • Size: 16.2 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.0.tar.gz
Algorithm Hash digest
SHA256 71f72adb952b4f910792553d3e3d6e3085e1ca8a9c56e4096b7dc7d6dbe9118d
MD5 bc8f21ff6cd0b5c72ef5ea7eca28a610
BLAKE2b-256 0aeda4b167bbfd7433b2d8b77f73ebbb0679881151ee915793d41aa3779bacd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kraf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6612e2ef2a9137e4785b1638c13403031f422b5b371677f54fa78940969b780
MD5 a270751bbe0f7bdaa1b61a3f1564b4e4
BLAKE2b-256 40345d1abe36f3fb7bd3011bd32216c19c107c5fd5dd27e7b0b0449d2e312878

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