Skip to main content

A command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template.

Project description

Snipkit

Create projects swiftly from snipkits (project templates) with this command-line utility. Ideal for generating Python package projects and more.

Installation

Install snipkit using pip package manager:

# pipx is strongly recommended.
pipx install snipkit

# If pipx is not an option,
# you can install snipkit in your Python user directory.
python -m pip install --user snipkit

Features

  • Cross-Platform: Supports Windows, Mac, and Linux.
  • User-Friendly: No Python knowledge required.
  • Versatile: Compatible with Python 3.7 to 3.12.
  • Multi-Language Support: Use templates in any language or markup format.

For Users

Quick Start

The recommended way to use Snipkit as a command line utility is to run it with pipx, which can be installed with pip install pipx, but if you plan to use Snipkit programmatically, please run pip install snipkit.

Use a GitHub template

# You'll be prompted to enter values.
# Then it'll create your Python package in the current working directory,
# based on those values.
# For the sake of brevity, repos on GitHub can just use the 'gh' prefix
$ pipx run snipkit gh:khulnasoft/snipkit

Use a local template

$ pipx run snipkit snipkit-pypackage/

Use it from Python

from snipkit.main import snipkit

# Create project from the snipkit-pypackage/ template
snipkit('snipkit-pypackage/')

# Create project from the snipkit-pypackage.git repo template
snipkit('gh:audreyfeldroy//snipkit-pypackage.git')

Detailed Usage

  • Generate projects from local or remote templates.
  • Customize projects with snipkit.json prompts.
  • Utilize pre-prompt, pre- and post-generate hooks.

Learn More

For Template Creators

  • Utilize unlimited directory nesting.
  • Employ Jinja2 for all templating needs.
  • Define template variables easily with snipkit.json.

Learn More

Available Templates

Discover a variety of ready-to-use templates on GitHub.

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

snipkit-1.0.0.tar.gz (135.7 kB view details)

Uploaded Source

Built Distribution

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

snipkit-1.0.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file snipkit-1.0.0.tar.gz.

File metadata

  • Download URL: snipkit-1.0.0.tar.gz
  • Upload date:
  • Size: 135.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for snipkit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bcfa27586789ec3cb927f3f9d98ad3e8a707bbacb54731e695f9e914d9f16b41
MD5 2608bc316e23d2f9646fe05d5e50fb29
BLAKE2b-256 a9c6ee4fc501e9842d5c8ce3fa40360d2cb625581f4378e37d5a690d98846095

See more details on using hashes here.

File details

Details for the file snipkit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: snipkit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for snipkit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0f94071d5e6fcf9a8f87dc9eda5eafcb2d221bb3c2abeefa98a2340c41e03b2
MD5 78b78f3d8dcb37980cfbbe19118e56cb
BLAKE2b-256 56f3204dd7eb655579b88a891636a859436b7cdeeb8b621ee52cbe125e13c7e6

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