Skip to main content

Command-line tool designed to take the friction out of starting a new Python project

Project description

Pykickoff

PyPI Downloads PyPI version PyPI - Python Version Tests Linux macOS Intel macOS ARM

Ruff Code style: black Checked with mypy

Pykickoff is a lightweight, interactive CLI scaffolding tool designed to bootstrap new Python projects. By guiding users through a series of questions, it generates standard project files, sets up package structures, initializes Git repositories, and creates virtual environments automatically.

If you like the repo, it would be awesome if you could add a star to it! It really helps out the visibility. Also for any questions at all we'd love to hear from you at ds.pydev@gmail.com

Usage

  1. Install Pykickoff
python -m pip install pykickoff
  1. Run Pykickoff
python -m pykickoff

Wizard Options

The setup guide will prompt you to configure:

  • Project Name: The directory name and package namespace.
  • Description: A short description printed in the package's generated README.md and metadata.
  • Author Name: Used to populate your package author fields in pyproject.toml.
  • Project Type: Selection between "Basic", "FastAPI", or "CLI Tool".
  • CLI configuration: Option to configure Python CLI entry points.
  • Automation: Choices to automatically run git init and/or python -m venv .venv in the generated folder structure.

Features

  • Interactive Setup: Guided terminal wizard powered by questionary.
  • Project Structure Generation: Creates a standardized source layout (src/project_name/) containing a package package setup (__init__.py and main.py).
  • Template Rendering: Generates configuration files (pyproject.toml, .gitignore, and README.md) using Jinja2 templating.
  • Automation Support: Optional automated Git initialization and Python virtual environment (.venv) creation during generation.

Directory Layout

This project is structured as a standard Python module package:

pykickoff/
├── __init__.py          # Package entrypoint exporter
├── __main__.py          # Main execution CLI script
├── generator.py         # File creation and Jinja2 rendering logic
├── utils.py             # Automation helpers (Git, venv subprocess calls)
├── wizard.py            # User prompt questions and CLI validation
└── templates/
    └── base/            # Subfolder expected to contain template files
        ├── README.md.j2
        ├── gitignore.txt
        └── pyproject.toml.j2

Under the Hood

  • Validation: Project names are automatically validated using regular expressions to prevent illegal characters in folder and module names.
  • Rendering: Values gathered by wizard.py are mapped into Jinja2 templates. If a project is specified as a CLI, those conditions are handled dynamically when building out the pyproject.toml configuration.
  • Process Automation: The tool uses Python's subprocess module to run CLI tools (git, python) directly inside the generated directory paths to ensure seamless environment preparation.

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

pykickoff-1.2.1.tar.gz (537.7 kB view details)

Uploaded Source

Built Distribution

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

pykickoff-1.2.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file pykickoff-1.2.1.tar.gz.

File metadata

  • Download URL: pykickoff-1.2.1.tar.gz
  • Upload date:
  • Size: 537.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pykickoff-1.2.1.tar.gz
Algorithm Hash digest
SHA256 86942050da1288bcd3556ab851490edcefdb8f215d02ec01fa156349bc57bd17
MD5 18baf53de7aaaf2c2f3535e1182bf62d
BLAKE2b-256 a1c13ad5132e28038c478fd553e12c3d584278b5e6cef4bab753fd13649eb9db

See more details on using hashes here.

File details

Details for the file pykickoff-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pykickoff-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for pykickoff-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96bc2235a0f68968728c6c3e29ae325343717e19d06d43ec5358a51d0a41f165
MD5 67638e5e48d7a79b9200ded3cb5756d8
BLAKE2b-256 17efb33e15ab6e848b786d2dba1b4d5287042a77b3181676cfa66223789d019a

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