Skip to main content

qwikstart: Code generator for fun and profit

https://img.shields.io/badge/License-BSD%203--Clause-blue.svg https://travis-ci.com/tonysyu/qwikstart.svg?branch=master https://codecov.io/gh/tonysyu/qwikstart/branch/master/graph/badge.svg https://readthedocs.org/projects/qwikstart/badge/

qwikstart is a code generator for integrating code into existing projects. It’s similar to code generators like cookiecutter, yeoman, and hygen but with a focus on adding code to existing projects.

A simple hello-world.yml script in qwikstart would look something like:

steps:
    "Ask for name":
        name: prompt
        inputs:
            - name: "name"
              default: "World"
    "Display message":
        name: echo
        message: |

            Hello, {{ qwikstart.name }}!

The first step uses the prompt operation with a single input "name", with a default value of "World" (which is editable when running the script). The next step just uses the echo operation to display a message. This script can be using qwikstart run:

$ qwikstart run hello-world.yml

Please enter the following information:
name: World

Hello, World!

Install

The recommended way of installing qwikstart is to use pipx:

pipx install qwikstart

If you happen to be setting up pipx for the first time, the pipx installation instructions suggest running pipx ensurepath to update the user path. Note, if you use ~/.profile instead of ~/.bash_profile, this will add ~/.bash_profile, which will take precendence over ~/.profile. Either move the code from ~/.bash_profile to ~/.profile or link your profiles.

Basic Usage

After installing qwikstart, you can run a simple hello-world example using the following:

$ qwikstart run --repo https://github.com/tonysyu/qwikstart examples/hello_world.yml

By default, there are abbreviations for common git repos, so the above can also be written:

qwikstart run --repo gh:tonysyu/qwikstart examples/hello_world.yml

See Also

There are a lot code generators and scaffolding tools out there, and the following is just a selection of some of the most popular ones:

  • cookiecutter: A command-line utility that creates projects from cookiecutters (project templates)

  • hygen: The scalable code generator that saves you time.

  • yeoman: The web’s scaffolding tool for modern webapps

Metadata

Release files for qwikstart 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qwikstart 0.8.0
File Size Uploaded Provenance Actions
qwikstart-0.8.0.tar.gz 31.5 kB Without provenance Details for qwikstart-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qwikstart 0.8.0
File Interpreter ABI Platform Actions
qwikstart-0.8.0-py3-none-any.whl Python 3 none any Details for qwikstart-0.8.0-py3-none-any.whl

Total release size: 79.5 kB

Release files / qwikstart-0.8.0.tar.gz

Download URL qwikstart-0.8.0.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e1dea20a09621626d9cd0d2f7e7cf7e87e5ac5a6e7711a9dbe6d3f54e59b0ae
BLAKE2b-256 checksum
How to use checksums
77485c2f72a3414e9ae9694f079f57bb92226050a37bc79f9177db95a01c74b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.10 Darwin/20.6.0

Release files / qwikstart-0.8.0-py3-none-any.whl

Download URL qwikstart-0.8.0-py3-none-any.whl
Size 48.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9aec379d31e0afe2c0a5e49329c15ae47d468370a9cd9eec81dfe355d4b467a
BLAKE2b-256 checksum
How to use checksums
6c9074e995594b318fd5aa7af809b7b74c8b54b81ff5f4a9967ebadaa612f738
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.10 Darwin/20.6.0

Security for qwikstart 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page