Skip to main content

A tool for creating template projects.

Project description

newby

Creates a newby python package.

Installation

Install by running pip install . 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.1.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.

newby-0.0.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: newby-0.0.1.tar.gz
  • Upload date:
  • Size: 12.4 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.1.tar.gz
Algorithm Hash digest
SHA256 e05b33bfa60d736d6098b355e18e6fd9c22a8f20687086e080d496a600b380e0
MD5 17152d1756b0b568f19a30c6dfc71dfd
BLAKE2b-256 5bb74c56dd247e823a8b40f1ee39d00a9109f2bc9a6cee2f6dd97fffb6f68b38

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newby-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21972dfacf5826afc210a586ec4899cc1eb3b561c7491f4c20a03543a978c716
MD5 54896ee017542a42bc6f806b9ad21442
BLAKE2b-256 e9d28216cc52b83f25148bde7b363f70691f7a4854c87323a0ef46d3a32d160a

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