Skip to main content

Add your description here

Project description

white duck Project Starter

A command-line tool for quickly creating new projects from templates. Automatically discovers and provides commands for all templates in the templates directory.

Installation

# Clone the repository
git clone https://github.com/whiteduck-dev/project-starter.git
cd project-starter

# Install using uv
uv build
uv pip install -e .

Usage

Install uv

Visit the official documentation for detailed installation instructions:

List available templates:

uvx whiteduck --help

Create a new project:

# Basic usage - creates in current directory
uvx whiteduck react

# Specify output directory
uvx whiteduck react -o my-project

Get help for a specific template:

uvx whiteduck react --help

Available Templates

  • react - A modern React project template with:

    • TypeScript support
    • Vite for fast development
    • TailwindCSS for styling
    • Shadcn/ui components
    • Python backend structure
  • lib - A template for creating Python libraries

    • Modern Python package structure
    • Testing setup
    • Documentation scaffolding
  • package - A template for Python packages

    • Basic package structure
    • Development tools configuration
    • Distribution setup

Adding New Templates

  1. Create a new directory under src/whiteduck/templates/
  2. Name the directory what you want the command to be (e.g., api for whiteduck api)
  3. Add your template files to this directory
  4. The command will be automatically available - no code changes needed

For example:

# Create a new template
mkdir src/whiteduck/templates/api

# Add template files
cp -r my-api-files/* src/whiteduck/templates/api/

# The command is now available
uv run whiteduck api --help

Links

License

Copyright © 2024 white duck GmbH. All rights reserved.

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

whiteduck-0.4.5.tar.gz (97.3 kB view details)

Uploaded Source

Built Distribution

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

whiteduck-0.4.5-py3-none-any.whl (104.6 kB view details)

Uploaded Python 3

File details

Details for the file whiteduck-0.4.5.tar.gz.

File metadata

  • Download URL: whiteduck-0.4.5.tar.gz
  • Upload date:
  • Size: 97.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for whiteduck-0.4.5.tar.gz
Algorithm Hash digest
SHA256 d5a5d61b44e251491bd01e5bd3fe908e5bfcae9076f1f1d1f22c736fe9506269
MD5 95b6d89cd93eca9f95c1edbdba6e9cf8
BLAKE2b-256 a31093aebd8d51c47973cbe5084829baf5f815d4357eb7d84cb379f94041f9ea

See more details on using hashes here.

File details

Details for the file whiteduck-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: whiteduck-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 104.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.8

File hashes

Hashes for whiteduck-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d153f7eaa1182bb44749c9061b1c49d9f670a12108f1ab8693e979c30fcb3223
MD5 41391d1ffef3ca40b23a23e9ed7258f0
BLAKE2b-256 69a85e830fe583ae6da430d92ca65a2cf4fefa86f0e2ff79db5377879c68b17d

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