Skip to main content

Easily create new projects.

Project description

noo

Easily create new projects.

Usage

noo clone <name> <ref>

Noofile Specification

name: str
remote: str
read: [Read]
steps: [Step]
Field Type Description
name str The name of the noofile definition
remote str The remote location of the template
read list[Read] The list of variables to read on setup
steps list[Step] The list of steps to run

Read

name: str
prompt: str
default: ?str
Field Type Description
name str The name of the variable to read
prompt str The prompt to display when reading the variable
default ?str An optional default value

Step

A step defines a single step in the process of setting up a project.

name: str
actions: [Action]
Field Type Description
name str The name of the setup step
actions list[Action] The list of actions in the step

Action

An action defined a single action within a step. This is the base of all steps, for example replacing a string with a different given string.

Replace action

Replace actions are used to replace a specific string in a file. The src field specifies the string that should be replaced in the file, and the dest field specifices the string to replace it with. The dest field is formatted with defined variables.

A list of files can be provided, and each file will have the same transform applied to them.

- action: replace
  files: [str]
  src: str
  dest: str

Variables

Variables are defined in the read section of the noofile. All variables set in the read section will be available in the steps section.

Variables are used in the format $${scope}:{name}, for example $$noo:year or $$var:author. Variables with the noo scope are built into noo and will always be available. Variables with the var scope are defined in the read section.

The variables defined by noo are:

  • noo:year - The current year
  • noo:month - The current month
  • noo:day - The current day
  • noo:hour - The current hour
  • noo:minute - The current minute
  • noo:second - The current second
  • noo:name - The name of the project

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

pynoo-1.0.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

pynoo-1.0.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file pynoo-1.0.1.tar.gz.

File metadata

  • Download URL: pynoo-1.0.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.9-arch1-1

File hashes

Hashes for pynoo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5c36a6ba70ada4abc02933e267632d0785abfbe2f044a5272d95850b1b7dad79
MD5 b0097655fdccc6d28b302883179a3372
BLAKE2b-256 c3f7c18dec4e8d5548a4f9ef6f1037bc41c74e5ff62189dd1a5f0863761d60eb

See more details on using hashes here.

File details

Details for the file pynoo-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pynoo-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.16.9-arch1-1

File hashes

Hashes for pynoo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f0f39d4f32bcb6526ac96659778b3ddec2538f773399fcd588749bb8c2975d1
MD5 83aebac6251c3cec30bb5d8b310ce31f
BLAKE2b-256 5e0d4ab08a8729c9e3a9c91e24f6bb08f02f98940a773aaa95e00e8af6be0598

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page