Skip to main content

Python service scaffolding with zero learning curve

Project description

kraft

Python service scaffolding with zero learning curve.

Installation

Using uvx (recommended - no installation needed)

uvx kraft

Using uv tool (persistent installation)

uv tool install kraft-cli
kraft create my-api

Using pipx (if you have it)

pipx install kraft-cli
kraft create my-api

Using pip (traditional installation)

If you get "externally managed environment" error, try:

# Option 1: Install to user directory
pip3 install --user kraft-cli
kraft create my-api

# Option 2: Use pipx (install it first if needed)
pip3 install --user pipx
pipx install kraft-cli
kraft create my-api

# Option 3: Use a virtual environment
python3 -m venv ~/kraft-env
source ~/kraft-env/bin/activate
pip3 install kraft-cli
kraft create my-api

Note: If you get "externally managed environment" error with pip, use uvx or uv tool install instead.

Shell Completion (Optional)

kraft --install-completion zsh

Restart your shell to enable Tab completion for commands and options.

Development

Setup

Using uv (recommended):

uv sync --extra dev

Using pip:

pip install -e ".[dev]"

Running Tests

# With uv
uv run pytest

# With pip (after activating venv)
pytest

Linting

# With uv
uv run ruff check src/

# With pip (after activating venv)
ruff check src/

Type Checking

# With uv
uv run mypy src/

# With pip (after activating venv)
mypy src/

License

MIT

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

kraft_cli-0.2.0.tar.gz (67.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kraft_cli-0.2.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file kraft_cli-0.2.0.tar.gz.

File metadata

  • Download URL: kraft_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 67.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kraft_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 71be6342dbe4120361f1b8dadfad6ac892bb21ecba936a5df4698de1f9fdcfdb
MD5 2438e2da6f86a59d1254745541b9bc06
BLAKE2b-256 ba600aef59ea52e4ae611068f64e40e7ce3d541cd5961b63ef6f3fbca6444943

See more details on using hashes here.

File details

Details for the file kraft_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: kraft_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kraft_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c3259c1d69f2f66b6a9c9d8804cf79a257000e1e0951de175f45e3a5e0f71841
MD5 15160cfefbec56a3d98fe73950d732b7
BLAKE2b-256 9e9fa9544ff3d7409ef0b564d7b6d10cec488114d73fba09f47cda732f0eaac9

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