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

Uploaded Python 3

File details

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

File metadata

  • Download URL: kraf-0.1.1.tar.gz
  • Upload date:
  • Size: 16.5 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.1.tar.gz
Algorithm Hash digest
SHA256 dc2e02357d7446d391535625ca3cafe4fb472c913c12bb7f21abebbbddbe54fe
MD5 09ee72a3ff6990bb779067ed6645a9c5
BLAKE2b-256 4b220ab1201429d57c694c177fa82ec66bb644926ff553bb641ff4d1e22ad981

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kraf-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c116578ea789e01dd4042659798f4c34bf308d5c9111f6abc225692841e2ace
MD5 9e10fcd66d174470ef1720c1ad8c0793
BLAKE2b-256 e7602c54291aafb45998a7e948b87a537351c0f4b91173d63e8d4110d599f8b4

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