Skip to main content

A tool for creating template projects.

Project description

newby

Creates a new project folder from templates.

Installation

Install by running pip install newby in the root folder.

Running, and options

[!NOTE] Only the creation of Python projects is supported currently.

Run using newby python <project name>.

When run for the first time, you will be asked to set the default author, python manager (pip, pipenv or pyenv), and license (mit, unlicense and boost).

The default values can be changed to using the options below.

The following options are available:

Option Description
--author, -a Specify the name of the author, and save as the default author
--author-tmp, -t [Flag] Specify that the author name will not save as the default author
--license, -l Specify the license, and save as the default license. Currently supports mit, unlicense and boost
--license-tmp, -k [Flag] Specify that the license will not be set as default
--manager, -m Specify the python package manager (and virtual environment). Currently supports pyenv, pip, pipenv. If pip is chosen, the virtual environment will be created using virtualenv.
--venv, -v [Flag] Creates a virtual environment using the default manager.
--install, -i [Flag] Install the newby project. If --venv is set, this will be installed in the virtual environment that is created.
--git, -g [Flag] Initialises git if this flag is set
--precommit, -p [Flag] Install pre-commit hooks if this flag is set. This requires the --git flag.

Example

Suppose you run:

newby python hello_world -vipg -at 'Random Author' -m pyenv

This will:

  • Create a project hello_world,
  • Set the default manager to pipenv,
  • Create a virtual environment,
  • Install the current project in this virtual environment,
  • Create and install pre-commit hooks,
  • Initialise git, and
  • Temporarily set the author to Random Author; i.e. it won't override the default author.

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

newby-0.0.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

newby-0.0.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file newby-0.0.2.tar.gz.

File metadata

  • Download URL: newby-0.0.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for newby-0.0.2.tar.gz
Algorithm Hash digest
SHA256 00c9ab8fd36a0b2ceb6136f9a88d71f0e5b58675e8f46a83f0b0ef3f31816bee
MD5 6064045ffc051d21cfd95e796adc623f
BLAKE2b-256 90c4c480eaf054c35b8d72a8cfcf2f0cb6635e322ff97d9659d47092b03deef0

See more details on using hashes here.

File details

Details for the file newby-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: newby-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for newby-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a5a9eba421f49c3f6bce83c4736f42f28e0f7d6ca59000e88976316f8203c22
MD5 4f98b031a71b494e75e0b4223563c9e8
BLAKE2b-256 5346db1b88bd8ee007f0de1046585cc5f06aa3fcd88a964ecd93b119f86f34fd

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