Skip to main content

Generate a project skeleton

Reason this release was yanked:

buggy

Project description

Generate a project skeleton so you can start coding right away.

Installation

pip install skelly

Usage

Once installed, skelly can be run as a module:

python -m skelly.main

or as a console application:

skelly

skelly has a plugin architecture where skelly.builders can be registered to create different types of projects. The default builder builds Python projects.

Python Project

Python projects built by the default builder, using its default template, include:

  • a venv using the Python installation from which skelly was invoked

  • packaging with setuptools configured via setup.cfg

  • tooling configured via setup.cfg

    • code formatting with black

    • linting with pylint

    • PEP 8 style checking with pycodestyle

    • strict type checking with mypy

    • unit testing with pytest

    • running all of the above tools with tox

    • building and uploading a distribution with build and twine

  • the project package, itself, is pip installed in the venv in editable mode

  • an initialized git repo

Prompt the user for values required by the template, then create a project in the current directory.

skelly

Create a project in the directory /tmp/mypkg, without prompting the user because all of the required template values are provided in the command.

skelly \
  -t author "Narvin Singh" \
  -t email "Narvin.A.Singh@gmail.com" \
  -t description "A sample project." \
  -t repo "https://gitlab.com/narvin/mypkg" \
  /tmp/mypkg

Only prompt the user for the repo, which is required by the template, then create a project in the current directory.

skelly \
  -t author "Narvin Singh" \
  -t email "Narvin.A.Singh@gmail.com" \
  -t description "A sample project."

This command will raise an error because the repo wasn’t specified, and the -s option was used to prevent prompting the user for missing template values.

skelly \
  -s \
  -t author "Narvin Singh" \
  -t email "Narvin.A.Singh@gmail.com" \
  -t description "A sample project."

Create a project in /tmp/mypkg with its venv in /tmp/mypkg/.venv310, and install the packages specified in ~/requirements.txt in the venv. The env_dir builder option, unless specified as an absolute path, is relative to the target directory. The req_file builder option, unless specified as an absolute path, is relative to the current directory.

cd ~
skelly \
  -b env_dir .venv310 \
  -b req_file requirements.txt \
  /tmp/mypkg

Create a project in the current directory using a custom template. The user won’t be prompted for any template values.

skelly \
  -T ~/my_template \
  -t my_template_var foo

Other Types of Projects

Coming soon.

If there was a hypothetical builder called javascript, this command would use it to build a project in the current directory.

skelly -B javascript

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

skelly-0.0.5.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

skelly-0.0.5-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file skelly-0.0.5.tar.gz.

File metadata

  • Download URL: skelly-0.0.5.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for skelly-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c4d9013c1d25f23c6891a97968c2b7fed8b46ab929eea2cc6c51f04e71923be5
MD5 3761449997f1baaae2245adda425261a
BLAKE2b-256 dff3b77c08e4c0f1f83751d59ea0d307cfe0408d14f09d4bd8aaae74a3c5a73d

See more details on using hashes here.

File details

Details for the file skelly-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: skelly-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for skelly-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 07b52f25055c2fec837ef8ce018d47fe726f1a53ca34afe815ddefc77fb303c7
MD5 d2a01f8fbef7113b699a6b9a87482939
BLAKE2b-256 8068e5c9ec6d7494f6152d030ac35cbe8b4dc7c0d4d4abf5e86e35cb9e75d801

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